Midterm Review Flashcards

1
Q

COBOL

A

COmmon Business Oriented Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

COBOL Platforms

A

IBM Mainframes, IBM AS/400, Unix Systems, PC Networks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Types of COBOL Programming

A

Structured, Object-Oriented

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

4 Divisions of a COBOL Program

A

Identification, Environment, Data, Procedure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Identification Division

A

Identifies the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Environment Division

A

Includes input-output which identifies the input and output files used by the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Data Division

A

Includes the file section and working storage section

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Procedure Division

A

Contains program logic typically divided into procedures that contain the statements that do the functions of the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

First 6 Columns of a COBOL Program

A

Compiler added sequence numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are LPARs?

A

The equivalent of a separate (independent) mainframe that can be shared. Each runs its own operating system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Batch Jobs

A

Are submitted on the computer and can last for hours

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What do distributed systems often lack for batch processing?

A

Sufficient storage, processor capacity, system resource management and job scheduling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is JCL?

A

Job Control Language. It tells the system what program to execute and provides a description of program inputs and outputs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the 3 basic JCL statements?

A

JOB, EXEC, DD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

JOB

A

Provides a name to the system for the batch workload. Can optionally include accounting information and job wide parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

EXEC

A

Provides the name of a program to execute. Can be multiple EXEC statements in a job. Each EXEC statement within the same job is a job step.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

DD

A

Data Definition provides inputs and outputs to the execution program on the EXEC statement. Links a data set or other I/O device or function to a DDNAME coded in the program. Are associated with a particular job step.

18
Q

COBOL Data Types

A

Are PIC clause dependent and come in several broad categories

19
Q

Character Data

A

Fixed length and stored as EBCDIC bytes

20
Q

Numeric Data

A

Display numeric PIC 9(5), PIC S9(5)V99
Stored as EBCDIC bytes with assumed decimal place. Contains hex values: F0-F9. If V in declaration, COBOL does decimal alignment in math/MOVE operations. If S in declaration, the last byte of storage holds the sign (C+, D-)

21
Q

COMP and COMP-3

A

The 3rd data type

22
Q

What is a Control Break?

A

A change of category used to trigger a subtotal

23
Q

What is the keyword FILLER used for?

A

Telling the compiler there is space that can’t be referenced as variable. Used when the data isn’t important to the logic of the program.

24
Q

What is the keyword SPACES used for?

A

To put blanks in the characters designated by the PIC x(..) clause

25
Q

PIC 9

A

Numeric data

26
Q

PIC X

A

Alphanumeric data

27
Q

PIC Z9

A

Formatted numeric data. Indicates to place leading spaces instead of zeroes to fill the PIC clause if the number isn’t large enough.

28
Q

COBOL lets you do math on numeric edited fields (T/F)

A

False. COBOL only lets you do math on numeric fields.

29
Q

What keyword lets you do rounding?

A

ROUNDED

30
Q

How do Control Breaks work?

A

Records must be in sequence by control field (ex. Branch #).
Read and writes continue until the control field changes which indicates the Control Break.

31
Q

What are 2 traditional ways programmers hammered out control break logic?

A

By drawing a flowchart or coding pseudocode

32
Q

How do you get current date from the OS?

A

ACCEPT <date-item-name> FROM DATE YYYYMMDD and move each part (month, day, year) separately to the desired field.</date-item-name>

33
Q

Mainframe programs use COPYBOOKs for master file layouts (T/F)

A

True

34
Q

What JCL changes need to be made in order to use a COPYBOOK?

A

PARM.COBOL=’TEST,XREF’ followed by a COBOL.SYSLIB DD pointing to the copy book PDS file

35
Q

What is the REDEFINES clause used for?

A

Used to map the same memory for different uses

36
Q

What is the OCCURS clause used for?

A

Used to define the number of table elements

37
Q

What does the keyword COMP do?

A

Short for COMPUTATIONAL; it means that the field will be a binary field, which is the most efficient way to process subscripts.

38
Q

How do you access a hardcoded table?

A

By setting up a subscript field defined as -SUB

39
Q

What entries must be coded in Area A?

A

Divisions, paragraphs, sections, and some special entries MUST begin in Area A

40
Q

What characters can be used for numeric-edited fields?

A

Periods, commas, dollar signs, Z, CR, DB, *, -, +, B, 0, /