MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Rexx to take output spool reports from sdsf to FTP to server

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Fizz
Beginner


Joined: 18 Sep 2008
Posts: 4
Topics: 2

PostPosted: Thu Mar 29, 2012 9:20 am    Post subject: Rexx to take output spool reports from sdsf to FTP to server Reply with quote

I would love some pearls of wisdom from the people on here and perhaps some pointers on where to start.

I know a little Rexx and I have figured out that this could probably be done with SDF/Rexx but I need a helping hand.

We have a requirement to take output from a specific output class on the output spool and create a file on a server for each one. So for example a line in the JCL

//sysout dd sysout=(a,xyz12345)

it appears on the output with xyz12345 in the wtr field and we want to take all the output from class A with a wtr field set and in this case FTP it to a file that is jobname_stepname_CCYYMMDD_xyz12345.txt on a server

once the output is FTP'd we then want to delete the output.

If someone could at least point me to one of the myriad of topics on the REXX/SDSF subjects that may help it would be a start.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Apr 04, 2012 6:03 pm    Post subject: Reply with quote

There is a section in the SDSF books (I think) in using SDSF with Rexx. The interface is quite good and allows you to get output from SDSF commands into stem variables. You then process the stem variables to find the jobs of interest to you and then do whatever you need to with the jobs. The interface can also retrieve job output if the caller has the authority to do so. I used this to create a limited web interface to SDSF once a long time ago.

Note that this is not the same as calling SDSF in batch. That was basically just a way capture SDSF screens in batch and had, in my opinion, limited usefulness.

http://publib.boulder.ibm.com/infocenter/ieduasst/stgv1r0/index.jsp?topic=/com.ibm.iea.zos/zos/1.9/Simplification/zOSV1R9_Simplification_SDSFREXX/player.html
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
Fizz
Beginner


Joined: 18 Sep 2008
Posts: 4
Topics: 2

PostPosted: Thu Apr 05, 2012 6:02 am    Post subject: Reply with quote

thanks very much.

I can figure out now how to get to the output I need to get off SDSF I just need to figure out how to print the output to a file (similar to as you would do with PRT ODSN etc?

any hints for that Smile
Back to top
View user's profile Send private message
Fizz
Beginner


Joined: 18 Sep 2008
Posts: 4
Topics: 2

PostPosted: Tue Apr 10, 2012 9:17 am    Post subject: Reply with quote

right.. I have it working but not in a batch job.. one bit gives RC when run in batch -

do jnum = 1 to jname.0
If wtrid.jnum <> "" then do
say right(jnum,2) jname.jnum jobid.jnum wtrid.jnum
jopts = "(PREFIX J)"
Address SDSF "ISFACT O TOKEN('"token.jnum"') PARM(NP ?) " jopts

if RC
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group