Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
S322 Error even after specifying the maximum time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
murugan_mf

New User


Joined: 31 Jan 2008
Posts: 38
Location: Chennai, India

PostPosted: Tue Jul 22, 2008 4:53 pm    Post subject: S322 Error even after specifying the maximum time
Reply with quote

HI ALL,
I am getting the abend S322 feven though i have mentioned the maximum allowable time in the job card.
Can any one suggest me what could be the root causes for this abend?
so that I can sort it out.
Back to top
View user's profile Send private message
References
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3501
Location: Brussels once more ...

PostPosted: Tue Jul 22, 2008 4:56 pm    Post subject:
Reply with quote

Talk with your systems people, S322 is a CPU time exceeded abend, based on your job class.

Even though you code a different time parameter on your jobcard, the system may well be configured to ignore that override and only use job class parameters for allocating CPU time.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 648

PostPosted: Tue Jul 22, 2008 4:59 pm    Post subject:
Reply with quote

Hi,
you may not be allowed to put the maximum amount of time on your jobcard. The time may be site specific based on the job class.

Check with your SYSPROG.


Gerry
Back to top
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 277

PostPosted: Tue Jul 22, 2008 5:09 pm    Post subject: Reply to: s322
Reply with quote

Try using some other CLASS parameter . Most of the shop have been set like IF it coded in say CLASS A the pgm will run for 15 minutes in another class for say 30 minutes so on...

Even though u give time=1440 the default setting will overide what u specify in the JOB.

Check with your sysadmin
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 167
Location: Chennai

PostPosted: Tue Jul 22, 2008 5:14 pm    Post subject: Reply to: S322 Error even after specifying the maximum time
Reply with quote

Hi,

It may also occur if indefinite loop occurs in ur program.

Regards
R KARTHIK
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 648

PostPosted: Tue Jul 22, 2008 5:21 pm    Post subject:
Reply with quote

Hi,

if time of 1440 or NOLIMIT is allowable it exempts the job from all CPU and wait time limit checking - the job can execute as long as it needs to. No S322 abend will occur for the job, so a loop will not abend the job.


Gerry
Back to top
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 277

PostPosted: Tue Jul 22, 2008 5:26 pm    Post subject: Reply to: S322 Error even after specifying the maximum time
Reply with quote

Hi gcicchet,

Quote:

if time of 1440 or NOLIMIT is allowable it exempts the job from all CPU and wait time limit checking -


In our system we can use time=1440 , Even if we code that the job will ran only for the specified amount of time for that class

Am i thinking wrong???
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 989
Location: Virginia, USA

PostPosted: Tue Jul 22, 2008 5:29 pm    Post subject:
Reply with quote

I would look at the programs involved and try to understand why they are taking so long instead of just blindly giving them more time!
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2134
Location: Phoenix, AZ

PostPosted: Tue Jul 22, 2008 5:33 pm    Post subject:
Reply with quote

Hi,

I second to Gerry...

Again, please search the forum, there had been quite a lots of discussion on smilar topics, here is one describing The CLASS in JCL and JCL execution time.

further, this
Quote:
though i have mentioned the maximum allowable time in the job card.
is not a good coding practice, check below links on the same topic -

http://www.ibmmainframes.com/viewtopic.php?t=24871&highlight=1440
http://www.ibmmainframes.com/viewtopic.php?t=18685&highlight=1440
Back to top
View user's profile Send private message
Terry Heinze

Active User


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

PostPosted: Tue Jul 22, 2008 8:54 pm    Post subject:
Reply with quote

Many shops will slap your hand (or worse) for attempting to use TIME=1440/NOLIMIT, and rightfully so!
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8596
Location: 221 B Baker St

PostPosted: Tue Jul 22, 2008 9:39 pm    Post subject:
Reply with quote

Hello,

Better managed systems will not allow developers to submit a job with time=1440. They are automatically flushed as a jcl error.

There is never an acceptable reason for a developer to use time=1440. . . Even if the system is so poorly administered as to allow it.
Back to top
View user's profile Send private message
Terry Heinze

Active User


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

PostPosted: Tue Jul 22, 2008 10:04 pm    Post subject:
Reply with quote

The only legitimate use of TIME=1440 I've ever run across was for a production CICS region.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8596
Location: 221 B Baker St

PostPosted: Tue Jul 22, 2008 10:18 pm    Post subject: Reply to: S322 Error even after specifying the maximum time
Reply with quote

Hi Terry,

Yup,

Or other system tasks - i.e. database, tape management, scheduler, etc. . . icon_smile.gif

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

Senior Member


Joined: 20 Oct 2006
Posts: 1618
Location: germany

PostPosted: Tue Jul 22, 2008 10:40 pm    Post subject:
Reply with quote

permenant batch jobs, submitted as a started task.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1