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

Doubt on REDEFINES with Value Clause


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthikuma

New User


Joined: 29 Mar 2005
Posts: 62

PostPosted: Fri Apr 29, 2005 10:20 am
Reply with quote

whether redefine supports value clause?

01 A
02 a-1 pic x(8)

01 B redefine A
02 b-1 pic x(5) value spaces.


what is the output.whether it will show error.
Back to top
View user's profile Send private message
sribks2005

New User


Joined: 04 Apr 2005
Posts: 20
Location: Mysore

PostPosted: Fri Apr 29, 2005 10:36 am
Reply with quote

yes we get an error if we do like this.

The error message would be like given below.
==========================================
A "VALUE" clause was specified for an item that contained,or was subordinate to an item that contained, a "REDEFINES" clause. The "VALUE" clause was discarded
===========================================

But we can initialize the variable A with spaces.
Back to top
View user's profile Send private message
karthikuma

New User


Joined: 29 Mar 2005
Posts: 62

PostPosted: Fri Apr 29, 2005 10:42 am
Reply with quote

thankz a lot
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts To search DB2 table based on Conditio... DB2 1
No new posts Doubt about pl/1 (job offer) General Talk & Fun Stuff 5
No new posts NOT IN clause in COBOL pgm COBOL Programming 8
No new posts SUSBSCRIPT WITH SIGN IN PIC CLAUSE COBOL Programming 3
No new posts usage of CASE in WHERE clause DB2 10
Search our Forums:

Back to Top