z/OS Infoprint Server User's Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


Transform and print data sets only if the transform is successful

z/OS Infoprint Server User's Guide
SA38-0695-00

Transform and print data sets only if the transform is successful

This example shows how to transform data to AFP format and print the output only if no warnings or errors occur during the transform. IBM® Infoprint Transforms to AFP is required.

In the first step, the PostScript to AFP transform reads PostScript input from data set HLQ.INPUT.PS and writes AFP output to data set HLQ.OUTPUT.AFP, where HLQ represents the high-level qualifier; for example, your TSO or RACF® user ID.

The STDENV data set specifies the AOP_MVS_RETURN_CODES environment variable. Because this variable is set to YES, the transform returns MVS™ return codes: 0 (successful), 4 (warning), 8 (failure).

In the second step, the AOPPRINT JCL procedure prints the AFP output to the printer named mypsfprinter, which is defined in the Printer Inventory. This step runs only if the return code from the transform step is less than 4.

//AOPBATCH JOB  ...
//TRANSFRM EXEC PGM=AOPBATCH,PARM='/ps2afp -o //DD:OUTPUT //DD:INPUT'
//INPUT    DD   DSN=HLQ.INPUT.PS,DISP=SHR
//OUTPUT   DD   DSN=HLQ.OUTPUT.AFP,DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=VBM,LRECL=32756,BLKSIZE=32760),SPACE=(CYL,(1,1))
//STDOUT   DD   SYSOUT=*
//STDERR   DD   SYSOUT=*
//STDENV   DD   *
AOP_MVS_RETURN_CODES=YES
/*
//PRINT    EXEC AOPPRINT,PRINTER='mypsfprinter',
//  COND=(4,LT,TRANSFRM)
//SYSIN    DD   DSN=HLQ.OUTPUT.AFP,DISP=SHR
 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014