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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    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

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: 363
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: 7

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
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 SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am


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