IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Compiler Options


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tmaheswara

New User


Joined: 20 Apr 2010
Posts: 8
Location: pune

PostPosted: Mon Mar 11, 2013 11:59 am
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Mar 11, 2013 12:26 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Mar 11, 2013 6:03 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts Compiler and run JCL for basic PL/I p... PL/I & Assembler 10
No new posts Pre-Compiler Bug with DSNH520I message? DB2 1
No new posts COBOL MVS options COBOL Programming 8
No new posts Default FTP options All Other Mainframe Topics 2
Search our Forums:

Back to Top