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



Software AG's platform-independent programming language with full support for open-source and Internet applications

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

Postby aimin8828 » Sat May 11, 2013 9:06 am

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)
aimin8828
 
Posts: 9
Joined: Fri Mar 01, 2013 6:40 pm
Has thanked: 1 time
Been thanked: 0 time

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

Postby RGZbrog » Sat May 11, 2013 10:15 pm

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.
User avatar
RGZbrog
 
Posts: 101
Joined: Mon Nov 23, 2009 1:34 pm
Location: California, USA
Has thanked: 0 time
Been thanked: 0 time


Return to Natural