Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SDSF/ISFAFD to capture JESMSGLG for certain jobs for a Date

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
pcsingh_2000

New User


Joined: 26 May 2004
Posts: 6
Location: Kolkata

PostPosted: Fri Jul 22, 2011 11:06 pm    Post subject: SDSF/ISFAFD to capture JESMSGLG for certain jobs for a Date
Reply with quote

Hi,

I have a requirement like this:
1) I have to print the messages of JESMSGLG of all the jobs with PRE DH* and OWNER * in a single dataset
2) I need this for jobs for specific date for example (current date or any specific date)

I am able to capture the message of 1st job in the listing but not able to do the same for subsequent jobs.

Here is my ISFIN control statements

//ISFIN DD *
ST
PRE DB*R*
OWNER *
AFD REFRESH
++?
FIND 'JESMSGLG'
++S
PRINT FILE REPORT
PRINT 1 9999
END
EXIT
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Jul 22, 2011 11:10 pm    Post subject:
Reply with quote

Find the list of jobs which match you criteria and then process each one individually using DISP=MOD on the output dataset.

You will probably need some REXX to do this.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Fri Jul 22, 2011 11:11 pm    Post subject: Reply to: SDSF/ISFAFD to capture JESMSGLG for certain jobs f
Reply with quote

see here for tested snippets
http://www.ibmmainframes.com/viewtopic.php?t=54926&highlight=
Back to top
View user's profile Send private message
pcsingh_2000

New User


Joined: 26 May 2004
Posts: 6
Location: Kolkata

PostPosted: Sun Aug 07, 2011 10:16 pm    Post subject: Reply to: SDSF/ISFAFD to capture JESMSGLG for certain jobs f
Reply with quote

Hi,

Thankful for the useful link.

It helps me to code one tool using Rexx for SDSF. What I can say is .. truely better than batch SDSF.

Regards,
Prakash.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1722
Location: UK

PostPosted: Sun Aug 07, 2011 11:44 pm    Post subject:
Reply with quote

That link was from about 2 months ago - surely you remember reading it at the time? And a search would have come up with it.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us