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: 10256
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: 1788
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 Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
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 LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm


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