Sei sulla pagina 1di 3

PIC S9(n) COMP-3 PIC 9(n) PIC 9(n) COMP PIC X(n)

numeric packed decimal, signed numeric display Binary Alphanumeric

GDG base dataset name...The name of the base for this GDG GDG dataset limit.......The maximum number of datasets that may cataloged with this base name. After the "limit" number of datasets has been cataloged, the next dataset cataloged will cause uncataloging (and scratching) of the oldest (or all) datasets in the group based on the settings of the "Uncatalog Option" and "Scratch Option". Active generations......The number of currently cataloged datasets. Owner...................The owner of this GDG. Expiration date.........The date when this GDG may be deleted. Uncatalog option........NOEMPTY means the oldest generation is Uncataloged when a new generation is created and the number of active generations has reached the limit. EMPTY means that all currently cataloged datasets are uncataloged when a new generation is cataloged after the limit is reached. Scratch option..........SCRATCH means that when a generation is uncataloged it is scratched (deleted). NOSCRATCH leaves uncataloged generation datasets on DASD.

The following is an outline of the restart logic flow executed by the shell/skeleton combination in restartable batch clients. The only code the application programmer must write is the underlined sections below. Application paragraphs are provided in the skeleton for each of these functions. HOUSEKEEPING Open output files and auxiliary input files Initialize the commit counter If WARM-START, read/fetch the next record/row If COLD-START, open-read/open-fetch the first record/row Update restart data values in working storage PROCESS Perform Application/Business Logic

If COMMIT-CNTR > PARM-COMMIT-THRESHOLD, Update the restart table Perform an SQL COMMIT Initialize COMMIT-CNTR Read/Fetch the next record/row Update restart data values in working storage Increment the commit counter Repeat until all records are processed WRAP-UP Close the primary input source Close the output files Close the auxiliary input files Set a successful return code Return control to the BCM

SEARCH SEARCH ALL 1) Used for sequential search in COBOL tables. 1) Used for Binary search. 2) The entries do not need to be in any order. 2) The table entries must be in some order. 3) SEARCH can use multiple WHEN conditions.

3) Only one WHEN is allowed. 4) SEARCH can be used with any relational condition 4) SEARCH ALL works with only equality condition.

5) SET statement is a must for initializing the index before its usage. 5) SET statement is not required.

Potrebbero piacerti anche