Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Doubt on REDEFINES with Value Clause

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
karthikuma

Active User


Joined: 29 Mar 2005
Posts: 65

PostPosted: Fri Apr 29, 2005 10:20 am    Post subject: Doubt on REDEFINES with Value Clause
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
References
sribks2005

New User


Joined: 04 Apr 2005
Posts: 20
Location: Mysore

PostPosted: Fri Apr 29, 2005 10:36 am    Post subject: Re: doubt on redefine
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

Active User


Joined: 29 Mar 2005
Posts: 65

PostPosted: Fri Apr 29, 2005 10:42 am    Post subject: Re: doubt on redefine
Reply with quote

thankz a lot
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1