Page 1 of 1

What't the possible root cause for 'Format/length conflict'

PostPosted: Sat May 11, 2013 9:06 am
by aimin8828
We have a Main program CKR2OB1B with the 01 filed of copybook CKR2OBIA to call a subprogram CKR2OBIN, in the subpgoram,CKR2OBIA is defined as the parameter ,

When we execute the Job, the following issue encountered, what's the possible root cause for this? Thank you.

CKR2OB1B 8315 NAT0936 Format/length conflict in parameter 1 (Subprogram CKR2OBIA)

Re: What't the possible root cause for 'Format/length confli

PostPosted: Sat May 11, 2013 10:15 pm
by RGZbrog
The general rule is that the sending and receiving parameter lists must match in number, format, and length. To "guarantee" that everything matches, you use a common parameter data area (PDA) in both the caller and called routines. In your example, the PDA is CKR20BIA.

Often the NAT0936 error is caused by changing the PDA and compiling either the caller or the called routine, but not both. In this case the modules are using different versions of the PDA - the two parameter lists don't match.

To resolve your issue, re-compile (i.e. CATalog) CKR20B1B and CKR20B1N.