IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Track abended jobs


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
deybumba_2k

New User


Joined: 09 Jan 2006
Posts: 17

PostPosted: Tue Aug 26, 2008 11:03 pm
Reply with quote

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
View user's profile Send private message
Santoshdorge

New User


Joined: 27 Jun 2006
Posts: 48
Location: Pune

PostPosted: Wed Aug 27, 2008 10:40 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Aug 27, 2008 10:47 pm
Reply with quote

See this thread:
ibmmainframes.com/viewtopic.php?t=33708&highlight=
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts Reorg abended with REASON=X'00E40347' DB2 2
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
Search our Forums:

Back to Top