Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Retrieve Job logs from SDSF

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Ramanan-R

New User


Joined: 21 Mar 2007
Posts: 66
Location: Chennai, Tamilnadu, India

PostPosted: Sat Nov 15, 2008 5:59 am    Post subject: Retrieve Job logs from SDSF
Reply with quote

Hi All,

Can anyone tell me how to retrieve all job logs of a specific owner in SDSF to a PDS?

So, if i have 20 jobs for a particular owner say "TESTER", I want to retrieve all 20 jobs log as members in a PDS.

Thanks!

Regards,
Ramanan R
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Nov 15, 2008 6:50 am    Post subject:
Reply with quote

Hello,

What does "all job logs" mean in this request? Everything currently in spooled output for the owner? The first file in the sysout for each currently spooled job for this owner?

I use the word current because this data is highly transient and what you retrieve one run may be quite different from a run only a little while later - especially if TESTER is logged on and sumbmitting and deleting jobs.

If this is something you want to do online, you might try xdc (or print odsn). There are exampoles in the forum.

To do what you want in a job, you can use sdsf in batch (if you have permission via your security setup). There are examples in the forum.

If you find something in a topic that is not clear, post what you found and your question about it. Someone should be able to clarify.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Sat Nov 15, 2008 12:54 pm    Post subject: Reply to: Retrieve Job logs from SDSF
Reply with quote

take a look at
http://www.redbooks.ibm.com/abstracts/sg247419.html
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1532
Location: Chennai

PostPosted: Mon Nov 17, 2008 4:39 pm    Post subject:
Reply with quote

I think I stole this code from Enrico icon_biggrin.gif not sure. But works anyway icon_biggrin.gif



Use the SDSF commands in the QUEUE statements below.. Wahlah... we have wat we need

Code:
/*REXX*/                                                               
ADDRESS TSO                                                             
"ALLOC F(ISFIN) TRACKS SPACE(1) REU"            /* USED BY SDSF     */ 
"ALLOC F(ISFOUT) NEW DELETE REU " ,             /* USED BY SDSF     */ 
"TRACKS SPACE(100,100) LRECL(133) RECFM(F,B,A) DSORG(PS)"               
"ALLOC F(TEMPPRT) DA('XK89.SDSF') SHR"                                 
                                                                       
QUEUE "PRE UA35KMA9"                       /* SDSF COMMANDS IN BATCH*/ 
QUEUE "DA"                                                             
QUEUE "FILTER JOBID EQ "JOB02140                                       
QUEUE "++?"                                /* OPEN OUTPUT OF JOB    */ 
QUEUE "FIND 'JESJCL'"                                                   
QUEUE "++S"                                /* BROWSE MSGUSR DATASET */ 
QUEUE "PRINT FILE TEMPPRT "                /* PRINT TO TEMP DATASET */ 
QUEUE "PRINT 1 999999"                                                 
QUEUE "PRINT CLOSE"                                                     
QUEUE "END"                                                             
QUEUE "EXIT"                                                           
                                                                       
"EXECIO" QUEUED()" DISKW ISFIN (FINIS"     /* INPUT TO SDSF BATCH   */ 
                                                                       
ADDRESS ISPEXEC "SELECT PGM(ISFAFD) PARM('++32,255)" /* INVOKE SDSF */ 
EXIT                                                                   
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts SDSF and SAF security danik56 TSO/ISPF 3 Wed Mar 15, 2017 12:51 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts 24x7 online logs using DSN1LOGP (simi... SRICOBSAS DB2 3 Thu Aug 18, 2016 11:52 am
No new posts Need to retrieve Julian_date Suganya87 DB2 4 Wed Aug 17, 2016 7:27 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us