View previous topic :: View next topic
|
Author |
Message |
jackzhang75
Active User
Joined: 09 Jun 2014 Posts: 125 Location: US
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
Paul Voyner
New User
Joined: 26 Nov 2012 Posts: 52 Location: UK
|
|
|
|
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 |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
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 |
|
|
jackzhang75
Active User
Joined: 09 Jun 2014 Posts: 125 Location: US
|
|
|
|
Thanks for you code , it works perfect !!! |
|
Back to top |
|
|
|