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

Dectecting LOOPS Mainframe Batch Processing


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
JCLfreak

New User


Joined: 07 May 2009
Posts: 3
Location: Hagerstown MD

PostPosted: Thu May 07, 2009 8:29 pm
Reply with quote

What is the best way to detect a loop for a batch job? I believe that the no I/O should indicate this but then there are other issues.. and what about a write loop which would be very difficult to see?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu May 07, 2009 8:42 pm
Reply with quote

Quote:
and what about a write loop which would be very difficult to see?
Not once you start running out of DASD or JES space.....
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu May 07, 2009 8:42 pm
Reply with quote

Loops may include I/O or not -- a program reading directly the same VSAM record over and over, or writing output to spool -- so the only reliable indicators are (1) CPU time limit is hit, no matter what it is set to, or (2) a debugger is used to watch the execution. A loop with a write will usually generate messages about the number of lines being exceeded but that is determined by the site, and the program may possibly fill the spool space up, but CPU time limit exceeded I have found to be the best red flag to look at what is going on. Sometimes the number of records can cause the CPU to be exceeded, but that's fairly rare.
Back to top
View user's profile Send private message
JCLfreak

New User


Joined: 07 May 2009
Posts: 3
Location: Hagerstown MD

PostPosted: Thu May 07, 2009 10:20 pm
Reply with quote

I guess if you are monitoring in TMON then the I/O would not change for the input file?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu May 07, 2009 10:28 pm
Reply with quote

Probably not.

d
Back to top
View user's profile Send private message
JCLfreak

New User


Joined: 07 May 2009
Posts: 3
Location: Hagerstown MD

PostPosted: Thu May 07, 2009 10:46 pm
Reply with quote

I don't have a copy of the job.. It happened last week. The thing was processing almost 5 hours before someone finally saw that it was looping.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu May 07, 2009 11:31 pm
Reply with quote

Hello,

Suggest someone find out why the job was not "timed out" automatically. . .
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
Search our Forums:

Back to Top