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
 

 

How to fix S322 ABEND

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
shan

New User


Joined: 10 Aug 2006
Posts: 7

PostPosted: Thu Aug 31, 2006 8:49 pm    Post subject: How to fix S322 ABEND
Reply with quote

When i tried running a job, it gave S322 Abend.
It is a time Abend.

First time i ran the job, all the parameters of the job card were given 1 line ( Shown below)
Code:

//PSE0xxxx JOB 0QNF0000,LOAD Sxx,MSGLEVEL=(1,1),MSGCLASS=Q,CLASS=2


The second time i mentioned all the parameters in the job card in 3 lines and the job ran fine.(shown below)
Code:
//PSE0xxxx JOB 0QNF0000,'FILE LOAD xxx ',
//         CLASS=2,                           
//         MSGCLASS=Q   


Could you please let me know why the job failed with S322 Abend the first time but ran fine the next time?

Thanks,
Shan
Back to top
View user's profile Send private message

cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Thu Aug 31, 2006 9:00 pm    Post subject: Re: Fix for S322 Abend
Reply with quote

A S322 abend is related to exceeding the amount of CPU time the job or job step can use. If you have no TIME= parameter on the JOB card or the EXEC cards, the system may have a default for the amount of CPU your job can used.

You could run the same job 10 times and you may find the amount of CPU used by the jobs are rarely exactly the same. You may have just exceeded the threshhold with one job and may have been under the threshhold on the other job.

You could code TIME=1440 on the JOB card or the EXEC card to prevent the S322 abend.
Back to top
View user's profile Send private message
shan

New User


Joined: 10 Aug 2006
Posts: 7

PostPosted: Fri Sep 01, 2006 9:52 am    Post subject: Re: Fix for S322 Abend
Reply with quote

Hi,

Could you please let me know what is the significance of giveng "TIME=1440" in the job card or the EXEC ?

What does that 1440 indicate ?

Could you also calerify me the following doubt too ?
So this S322 Abend is no way related to placing the parameters of the job card in one line or in 3 separate lines.


Thanks,
Shan
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Fri Sep 01, 2006 10:34 am    Post subject: Re: Fix for S322 Abend
Reply with quote

Shan,

Quote:
Could you please let me know what is the significance of giveng "TIME=1440" in the job card or the EXEC ?

TIME Parameter at JOB Card or EXEC Step Card gives a maximum amount of time that job or step is allowed to use CPU Time for.
Quote:
What does that 1440 indicate ?

It means your job can use the CPU Time of maximum 1440 minutes.
Quote:
So this S322 Abend is no way related to placing the parameters of the job card in one line or in 3 separate lines.

No, Its not.

For complete information on TIME parameter visit manuals...
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Fri Sep 01, 2006 11:21 am    Post subject:
Reply with quote

HI,

Specifing TIME=1440 ensures the job gets unlimitted CPU time and exempted from waiting time.

~Vamsi
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Fri Sep 01, 2006 2:20 pm    Post subject:
Reply with quote

Hi shan,


Quote:

Could you please let me know why the job failed with S322 Abend the first time but ran fine the next time?


In the above 2 job cards CLASS parameter is changed from "Q" to "2".
This makes change in Time.

you can know which CLASS takes how much time with TSO command.
that is "TSO JOBCLASS". Type this at your command prompt.

Here you will get all CLASSES which are defined in your mainframe shop.
There Time is also defined(CPU TIMEOUT LIMITS) for each CLASS . Even if you use TIME=1440 with CLASS=Q, TIME will be overridden with defined time.

So checkout the TIME in your CLASS definitions and use the required CLASS for your job. This avoids S322 abends.
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Fri Sep 01, 2006 2:24 pm    Post subject: Re: Fix for S322 Abend
Reply with quote

Hi surya,

good concept got from u.
thanks yaar.
Back to top
View user's profile Send private message
shefu_sarandha

New User


Joined: 30 Aug 2006
Posts: 5
Location: newark, de

PostPosted: Fri Sep 01, 2006 7:48 pm    Post subject:
Reply with quote

Do we need any specific user id to run the command TSOCLASS. Its not working for me.
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Thu Sep 07, 2006 10:14 am    Post subject: Fix for S322 Abend
Reply with quote

Shefu,

"Jobclass" is the TSO command. I think it should work everywhere.

I feel you are using "CLASS" only. Use TSO JOBCLASS at command prompt.
Back to top
View user's profile Send private message
balajiofcrrcoe

New User


Joined: 07 Jul 2005
Posts: 41
Location: chennai

PostPosted: Thu Sep 07, 2006 10:31 am    Post subject: Re: Fix for S322 Abend
Reply with quote

I tried issuing the command "TSO JOBCLASS" at command prompt
But could see the tso message

IKJ56500I COMMAND JOBCLASS NOT FOUND
***
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Sep 07, 2006 10:36 am    Post subject:
Reply with quote

hi,

The command JOBCLASS should be Shop Specific.
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Thu Sep 07, 2006 11:01 am    Post subject: Re: Fix for S322 Abend
Reply with quote

Hi Sree,

May be this is shop specific.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1226
Location: Israel

PostPosted: Thu Sep 07, 2006 4:55 pm    Post subject:
Reply with quote

In your first message you said:
Quote:
//PSE0xxxx JOB 0QNF0000,LOAD Sxx,MSGLEVEL=(1,1),MSGCLASS=Q,CLASS=2

There are no quotes around the LOAD Sxx words.
Is that a typo?
If not, it means that the job ran with the following JOB card:
//PSE0xxxx JOB 0QNF0000,LOAD
All the rest being considered as a comment.
That could explain the difference!
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 -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts S213-14 ABEND explantion Apurva Mehta JCL & VSAM 5 Thu Jul 07, 2016 10:56 pm


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