CL Command Reference - PRTTXTOND

CL Command List > PRTTXTOND Reference

Description:

The Print Text for OnDemand (PRTTXTOND) command allows you to print all or part of a spooled file in a text-only format. This allows the report administrator to see what the report looks like to ADDRPTOND when it is indexed. Using this output, the administrator can determine how to index the report.


Examples:

Example 1: Simple Example

PRTTXTOND SPLF(CKSTMTPRTF)

This command submits a job to batch to print a text-only version of the first ten pages of the CKSTMTPRTF spooled file that was generated in the current job. (This function is of particular value to aid in indexing AFP (Advanced Function Presentation) spooled files.)



Example 2: More Complex Example

PRTTXTOND SPLF(CKSTMTPRTF) JOB(123456/OPERATOR/NIGHTBATCH)
SPLNBR(*LAST)STMF(¡¯/MYDIR/MYOUTPUT.TXT¡¯)

This command is similar to Example 1 but specifies a particular job and spooled file number (*LAST) for the spooled file as well as a stream file to receive the output.