View previous topic :: View next topic |
Author |
Message |
magesh_rathnam Beginner
Joined: 29 May 2004 Posts: 5 Topics: 4 Location: Chennai
|
Posted: Wed Oct 13, 2004 7:12 am Post subject: Reading Spool thru REXX |
|
|
Hi all,
Is it possible to Read spool data via REXX. EXample: I keep a rexx exec running all the time to repeatedly invoke SDSF and check on the status of the job and submit the next job if the one running has completed.
or something like this... as we manually type SDSF;ST and locate a particular job and see its JES logs etc is it possible via REXX as I have to do this for a set of jobs.
Thanks in Advance,
Magesh. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Oct 13, 2004 7:48 am Post subject: |
|
|
Magesh rathnam,
Try this
Code: |
/*rexx*/
"ALLOC FI(ISFIN) DSN(REXX.ISFIN) OLD"
"ALLOC FI(ISFOUT)DSN(REXX.ISFOUT)"
ADDRESS ISPEXEC "SELECT PGM(SDSF)"
"FREE FI(ISFIN ISFOUT)"
|
ISFIN should have your SDSF commands.
Code: |
PRE prefix*
H
FIND 'jobname'
++S
PRINT ODSN 'rexx.isfout'
PRINT
PRINT CLOSE
END
EXIT
|
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
Maheshwari Beginner
Joined: 19 Oct 2004 Posts: 21 Topics: 3
|
Posted: Tue Oct 19, 2004 11:20 pm Post subject: |
|
|
You can also use TSO STATUS to check the status of the job in your queue and using OUTTRAP get the status of the job in REXX and check another job if its completed.
If you want to scan the joblog use TSO OUTPUT to get the job listing and scan for condition code and process the next job. _________________ Amit |
|
Back to top |
|
|
|
|