DEPRINT
Authorization
General User
Purpose
Use the DEPRINT command to take a printer file from your virtual reader and write it to a disk file without losing carriage control characters.
Operands
- fn ft fm
- specifies the file ID to be used for the output file. The default is PRINTER LISTING A1.
Attention: The specified file ID must conform to the CMS file naming conventions. If the same file name, file type, and file mode already exists on your disk, the new file overwrites the original file.
- HOLD
- retains the reader spool file when the command completes. The default is to purge the input file. This option is assumed in the event of processing errors.
- FIXED
- writes the file to disk with a fixed record format. The default is to write the file with a variable record format. If the file is a VAFP print file and the FIXED option is chosen, the file created on disk will have an LRECL of 205.
Usage Notes
- DEPRINT will not process reader files in HOLD status. DEPRINT chooses the first printer file in your virtual reader not in HOLD status and writes this file to a disk file or directory. If DEPRINT does not find any files it can process, you receive a return code 4 (No input print file).
- DEPRINT does provide support for 3800 printer files, but it does not provide support for table reference characters (TRCs) in those files.
- If a file is read in from the virtual reader by the DEPRINT command and the PRINT command is used to print the file, the printed file will contain an extra page with a line of unreadable characters.
- DEPRINT processes class A spooled console output files (CON files).
- If the reader file is a VAFP print file, the file created by DEPRINT will have a maximum lrecl of 205 (204 + 1 for carriage control).
- In addition to the DEPRINT command, you can also use the preferred RECEIVE command with the KEEPCC option. See RECEIVE for details.
Messages and Return Codes
- DMS002E File not found [RC=4]
- DMS062E Invalid * in fileid [RC=20]
- DMS069E Filemode mode is not accessed [RC=36]
- DMS070E Invalid parameter parm [RC=24]
- DMS105S Error nn writing file fn ft fm [on disk or directory] [RC=xx]
- DMS687E This file has a special format and cannot be received. [RC=10]
- DMS1215E File fn ft fm is locked by another user [RC=70]
- DMS1262S Error nnn opening file fn ft fm [RC=xx]
- DMS2166E Invalid channel command code found [RC=8]
- DMS2167I The tag for printer file number spoolid was: tag [RC=0]
