View previous topic :: View next topic |
Author |
Message |
Fizz Beginner
Joined: 18 Sep 2008 Posts: 4 Topics: 2
|
Posted: Thu Mar 29, 2012 9:20 am Post subject: Rexx to take output spool reports from sdsf to FTP to server |
|
|
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 |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
|
Back to top |
|
|
Fizz Beginner
Joined: 18 Sep 2008 Posts: 4 Topics: 2
|
Posted: Thu Apr 05, 2012 6:02 am Post subject: |
|
|
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 |
|
Back to top |
|
|
Fizz Beginner
Joined: 18 Sep 2008 Posts: 4 Topics: 2
|
Posted: Tue Apr 10, 2012 9:17 am Post subject: |
|
|
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 |
|
|
|
|