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 Easytrive Redefine vidyaa CA Products 4 Mon Jun 19, 2017 6:01 pm
No new posts Redefine SYS1.PROCLIB farhad_evan JCL & VSAM 12 Mon May 22, 2017 10:54 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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