When i ran the program in TSO PGM1 i am not facing any issue. But when i ran in batch with below Job i faced S322. Looks like the JESYSMSG is getting lot of lines written . Also the CLASS and MSGCLASS might cause the issue. Please suggest what need to be modified in Job.
Code:
DDNAME StepName ProcStep DSID Owner C Dest Rec-Cnt
JESMSGLG JES2 2 xxxxxxx U LOCAL 35
JESJCL JES2 3 xxxxxxx U LOCAL 31
JESYSMSG JES2 4 xxxxxxx U LOCAL 16,109
ISPLOG RUNNEXT 102 xxxxxxx U LOCAL 11
SYSTSPRT RUNNEXT 103 xxxxxxx U LOCAL 15
1% - the reason is a small default TIME= parameter; needs to be checked anyway.
99% - the reason is an endless loop caused by a wrong loop condition. A good chance that some condition in batch environment may be different from TSO online situation.
In any case: you need to add a sort of trace into your code to find out, which code part falls into a loop? Guessing is not a reasonable approach.
Joined: 01 Sep 2006 Posts: 2598 Location: Silicon Valley
re: "edit macro job"
(this is just a guess)
When you are running a batch job, there is no terminal to display a panel. In your program, you have to check for batch and avoid displaying a panel.
You are probable getting S322 because you displayed a panel and ISPF could not display it and entered a recovery routine. And the recovery routine also fails, and enters a recovery routine, (repeat forever).
Thanks willy jensen sergeyken & Pedro.
I haven't used any panels in my program.
When i see this JESYSMSG i got the below details. Please let me know what changes to be done to fix this issue.
Code:
IEFA111I TESTJOB IS USING THE FOLLOWING JOB RELATED SETTINGS:
SWA=ABOVE,TIOT SIZE=64K,DSENQSHR=DISALLOW,GDGBIAS=JOB
IEF236I ALLOC. FOR TESTJOB RUNNEXT
IGD101I SMS ALLOCATED TO DDNAME (ISPPROF )
DSN (SYS21329.T173130.RA000.TESTJOB.R0135364 )
STORCLAS (NORMAL) MGMTCLAS ( ) DATACLAS (NULLDC)
VOL SER NOS= WKV0FC
ISPLOG
Code:
********************************* TOP OF DATA ********************************
1 Time *** ISPF transaction log ***
********************************* TOP OF DATA ************
READY
ISPSTART CMD(%TEFR)
STARTTIME = 17:31:30
******************************** BOTTOM OF DATA **********
Also, when i changed the CLASS=R, job completed successfully. But i am worried about why JESYSMSG is having huge Rec-cnt
Code:
JESMSGLG JES2 2 A693493 U LOCAL 31
JESJCL JES2 3 A693493 U LOCAL 33
JESYSMSG JES2 4 A693493 U LOCAL 76,962
ISPLOG RUNNEXT 102 A693493 U LOCAL 20
SYSTSPRT RUNNEXT 103 A693493 U LOCAL 8
IEA848I NO DUMP WAS PRODUCED FOR THIS ABEND, DUE TO SYSTEM OR INSTALLATION REQUEST
IEF472I TESTJOB RUNNEXT - COMPLETION CODE - SYSTEM=322 USER=0000 REASON 00 REASON=00000000
IGD105I SYS21329.T173130.RA000.TESTJOB.R0135364 DELETED, DDNAME= DDNAME=ISPPROF
Abend S322 is not a cause, it is a result of something else.
The messages in JESYSMSG are not errors, they are information. Are all the rest of the messages similar? That could indicate that you use a lot of temporary datasets. When you run the command in TSO online, do you see the same type and number of messages in your TSO JESYSMSG?
Since changing the jobclass allowed the job to run that would indicate a time limit for your original job class. You should be able to see the required cpu time in the job messages.
Joined: 01 Sep 2006 Posts: 2598 Location: Silicon Valley
1. re: "edit macro job"
A common error in a batch edit is that the macro does not "END" the edit session. As would happen in TSO, ISPF wants to then show you the editor panel. While you do not explicitly display a panel, your use of ISPF does show a panel. Show us your edit macro.
2. You are running a rexx exec. Add a TRACE statement; there might be an endless loop. Also, add a TRACE statement to your editor macro (TNPROC ??).
3. Also, your job shows this:
ISPSTART CMD(%PGM1)
While your sample output shows:
ISPSTART CMD(%TEFR)
You are showing stuff that does not go together and expecting us to divine what you are doing.