manoopatil
New User

Joined: 07 Dec 2003 Posts: 56 Location: Montreal
|
|
|
|
I have a following extract step in my job which extracts the report from the SAR and writes into the DOUT file.
Sometimes the report id passed to this step is locked by the SAR program. Hence the report is not extracted in the file with DD name DOUT. I was to capture this situation and take the appropriate action in the next step. Can some one please let me know what will be the RETURN CODE/ CONDITION CODE from this step in case the report is locked by SAR?
| Code: |
//EXTRACT EXEC PGM=SARBCH
//SYSPRINT DD SYSOUT=*
//DOUT DD DSN=TEST.S5R.AUTO.W.&RPT..&RUN,
// UNIT=TSO,SPACE=(TRK,(25535,5000),RLSE),
// DISP=(,CATLG,DELETE),
// DCB=(RECFM=FBA,LRECL=133)
//SYSIN DD *
/DBASE NAME=SYS4.RPTDH
/PRINT ID=RPDP0016 GEN=05451 SEQ=05550 DDNAME=DOUT
|
|
|