View previous topic :: View next topic
|
Author |
Message |
shan
New User
Joined: 10 Aug 2006 Posts: 7
|
|
|
|
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 |
|
|
cpuhawg
Active User
Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
|
|
|
|
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 |
|
|
shan
New User
Joined: 10 Aug 2006 Posts: 7
|
|
|
|
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 |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
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 |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
HI,
Specifing TIME=1440 ensures the job gets unlimitted CPU time and exempted from waiting time.
~Vamsi |
|
Back to top |
|
|
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
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 |
|
|
stly Warnings : 1 New User
Joined: 25 Jul 2005 Posts: 93
|
|
|
|
Hi surya,
good concept got from u.
thanks yaar. |
|
Back to top |
|
|
shefu_sarandha
New User
Joined: 30 Aug 2006 Posts: 5 Location: newark, de
|
|
|
|
Do we need any specific user id to run the command TSOCLASS. Its not working for me. |
|
Back to top |
|
|
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
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 |
|
|
balajiofcrrcoe
New User
Joined: 07 Jul 2005 Posts: 41 Location: chennai
|
|
|
|
I tried issuing the command "TSO JOBCLASS" at command prompt
But could see the tso message
IKJ56500I COMMAND JOBCLASS NOT FOUND
*** |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
hi,
The command JOBCLASS should be Shop Specific. |
|
Back to top |
|
|
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
Hi Sree,
May be this is shop specific. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
|