| Oakwood Computing Ltd 1 Dornton Road South Croydon Surrey CR2 7DR UK Tel: +44 (0) 20 8686 7266 courses@oakwoodcomputing.co.uk |
| Updated 11 November, 2003 |
Contents: Top
Objectives
Getting started
Introduction, structure of an Easytrieve program: FILE, JOB, REPORT; simple
examples; JCL requirements; compilation process and options; LIST; PARM statement;
syntax rules, continuation rules, comments; processing cycle.
Defining data
The FILE statement, system-defined fields; creating files; use of asterisk
in fieldnames; categories A, N, P, U, B; edit masks; working storage fields;
categories W and S, system-defined fields.
Producing reports
REPORT statement; standard, label, sequenced reports; CONTROL reports; TITLE,
HEADING, LINE; SUM; SORT statement and its use; alternate column headings;
printer files and corresponding JCL.
Basic processing statements
JOB and SORT activities; assigning values, arithmetic, MOVE, testing conditions:
IF, DO WHILE, GOTO, PERFORM, CASE, STOP, DISPLAY, PRINT; defining and invoking
PROCs.
Handling files
QSAM and VSAM files; READ, WRITE, GET, PUT, DISPLAY, POINT, PRINT, testing
for end-of-file, file status, reformatting records, extract files, sort, match/merge,
virtual files.
Table handling
In-stream tables; external tables; indexed tables: OCCURS, INDEX, SEARCHing
tables; working with variable length records and segmented data.
Advanced processing
PERFORM, START, FINISH, controlled input, bit manipulation, creating and using
macros, calls, interface with PARM on EXEC, return code to JCL, producing
percentages, report procedures.
DB2 interface
SQL calls and facilities; how the interface works.