IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to XDC joblog to PDS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jackzhang75

Active User


Joined: 09 Jun 2014
Posts: 125
Location: US

PostPosted: Tue Jul 15, 2014 12:59 am
Reply with quote

Hi ,

I want to XDC JOBLOG to PDS using REXX, i know there is way REXX interact with SDSF , somthing like ,

"TOKEN('"TOKEN.ix"') PARM(NP" action_option")"


But i tried , it not working, Anyone did the same thing before , can you me a sample that would be really helpful . Appreicated !
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Jul 15, 2014 5:52 am
Reply with quote

Quote:
it not working,

Can you provide a short code segment so we can see what you are doing?

And can you provide more problem determination information besides 'not working'?
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Jul 15, 2014 5:56 am
Reply with quote

Look at the 'printing output' section of chapter 13, "Using SDSF with the REXX programming language" of the "SDSF Operation and Customization" manual.
Back to top
View user's profile Send private message
Paul Voyner

New User


Joined: 26 Nov 2012
Posts: 52
Location: UK

PostPosted: Tue Jul 15, 2014 12:20 pm
Reply with quote

What Pedro said. You can also do it with XFC to a preallocated file, which might be easier. But since the book has a section called "Examples of printing" you can work this stuff out for yourself.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Tue Jul 15, 2014 6:11 pm
Reply with quote

I posted a solution some time ago. Search the forum for ISFEXEC (there are only two threads).

Ah, what the heck. I will post it again:
Code:
/* Rexx program to copy job output from SDSF to a PDS  */       
/* Demonstration only:  not for real use               */       
/*                                                     */       
ISFrc = isfcalls("ON")                                           
isfprefix = "*"                                                 
isfowner  = "your userid "                                           
address SDSF "isfexec st (delayed"                               
ISFPRTDSNAME = "'any suitable PDS'"                     
ISFPRTDISP   = "SHR"                                             
do i = 1 to isfrows                                             
   ISFPRTMEMBER = jobid.i                                       
   say "Adding: " ISFPRTMEMBER                                   
   address sdsf "isfact st token('"token.i"') PARM(NP XDC)"     
   say isfmsg                                                   
end                                                             
ISFrc = isfcalls("OFF")                                         
exit 
Back to top
View user's profile Send private message
jackzhang75

Active User


Joined: 09 Jun 2014
Posts: 125
Location: US

PostPosted: Thu Jul 17, 2014 2:09 am
Reply with quote

Thanks for you code , it works perfect !!!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts WAFTBL - in JOBLOG JCL & VSAM 3
No new posts Capturing the joblog with filter as u... CLIST & REXX 12
No new posts Capture Joblog into PS Using REXX CLIST & REXX 8
No new posts REXX tool to Search Joblog for a para... CLIST & REXX 1
No new posts JOB to clean JOBLOG. CA Products 10
Search our Forums:

Back to Top