Page 1 of 1

SDSF in Batch Mode

PostPosted: Fri Apr 09, 2010 9:15 pm
by Bala1
Hi ,
I have a requirement of print the job logs into a Dataset. I am able to print list of jobs whose complete name are known to me. The JCL that i used is below
**************************************************************************************************************
//SDSFSTEP EXEC PGM=SDSF,PARM='++60,228'
//ISFOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//ISFIN DD *
PRINT ODSN 'HLQ1.HLQ2.JOBLOG'
PREFIX *
OWNER *
ST PRDTST01
++ALL
FIND PRDTST01
++//X
FIND PRDTST01 LAST
++//
PRINT
PRINT CLOSE
END
/*
***************************************************************************************************************
I would like to know if there is a way to print job whose jobname starts with the same characters. i.e., i need to print all the jobs in my SPOOL whose name are like PRDTS*.

When i modified the JCL nothing was written to the output file.


Can anyone help me with this ??


Cheers,
Bala

Re: SDSF in Batch Mode

PostPosted: Fri Apr 09, 2010 10:14 pm
by enrico-sorichetti
for a more sophisticated approach using rexx You might want to look at
http://www.redbooks.ibm.com/abstracts/sg247419.html
and a click on the additional material link will take You to
ftp://www.redbooks.ibm.com/redbooks/SG247419/
were You can download the sources of the samples

Re: SDSF in Batch Mode

PostPosted: Wed Sep 24, 2014 6:17 pm
by pratiksha88
Hi,

"++ALL "

Could you please advice why the commands containing "++" does not execute on my system.

I get a message saying invalid command.

Re: SDSF in Batch Mode

PostPosted: Wed Sep 24, 2014 7:24 pm
by NicC
Could you please advice why the commands containing "++" does not execute on my system

Not without reading the manual which you could do yourself. IF the syntax is valid then speak to the support guys.

Re: SDSF in Batch Mode

PostPosted: Thu Sep 25, 2014 9:26 pm
by Thampy
I ran the below JCL and it copied all occurences of TESTJOB from SDSF outout queue to the REPORT output file. Unfortunately i don't have access to ST command to test your requirement. I hope the JCL should work for ST command as well.

//STEP002 EXEC PGM=SDSF                                             
//ISFOUT   DD  SYSOUT=*                                             
//REPORT   DD DSN=USERID.SDSF.OUTOUT,DISP=(,CATLG,DELETE),         
//         SPACE=(TRK,(300,100),RLSE),RECFM=FBA,LRECL=133,DSORG=PS 
//ISFIN    DD  *                                                   
OWNER *                                                           
PREFIX *                                                       
O                                                                   
PRINT FILE REPORT                                                   
FIND 'TESTJOB'                                                     
++//X                                                               
FIND 'TESTJOB' LAST                                               
++//                                                               
PRINT CLOSE