SDSF in Batch Mode



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

SDSF in Batch Mode

Postby Bala1 » Fri Apr 09, 2010 9:15 pm

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
_____________________
Cheers,
Bala
Bala1
 
Posts: 15
Joined: Tue Apr 06, 2010 7:07 pm
Location: London, United Kingdom
Has thanked: 0 time
Been thanked: 0 time

Re: SDSF in Batch Mode

Postby enrico-sorichetti » Fri Apr 09, 2010 10:14 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: SDSF in Batch Mode

Postby pratiksha88 » Wed Sep 24, 2014 6:17 pm

Hi,

"++ALL "

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

I get a message saying invalid command.
pratiksha88
 
Posts: 5
Joined: Wed Sep 24, 2014 6:06 pm
Has thanked: 0 time
Been thanked: 0 time

Re: SDSF in Batch Mode

Postby NicC » Wed Sep 24, 2014 7:24 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: SDSF in Batch Mode

Postby Thampy » Thu Sep 25, 2014 9:26 pm

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                                                         
Thampy
 
Posts: 36
Joined: Sat Sep 26, 2009 2:27 pm
Has thanked: 0 time
Been thanked: 3 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post