//STEP02 EXEC PGM=ISFAFD
//PRINTDD DD DISP=SHR,DSN=XXXX.XXXX.XXXX.XXXX
//ISFOUT DD SYSOUT=*
//ISFIN DD *
SET CURSOR OFF
ST your job name
DA your job name
PRINT FILE PRINTDD
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
You can use a program or REXX code to get the current JOBNAME, etc from system control blocks while the job is running. Would this work or do you want to wait for the job to end and check the COND CODE?
For jobs that have completed, check the last sample code in THIS post for searching SDSF using REXX.