Format
WRITE record-name
Function
Output processing edits data contained in the record data area and outputs it to the printer according to the field attribute. The application program stores the output data in the record data field of the field to be output before calling this function.
To call this function immediately after open processing, always use the Setting the descriptor name function to set the descriptor name to be used.
Parameters
Specify the partition name to be output.
Example
Print the field S001 in the form descriptor "SAMP".
MOVE "SAMP" TO PRT-FORMAT. MOVE "S001" TO PRT-GROUP. WRITE SAMP.
Diagnosis
Return code is stored in the FILE STATUS clause.