Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Infinite loop Error S322

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests
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    Post subject: Infinite loop Error S322
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: [b]Infinite loop..[/b]
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: 1239
Location: Richfield, MN, USA

PostPosted: Mon Aug 17, 2009 8:41 pm    Post subject:
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    Post subject: Re: Infinite loop Error S322
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: 1239
Location: Richfield, MN, USA

PostPosted: Sat Nov 28, 2009 5:46 am    Post subject: Re: Infinite loop Error S322
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    Post subject: Re: Infinite loop Error S322
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: 1239
Location: Richfield, MN, USA

PostPosted: Sat Nov 28, 2009 9:14 pm    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Sat Nov 28, 2009 9:29 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us