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
 

 

REDEFINES a SMALLER ITEM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Mohan raj

New User


Joined: 08 Aug 2009
Posts: 1
Location: Chennai

PostPosted: Fri Aug 21, 2009 6:45 pm    Post subject: REDEFINES a SMALLER ITEM
Reply with quote

Hi,

I need severe error in compilation for Redefining a smaller item in "IBM Enterprise COBOL for z/OS 3.4.0". I am using the IGYCRCTL compiler.

Example:
05 VAR-A PIC X(5).
05 VAR-B REDEFINES VAR-A PIC X(10).
In compilation it is just giving a Warning message. Is it possible for me to get a SEVERE error in "Enterprise COBOL for z/OS 3.4.0" itself by using any compiler option.
Note : "IBM COBOL for OS/390 & VM 2.2.1" is giving SEVERE error.

Thanks.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7988
Location: Bellevue, IA

PostPosted: Fri Aug 21, 2009 6:59 pm    Post subject:
Reply with quote

I've never heard of any way to control the severity level of compiler messages -- what they are set by IBM is what they are, period.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Fri Aug 21, 2009 7:38 pm    Post subject:
Reply with quote

Although it's not a good practice (in my opinion) to redefine a smaller area, I understand that the Enterprise compiler, unlike previous compilers, will allocate memory equal to the larger definition, so I wouldn't worry about it. As a rule, I add a filler to the smaller area to document the situation for the next maintainer.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts Another redefines in COBOL RahulG31 COBOL Programming 1 Fri Mar 20, 2015 4:09 am
No new posts Moving DBCS to alphanumeric group item saurabh39 COBOL Programming 5 Wed Apr 16, 2014 2:44 pm
No new posts Handling a data item having address Arunkumar Chandrasekaran COBOL Programming 3 Sat Mar 30, 2013 11:16 pm
No new posts HOW to remove the smaller length reco... Prasun De JCL & VSAM 9 Thu May 24, 2012 5:25 pm


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