Midterm Review Flashcards
(40 cards)
COBOL
COmmon Business Oriented Language
COBOL Platforms
IBM Mainframes, IBM AS/400, Unix Systems, PC Networks
Types of COBOL Programming
Structured, Object-Oriented
4 Divisions of a COBOL Program
Identification, Environment, Data, Procedure
Identification Division
Identifies the program
Environment Division
Includes input-output which identifies the input and output files used by the program
Data Division
Includes the file section and working storage section
Procedure Division
Contains program logic typically divided into procedures that contain the statements that do the functions of the program
First 6 Columns of a COBOL Program
Compiler added sequence numbers
What are LPARs?
The equivalent of a separate (independent) mainframe that can be shared. Each runs its own operating system.
Batch Jobs
Are submitted on the computer and can last for hours
What do distributed systems often lack for batch processing?
Sufficient storage, processor capacity, system resource management and job scheduling
What is JCL?
Job Control Language. It tells the system what program to execute and provides a description of program inputs and outputs.
What are the 3 basic JCL statements?
JOB, EXEC, DD
JOB
Provides a name to the system for the batch workload. Can optionally include accounting information and job wide parameters
EXEC
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.
DD
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.
COBOL Data Types
Are PIC clause dependent and come in several broad categories
Character Data
Fixed length and stored as EBCDIC bytes
Numeric Data
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-)
COMP and COMP-3
The 3rd data type
What is a Control Break?
A change of category used to trigger a subtotal
What is the keyword FILLER used for?
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.
What is the keyword SPACES used for?
To put blanks in the characters designated by the PIC x(..) clause