View previous topic :: View next topic |
Author |
Message |
amit4u79 Beginner
Joined: 24 Oct 2005 Posts: 109 Topics: 36 Location: India
|
Posted: Fri Feb 03, 2006 2:45 am Post subject: To find out job name associated with outstanding WTORs !! |
|
|
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 |
|
|
Bithead Advanced
Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Fri Feb 03, 2006 11:08 am Post subject: |
|
|
What product are you using for Automation? |
|
Back to top |
|
|
CaptObvious Beginner
Joined: 01 Feb 2006 Posts: 19 Topics: 1
|
Posted: Fri Feb 03, 2006 12:46 pm Post subject: |
|
|
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 |
|
|
amit4u79 Beginner
Joined: 24 Oct 2005 Posts: 109 Topics: 36 Location: India
|
Posted: Mon Feb 06, 2006 5:19 am Post subject: |
|
|
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 |
|
|
nevilh Beginner
Joined: 11 Aug 2004 Posts: 115 Topics: 0
|
Posted: Mon Feb 06, 2006 10:25 am Post subject: |
|
|
Try issueing "D R,A,S" instead of "D R,R" and then follow the advice of CCaptobvious. |
|
Back to top |
|
|
amit4u79 Beginner
Joined: 24 Oct 2005 Posts: 109 Topics: 36 Location: India
|
Posted: Wed Feb 08, 2006 3:00 am Post subject: |
|
|
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 |
|
|
CaptObvious Beginner
Joined: 01 Feb 2006 Posts: 19 Topics: 1
|
Posted: Wed Feb 08, 2006 3:29 pm Post subject: |
|
|
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 |
|
|
amit4u79 Beginner
Joined: 24 Oct 2005 Posts: 109 Topics: 36 Location: India
|
Posted: Wed Feb 08, 2006 9:08 pm Post subject: |
|
|
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 |
|
|
|
|