View previous topic :: View next topic
|
Author |
Message |
deybumba_2k
New User
Joined: 09 Jan 2006 Posts: 17
|
|
|
|
Hello,
I have a series of jobs that will be submitted and my requirement is that, I want to write those jobnames into a file which has either abended or died due to a JCL Error.
Can anyone tell me how can I track the abended jobs and in the job how can i write to a dataset if the job is abending.
Thanks,
Subha |
|
Back to top |
|
|
Santoshdorge
New User
Joined: 27 Jun 2006 Posts: 48 Location: Pune
|
|
|
|
Hi Subha,
what tool you are using to retrieve, process, and control sysout listings.
With the help of that you can retrive the datasets in which sysout listing is stored(this can be done using Rexx LMDINIT command). Then by running SORT on all these datasets in concatenation select only those records where abend code or MaxCC is listed.
For e.g.
In my shop to see the datasets in which sysout listing is stored, I do Requeues of migrated job.
In reque job sysprint i see
Code: |
HRECOVER 'HLQ.D0206369.T408233.jobname' WAIT |
Using above rexx command i can find all dataset HLQ.*.*.jobname(one for each job i submited).Then I do run the SORT to select the records with return codes. MaxCC or abend codes are listed against msgcode '$HASP901' for me.
Here is sample output
Code: |
23.52.23 JOB00537 $HASP901 FOCXRL01 MAXCC(0000) INFUSR=NO
00.51.36 JOB00538 $HASP901 FOCXRM01 MAXCC(0000) INFUSR=NO
02.06.32 JOB20520 $HASP901 SD590HAS ABEND U0016 INFUSR=NO
|
|
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
Back to top |
|
|
|