Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Easytrive Redefine vidyaa CA Products 4 Mon Jun 19, 2017 6:01 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us