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

Can we redefine x(50) field with a field of x(80)


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

New User


Joined: 21 Feb 2005
Posts: 7

PostPosted: Sun May 22, 2005 8:09 am
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
avalanches

New User


Joined: 10 May 2005
Posts: 28

PostPosted: Sun May 22, 2005 2:17 pm
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
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: 363
Location: Earth

PostPosted: Sun May 22, 2005 4:36 pm
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
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: 7

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

thanks for ur reply
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 Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top