View previous topic :: View next topic
|
Author |
Message |
Siva219734
New User
Joined: 27 Jul 2008 Posts: 5 Location: Mumbai
|
|
|
|
Hi All,
I am in process of automating the job failure notifications through an email when a job fails, Based on the condition given at that step, like ( If STEPNAME.RC >0) Then it will execute a REXX program which will extract the details of the following logs from the JES2 SPOOL.
1. JESMSG
2. JESYSMSG
3. STEPNAME.SYSPRINT
Here, I want to pass the above info(JESMSG, JESYSMSG, STEPNAME.SYSPRINT etc.. ) from the JCL to the REXX program at run time. Then the REXX program will extract the data from the above logs and store it in a temporary dataset. Then this dataset is used to send an email to us.
request your help on how to pass the above info(JESMSG, JESYSMSG, STEPNAME.SYSPRINT etc.. ) to REXX program as a input.
Thanks in anticipation.
Regards,
Siva Kumar Reddy. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I would look through the JESMSGLG output to get the stepname that failed. Then use the REXX routine to go to the appropriate sysout segment once the failing step has been identified. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
I want to pass the above info(JESMSG, JESYSMSG, STEPNAME.SYSPRINT etc.. ) from the JCL to the REXX program at run time. |
I do not think you want to pass the info. The REXX program should figure out the jobname and jobnumber then use SDSF to get the information. |
|
Back to top |
|
|
Siva219734
New User
Joined: 27 Jul 2008 Posts: 5 Location: Mumbai
|
|
|
|
Pedro wrote: |
Quote: |
I want to pass the above info(JESMSG, JESYSMSG, STEPNAME.SYSPRINT etc.. ) from the JCL to the REXX program at run time. |
I do not think you want to pass the info. The REXX program should figure out the jobname and jobnumber then use SDSF to get the information. |
Hi,
Thanks for you reply.
Can you please provide me the REXX program which extracts the SDSF details for a job when it abends.. like the SYSPRINT of that step where it failed.
Many Thanks,
Siva Kumar Reddy |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
This appears to be a popular topic, and has been discussed many times with examples.
Please feel free to use the search button at the yop of the page. |
|
Back to top |
|
|
|