Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Compiler Options

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Compiler Options
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Mon Mar 11, 2013 12:26 pm    Post subject: Reply to: Compiler Options
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Mar 11, 2013 6:03 pm    Post subject: Reply to: Compiler Options
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Any docs / links for isub- cobol comp... SRICOBSAS COBOL Programming 4 Fri Aug 26, 2016 2:35 pm
No new posts Problem Compiling cobol code with Cob... amitc23 COBOL Programming 2 Wed Aug 24, 2016 1:50 pm
No new posts DB2 Unload format options Susanta DB2 2 Fri Aug 12, 2016 5:42 pm
No new posts COBOL compiler upgrade vicky10001 COBOL Programming 4 Mon Jul 25, 2016 1:44 pm
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us