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
aimin8828
Posts: 9
Joined: Fri Mar 01, 2013 6:40 pm
Skillset: COBOL / JCL / DB2
Referer: From the Internet

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)

User avatar
RGZbrog
Posts: 101
Joined: Mon Nov 23, 2009 1:34 pm
Skillset: Natural, Adabas, Predict, Natural Security, Construct, EntireX, SPoD, NaturalONE
Referer: SAG Developer Forum
Location: California, USA
Contact:

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.


  • Similar Topics
    Replies
    Views
    Last post