

Using the CommandFacility as a Subprogram › Work-Area File
Work-Area File
The work-area file is a block of program variable storage that contains a series of 80-byte records. The following rules apply to the work-area file:
- The maximum number of records in the work-area file must be placed in the CIOFSZMX field of the applicable CIOF block by the user program before the program invokes the compiler interface.
- The size of the work-area file is determined by the user program; it must be a multiple of 80.
- If an compiler output file is exhausted when the work-area file is written to by the compiler, a return code of 28 (X'1C') is placed in the CIOIORC field of the CIO block and the excess records are lost.
- If the compiler file is exhausted when the work-area file is read from by the compiler, an end-of-file condition is returned to the compiler.
Upon return to the user program, the CIOFSZUS field contains the number of records actually read from or written to the file.
Copyright © 2014 CA.
All rights reserved.
 
|
|