Page 2 of 2

Re: MAXCC 2976

PostPosted: Thu Oct 18, 2012 11:18 pm
by dick scherrer
Hello,

You need to post the info from the spool that shows this maxcc. Post the previous and next 10 lines and if more is needed, we'll ask for more.

Re: MAXCC 2976

PostPosted: Fri Oct 19, 2012 2:43 am
by NicC
Is it a return code ofo 976 or an abend code of 2976? The only place I know of that uses the term MAXCC is IDCAMS and people who don't know different. Also, on the mainframe nothing is 'thrown' - things are issued or displayed or printed but NEVER thrown.

Re: MAXCC 2976

PostPosted: Fri Oct 19, 2012 5:24 pm
by ankushgattani
Hi Billy, i followed your suggestion, after a lot of binary chopping, i found out that the RC is issued by a procedure division copybook.
i tried to see where exactly in the PD copybook, the RC is being changed, but a strange thing happened.
All the display statements now print "Return-code = 0000", while in spool JESYSMSG, i am getting COND CODE = 1328

PS0100 JS0200 - STEP WAS EXECUTED - COND CODE 1328


Also , in the below report in JESYSMSG, i am getting COND CODE = 0000.
----------------------------------------------
                        CONDITION      STEP   
 JOBSTEP     PROCSTEP      CODE      RUN TIME
                                             
 JS0200      PS0100       R0000    00:00:01.73


Note: Previously this report COND CODE was having some value, which was issued by the program (i kept a display just before GOBACK to check the final RC issued), but this was different than the value MAXCC or statement(PS0100 JS0200 - STEP WAS EXECUTED - COND CODE xxxx) had.

Nicc,
see the snapshot, this is where i get the COND-CODE of the step (and the job in this case)

Dick,
The First snapshot that i've given, it shows me the COND-CODE.You wanted +/- 10 lines of this line, correct.
In this case, those lines don't have much.
All the lines between STEP JS0100 and the Report-table for JS0200 are only SMS dataset allocations. I didnt see any abnormal statement there.

Re: MAXCC 2976

PostPosted: Fri Oct 19, 2012 8:30 pm
by BillyBoyo
Is the copybook small enough to post here?

Re: MAXCC 2976

PostPosted: Fri Oct 19, 2012 9:33 pm
by dick scherrer
Hello,

This topic switches back aof forth between some Retudn Code and MAXCC as though they are the same. They are Not the same. Have we now decided that we are looking at the RC rather than MAXCC?
All the display statements now print "Return-code = 0000", while in spool JESYSMSG, i am getting COND CODE = 1328

There is "something" not displayed where the RC is being set (or it is somehow leftover).

Re: MAXCC 2976

PostPosted: Sun Oct 21, 2012 7:52 pm
by ankushgattani
Billy,

Sorry, Copybook is a Big-one(~1000 lines).

Dick,
My JobStep executes a program and gives COND-CODE 1328 in JESYSMSG, should we not look into RETURN-CODE set by the program.
If not, then where exactly should i look?

Re: MAXCC 2976

PostPosted: Sun Oct 21, 2012 9:28 pm
by dick scherrer
Hello,

Please re-read my last reply. The topic mentions MAXCC but all we see lately is the COND-CODE. Should we forget about MAXCC now?

Looking for setting RETURN-CODE is a good start. Make sure every called module is checked as well.

Re: MAXCC 2976

PostPosted: Sun Oct 21, 2012 9:37 pm
by ankushgattani
Actually there are only two steps in the job, first step gives RC=0, so whatever is the RC of second step, is the MAXXCC displayed by the job.
So can i say that in this case COND-CODE and MAXXCC are same.

Re: MAXCC 2976

PostPosted: Sun Oct 21, 2012 9:41 pm
by NicC
i say that in this case COND-CODE and MAXXCC are same.

only if the second program is IDCAMS because it is the only program I know of that uses the term MAXCC. Ususlly when refering to condition codes displayed in your job output the highest return/condition code is referred to as just that - the highest.

Re: MAXCC 2976

PostPosted: Mon Oct 22, 2012 5:50 am
by dick scherrer
Hello,

So can i say that in this case COND-CODE and MAXXCC are same.

Please post the jcl and the 3rd sysout of this run (using the code tag), so we can see what you see.