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
 
Can we redefine x(50) field with a field of x(80)

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

New User


Joined: 21 Feb 2005
Posts: 5

PostPosted: Sun May 22, 2005 8:09 am    Post subject: Can we redefine x(50) field with a field of x(80)
Reply with quote

can we redefine x(50) field with a field of x(80).
Back to top
View user's profile Send private message
References
avalanches

New User


Joined: 10 May 2005
Posts: 28

PostPosted: Sun May 22, 2005 2:17 pm    Post subject: Re: redefine clause
Reply with quote

Siddarth

We cannot do this. The redefining length should match the one to be redined.

Cheers,
avalanches.
Back to top
View user's profile Send private message
gvt460

New User


Joined: 04 Mar 2005
Posts: 23

PostPosted: Sun May 22, 2005 4:07 pm    Post subject:
Reply with quote

we can do this one in the 01 level.
but we cant do in the other levels.
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 367
Location: Earth

PostPosted: Sun May 22, 2005 4:36 pm    Post subject: Re: redefine clause
Reply with quote

Hi,
I agree with gvt460. Except 01 level number u can not do it. Otherwise it will give u compilation error.
Back to top
View user's profile Send private message
sree_2503

New User


Joined: 22 May 2005
Posts: 12
Location: Chennai,India

PostPosted: Sun May 22, 2005 5:02 pm    Post subject:
Reply with quote

Hi Siddharth,

Yes, you can redefine X(50) by X(80) and the other way round too, but both the var should be of the same level, say 05 or 01.

U cannot redine a 05 level var with a 01 or vice versa.

However, you can also redefine fields of different type altogether. For example, redefining a character field as a binary field.
Back to top
View user's profile Send private message
jpsiddharth

New User


Joined: 21 Feb 2005
Posts: 5

PostPosted: Mon May 23, 2005 6:31 am    Post subject:
Reply with quote

thanks for ur reply
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