Midterm Review Flashcards

(40 cards)

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
PIC 9
Numeric data
26
PIC X
Alphanumeric data
27
PIC Z9
Formatted numeric data. Indicates to place leading spaces instead of zeroes to fill the PIC clause if the number isn't large enough.
28
COBOL lets you do math on numeric edited fields (T/F)
False. COBOL only lets you do math on numeric fields.
29
What keyword lets you do rounding?
ROUNDED
30
How do Control Breaks work?
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
What are 2 traditional ways programmers hammered out control break logic?
By drawing a flowchart or coding pseudocode
32
How do you get current date from the OS?
ACCEPT FROM DATE YYYYMMDD and move each part (month, day, year) separately to the desired field.
33
Mainframe programs use COPYBOOKs for master file layouts (T/F)
True
34
What JCL changes need to be made in order to use a COPYBOOK?
PARM.COBOL='TEST,XREF' followed by a COBOL.SYSLIB DD pointing to the copy book PDS file
35
What is the REDEFINES clause used for?
Used to map the same memory for different uses
36
What is the OCCURS clause used for?
Used to define the number of table elements
37
What does the keyword COMP do?
Short for COMPUTATIONAL; it means that the field will be a binary field, which is the most efficient way to process subscripts.
38
How do you access a hardcoded table?
By setting up a subscript field defined as -SUB
39
What entries must be coded in Area A?
Divisions, paragraphs, sections, and some special entries MUST begin in Area A
40
What characters can be used for numeric-edited fields?
Periods, commas, dollar signs, Z, CR, DB, *, -, +, B, 0, /