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 

Reading Spool thru REXX

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


Joined: 29 May 2004
Posts: 5
Topics: 4
Location: Chennai

PostPosted: Wed Oct 13, 2004 7:12 am    Post subject: Reading Spool thru REXX Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Oct 13, 2004 7:48 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Maheshwari
Beginner


Joined: 19 Oct 2004
Posts: 21
Topics: 3

PostPosted: Tue Oct 19, 2004 11:20 pm    Post subject: Reply with quote

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
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