View previous topic :: View next topic
|
Author |
Message |
grem
New User
Joined: 06 May 2009 Posts: 14 Location: philippines
|
|
|
|
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 |
|
Back to top |
|
|
dejunzhu
Active User
Joined: 08 May 2008 Posts: 390 Location: China
|
|
|
|
use command "P" to cancel the job that is running.
Then check the job logic twice. |
|
Back to top |
|
|
grem
New User
Joined: 06 May 2009 Posts: 14 Location: philippines
|
|
|
|
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 |
|
|
Pankaj Shrivastava Currently Banned New User
Joined: 24 Jul 2009 Posts: 51 Location: Pune
|
|
|
|
Quote: |
it did not end its having an infinite loop. |
Fix the loop |
|
Back to top |
|
|
dejunzhu
Active User
Joined: 08 May 2008 Posts: 390 Location: China
|
|
|
|
Not clearly, but if you can put your jcl and log here, it will be more helpful. |
|
Back to top |
|
|
grem
New User
Joined: 06 May 2009 Posts: 14 Location: philippines
|
|
|
|
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 |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
mike duff
New User
Joined: 05 Mar 2009 Posts: 4 Location: halifax
|
|
|
|
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 |
use a strobe to find the most executed code |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
mike duff wrote: |
use a strobe to find the most executed code |
Suggested over 3 months ago. |
|
Back to top |
|
|
mike duff
New User
Joined: 05 Mar 2009 Posts: 4 Location: halifax
|
|
|
|
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 |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|