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 

To find out job name associated with outstanding WTORs !!

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
amit4u79
Beginner


Joined: 24 Oct 2005
Posts: 109
Topics: 36
Location: India

PostPosted: Fri Feb 03, 2006 2:45 am    Post subject: To find out job name associated with outstanding WTORs !! Reply with quote

Hi folks....first of all thanks a lot for all the replies I am getting for my queries on this board.

I was not sure where to post this question, so bare me if I posted it in here.

I know that when I issue a command 'D R,R' or D R,R,SYS=sysname' it gives me a list of all the outstanding WTORs on the console. Actually in our Automation requirement, we need to also capture if there is any job name associated with the outstanding WTOR, if yes we would need to capture that as well. Is there any option along with 'D R,R' command which can give me the Job name associated with the outstanding WTOR.

Thanks for all your responses.

Regards,
- Amit.
_________________
I did not fail; I have found 10,000 ways that would not work - Albert Einstein.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Bithead
Advanced


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

PostPosted: Fri Feb 03, 2006 11:08 am    Post subject: Reply with quote

What product are you using for Automation?
Back to top
View user's profile Send private message
CaptObvious
Beginner


Joined: 01 Feb 2006
Posts: 19
Topics: 1

PostPosted: Fri Feb 03, 2006 12:46 pm    Post subject: Reply with quote

Whether or not a jobname is included in the WTOR depends entirely on whether a jobname was coded in the JCL. However, whenever a job issues a WTOR, it will be accompanied in the syslog by the job number. For example:

JOB00096 00000090 @04 OPERATOR - ** OPER MOUNT & LABEL ALL FOLLOWING OUT OF LIBRARY TAPES

If you can capture the job number from the syslog, you can then issue a $DJxxx in your automation to capture the jobname.
Back to top
View user's profile Send private message
amit4u79
Beginner


Joined: 24 Oct 2005
Posts: 109
Topics: 36
Location: India

PostPosted: Mon Feb 06, 2006 5:19 am    Post subject: Reply with quote

Hi, I am using AF/Operator as Automation tool for my requirement. I have already implemented an Automation to look out for outstanding WTORs and raise alerts to concerned people. But now an enhancement is required in which if the WTOR is issued by a Job I need to find out the Jobname as well.
Captobvious, when I issued a regular 'D R,R' command I get an output in the syslog as below, which does not match the one you have written:

D R,R
IEE112I 18.02.49 PENDING REQUESTS 787
RM=9 IM=0 CEM=0 EM=0 RU=4 IR=0 NOAMRF
ID:R/K T SYSNAME MESSAGE TEXT
2290 R SP05 *2290 IEF235D PDCCDRSB RESTORE WAITING FOR
VOLUMES. TO CANCEL WAIT REPLY 'NO'

Here, it directly gives me the Jobname PDCCDRSB, but is it always necessary that it is issued by a Job, in this case it is ??
How do I distinguish if it is done by a Job or STC or something but not a Batch Job ??

Regards,
- Amit.
_________________
I did not fail; I have found 10,000 ways that would not work - Albert Einstein.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
nevilh
Beginner


Joined: 11 Aug 2004
Posts: 115
Topics: 0

PostPosted: Mon Feb 06, 2006 10:25 am    Post subject: Reply with quote

Try issueing "D R,A,S" instead of "D R,R" and then follow the advice of CCaptobvious.
Back to top
View user's profile Send private message
amit4u79
Beginner


Joined: 24 Oct 2005
Posts: 109
Topics: 36
Location: India

PostPosted: Wed Feb 08, 2006 3:00 am    Post subject: Reply with quote

Hey Nevilh, thanks a lot for the response...this command has done the trick for me. But before I put this monitoring change in my production system just wanted to know does this command list out only WTORs associated with Started Tasks or both Batch Jobs and Started Tasks ??
I tried finding out details about this command. Can you also suggest me a link to information about such Operator command.

Regards,
- Amit.
_________________
I did not fail; I have found 10,000 ways that would not work - Albert Einstein.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
CaptObvious
Beginner


Joined: 01 Feb 2006
Posts: 19
Topics: 1

PostPosted: Wed Feb 08, 2006 3:29 pm    Post subject: Reply with quote

The book you want is the MVS System Commands for your level of z/OS.

And having looked at it briefly, there are a few optional parameters which will give you the jobname without you having to resort to JES displays of the job number. For example, D R,R,JN gives me the jobname associated to every WTOR.

The command does not distinguish between WTORs issued from batch jobs or started tasks.
Back to top
View user's profile Send private message
amit4u79
Beginner


Joined: 24 Oct 2005
Posts: 109
Topics: 36
Location: India

PostPosted: Wed Feb 08, 2006 9:08 pm    Post subject: Reply with quote

Hey CaptObvious...thanks for the guidance....I have just found out various options with the D R,R command and thanks for your response.

Guys I am really grateful to the forum for providing me instant responses to my query. Hats Off to MVSFORUMS....

Thanks Kolusu and all who have contributed to making this site a real success.

Regards,
- Amit.
_________________
I did not fail; I have found 10,000 ways that would not work - Albert Einstein.
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 -> Other Technical Topics 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