To continue reading for free, register below or login
To read more you must become a member of Search400.com
');
// -->

The basic commands to copy a spool file to a database file and back again are as follows:
1. Create a physical file large enough to hold the data and the format control character
CRTPF FILE(QTEMP/TEST) RCDLEN(133)
2. Copy the spool file into this file along with the format control characters
CPYSPLF FILE(QPRINT) TOFILE(QTEMP/TEST) JOB(123456/User/Jobn) SPLNBR(1) CTLCHAR(*FCFC)
3. To create a spool file again, use the CPYF command
CPYF FROMFILE(QTEMP/TEST) TOFILE(QSYSPRT)
When this spool file is sent to a printer, the printer will recognize the data in Column 1 as format control characters and print the file correctly.
|