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 code to find out SDSF job is running or not

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


Joined: 03 Oct 2003
Posts: 17
Topics: 7

PostPosted: Fri Feb 06, 2004 1:06 pm    Post subject: Rexx code to find out SDSF job is running or not Reply with quote

Hi,

I have a requirment to run a macro say check to find
if a job brn0000 & rxr0000 are running in SDSF spool
If running it should display the ID i.e.; say brn0000 is active
then display " brn0000 is active "

can any one help me with the code.

Thanks & Regards,
Brij
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Fri Feb 06, 2004 2:15 pm    Post subject: Reply with quote

This is what I use to check for a job:
[code:1:eae876b4fd]
JOB_FND = "N";
ADDRESS "OPER";
"$DJ'BRN0000'";

/* PARSE THE OUTPUT */
DO WHILE QUEUED()
Back to top
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Fri Feb 06, 2004 2:15 pm    Post subject: Reply with quote

Try this - Hope this works...I have not tested it.....

Code:

/***** rexx *****/         
ADDRESS TSO                 
x = outtrap("line.","*")   
address tso "status" u457527 
/* Specify your jobname instead of U457527 */
x = outtrap("OFF")         
say line.1                 
exit                       


This will display something like "Job is executing" for an active job and "Job not found" for an inactive job. Run it through for the exact statements.

Regards,
manas
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
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