Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7315

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: 2504
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 Default FTP options vasanthz All Other Mainframe Topics 2 Fri Aug 25, 2017 5:58 am
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Who can recomend or to know a PL1 com... Miguel Fernandez DB2 0 Tue Feb 14, 2017 1:42 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us