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

Infinite loop Error S322


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
grem

New User


Joined: 06 May 2009
Posts: 14
Location: philippines

PostPosted: Mon Aug 17, 2009 4:34 pm
Reply with quote

Hi,

Im running job G586476 on our test environment unfortunately i encountered S322 Which is it exceed the CPU Time limit for this job, so i tried to indicate a time parameter on its jcl but unfortunately this job runs for almost 4 hours it did not end its having an infinite loop.

Can somebody know what the best thing to do?

Thanks icon_smile.gif
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Mon Aug 17, 2009 4:45 pm
Reply with quote

use command "P" to cancel the job that is running.

Then check the job logic twice.
Back to top
View user's profile Send private message
grem

New User


Joined: 06 May 2009
Posts: 14
Location: philippines

PostPosted: Mon Aug 17, 2009 4:56 pm
Reply with quote

ive checked the job and its only producing a report by reading the records on several tables.

does this have a connection on a Database connection problem?
Back to top
View user's profile Send private message
Pankaj Shrivastava
Currently Banned

New User


Joined: 24 Jul 2009
Posts: 51
Location: Pune

PostPosted: Mon Aug 17, 2009 5:38 pm
Reply with quote

Quote:
it did not end its having an infinite loop.


Fix the loop icon_mad.gif
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Mon Aug 17, 2009 7:19 pm
Reply with quote

Not clearly, but if you can put your jcl and log here, it will be more helpful.
Back to top
View user's profile Send private message
grem

New User


Joined: 06 May 2009
Posts: 14
Location: philippines

PostPosted: Mon Aug 17, 2009 8:08 pm
Reply with quote

here's my sample jcl:

Code:
//GPS176  JOB (META0001,2000),'G586476',PRTY=15,
//         MSGLEVEL=(1,1),CLASS=A,MSGCLASS=H,SCHENV=DB0T     
/*JOBPARM FORMS=STD                                           
//PROC JCLLIB ORDER=(NDVR.PROD.PROCLIB)                       
//*                                                           
//   EXEC K586476,B=T,                                       
//       ENV=PS1,                                             
//       CYL=TRK,                                             
//       PRMLIB2='SS5864.G5864PS1.PARM.CNTL',                 
//       BYPASS='T5864.G5864PS1.BYPASS.G586476.DATA',         
//*                                                           
//*    S T E P L I B S                                       
//       JOBLIB1='NDVR.PROD.LOADBAT,DISP=SHR',               
//       JOBLIB2='NDVR.PROD.LOADBAT,DISP=SHR',               
//       JOBLIB3='NDVR.PROD.LOADBAT,DISP=SHR',               
//       JOBLIB4='DBDCSUP.DB2.DB0T.SDSNEXIT,DISP=SHR',       
//       JOBLIB5='DBDCSUP.DB2.DB0T.SDSNLOAD,DISP=SHR',       
//         DALIB='NDVR.PROD.LOADBAT,DISP=SHR',               
//        COBLIB='MHTECH.COBLIB,DISP=SHR',                   
//       SCEERUN='SYS1.CEE.SCEERUN,DISP=SHR'
//*                                         

logs is:


Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Mon Aug 17, 2009 8:41 pm
Reply with quote

If you have a monitoring tool like Xpediter or Strobe, use it to determine where your loop is. If no monitoring tool, place DISPLAY statements at strategic locations to help determine the loop. If it's a simple and small program, you might be able to determine the problem simply by thoroughly examining the logic. Suwertihín ka nawâ!
Back to top
View user's profile Send private message
mike duff

New User


Joined: 05 Mar 2009
Posts: 4
Location: halifax

PostPosted: Sat Nov 28, 2009 5:03 am
Reply with quote

grem wrote:
Hi,

Im running job G586476 on our test environment unfortunately i encountered S322 Which is it exceed the CPU Time limit for this job, so i tried to indicate a time parameter on its jcl but unfortunately this job runs for almost 4 hours it did not end its having an infinite loop.

Can somebody know what the best thing to do?

Thanks icon_smile.gif


use a strobe to find the most executed code
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sat Nov 28, 2009 5:46 am
Reply with quote

mike duff wrote:
use a strobe to find the most executed code
Suggested over 3 months ago.
Back to top
View user's profile Send private message
mike duff

New User


Joined: 05 Mar 2009
Posts: 4
Location: halifax

PostPosted: Sat Nov 28, 2009 7:50 pm
Reply with quote

Terry Heinze wrote:
mike duff wrote:
use a strobe to find the most executed code
Suggested over 3 months ago.

terry, i have a question for you. With strobe you can attach the strobe to the executing production for 5 minutes and then see the results. My question about Xpediter for this purpose. can you attach it to an existing production job? I usually used the TSO method to run a test not the attach to test JCL method. Can you attach to production?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sat Nov 28, 2009 9:14 pm
Reply with quote

I don't have access to a mainframe, but as far as I recall, you cannot attach Expediter to an executing program.
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: Sat Nov 28, 2009 9:29 pm
Reply with quote

Xpediter makes JCL changes when preparing the batch job for submission; since production jobs are generally scheduled using fixed JCL, it would be difficult to use it on a production job.
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 -> HomeWorks & Requests

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
This topic is locked: you cannot edit posts or make replies. REXX - Do - Not able to LOOP CLIST & REXX 10
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top