Output sends fixed data in the form descriptor, data provided by the application program, and overlay data to the printer. Actual printing is done during the close process.
In Figure 3.2, the following statement outputs data to the printer:
WRITE BILL
FILE STATUS clause: Return code storage area at abnormal termination.
If close is not executed and data output continues, temporary space on the disk may become insufficient, causing a system error. Execute the printing process by using the close function or increase the temporary space if necessary. Create the temporary space by setting environment variable TEMP or TMP. Refer to your Windows operating system manuals for details.