Page 1 of 1

About MAXCC codes

PostPosted: Thu Jan 28, 2010 7:47 pm
by Arun A
hi all

iam a fresher to mainframe.

may i know the difference for, macc=0 , 4 , 8, 12 ,16, 20

Re: about macc

PostPosted: Thu Jan 28, 2010 8:19 pm
by Robert Sample
I'm not familiar with the term "macc" -- are you referring to the step condition code set when a JCL step completes, an IDCAMS maxcc field which can be set for each IDCAMS command executed, or something else entirely?

Re: About MAXCC codes

PostPosted: Fri Jan 29, 2010 9:13 pm
by Bill Dennis
Condition Codes (sometimes called Return Codes) are simply a method to let the caller know how the program ended. The program itself sets the COND CODE prior to ending.

The degree of severity for certain errors conditions are typically related to the rising COND CODE.
0 = OK
4 = Informational
8 = Warning
12 = Error
16 = Severe error

Using a value that is a mutiple of 4 makes a handy "offset" into an array of BRANCH instructions, each of which use 4 bytes of machine code.