AMB generates the following fields, enabling you to logically terminate the loop structure.
APS-END-PROCESS |
S-COBOL flag initialized FALSE. To end the process loop, set flag to TRUE. |
name-END-PROCESS |
AMB generates this flag, where name is the PROCESS-ID name. Use this flag when using DB-PROCESS-ID clauses for nested loops. |
name-PROCESS-CTR |
AMB generates this counter, where name is the PROCESS-ID name. Use this counter when using DB-PROCESS-ID clauses for nested loops. |
APS-PROCESS-CTR |
AMB increments this counter at each process loop execution. This counter controls looping, serves as a subscript when moving data into a table or screen fields, and counts processed records |
The specific purposes of this call vary depending on the target.
Key-qualified.
DB-PROCESS REC recordname ... [WHERE keyname operator value [SUB[SCRIPT] value] ... [OF|IN dataarea]] ... [DB-PROCESS-ID name] [INTO dataarea] [HOLD] [RESET] ... [VIEW|PCB pcbname] Controlled logic block
Unqualified.
DB-PROCESS REC recordname ... [DB-PROCESS-ID name] [INTO dataarea] ... [HOLD] [RESET] ... [VIEW|PCB pcbname] Controlled logic block
REC recordname |
IMS segment to process. |
WHERE keyname operator value |
Operator can be =, EQ, >, GT, <, LT, >=, GE, <=, LE, <>, NE, ^=. Value can be literal, data name, or an asterisk (*). An asterisk indicates the segment record description contains the key value. |
SUB[SCRIPT] (value) |
Move the subscripted field value to a specified field. Value can be a data name, literal, or, under VSAM Batch or Online, an integer. |