View previous topic :: View next topic
|
Author |
Message |
tmaheswara
New User
Joined: 20 Apr 2010 Posts: 8 Location: pune
|
|
|
|
Hi,
Good Morning
Could you please let us know is there any compiler options to issue a warning or error when Length is not coded in EXEC CICS LINK command?
Though its optional to code Length in LINK command, since its a process in our project we want to prevent the violations during coding.
Thanks & Regards,
Maheswara |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
No, there isn't. Why would there be?
I assume you are using the integrated CICS compile option in Enterprise Cobol?
Is it such a difficult thing for your team to remember? If so, you need to "write a little something" somewhere to check it for yourself. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
If you have commarea's whose length exceeds 9999 and you're specifying option TRUNC(OPT) with non COMP-5 fields, then there could be an issue with high-order truncation.
To avoid this, always specify binary fields as COMP-5, this includes using the correct IBM copybooks as well (IE: DFHEIBLK).
Otherwise (although brutally inefficient), use option TRUNC(BIN), when binary fields are NOT COMP-5 and this will avoid high-order truncation. The TRUNC option has no effect on COMP-5.
Always specify option NODYNAM, which I believe is the default. |
|
Back to top |
|
|
|