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
 

 

query about redefine clause

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
mail2romel

New User


Joined: 14 Nov 2005
Posts: 7
Location: pune

PostPosted: Wed Mar 01, 2006 11:45 pm    Post subject: query about redefine clause
Reply with quote

dear all,
if i redefine a variable to a larger size it does not give me error
when declared in 01 level why?
Back to top
View user's profile Send private message

prakash271082

New User


Joined: 09 Sep 2005
Posts: 53

PostPosted: Thu Mar 02, 2006 11:45 am    Post subject: Re: query about redefine clause
Reply with quote

Hi,
REDEFINES just makes Memory Space / Region to be shared between two Variables / Records.
So, it won't be giving you any errors in case.
Back to top
View user's profile Send private message
unni_nss

New User


Joined: 20 Sep 2005
Posts: 19

PostPosted: Thu Mar 02, 2006 1:10 pm    Post subject: Re: query about redefine clause
Reply with quote

hi,

when we are comparing level no.77 with 01,there shuld not be much difference in VS-COBOL II.But some internal differences are there!these r related to wordboundary settings and all.so,anyway redefines do the internal memory restructuring and sharing.
Back to top
View user's profile Send private message
bonniem

New User


Joined: 09 Aug 2005
Posts: 67

PostPosted: Fri Mar 03, 2006 10:51 am    Post subject:
Reply with quote

To answer the question a bit more clearly, redefining A with B means, starting location of A and B are the same only. So if B is of larger length than A, it just eats into memory locations that are probably allocated to other program variables. It is safer not to do so because you could get a SOC abend if some other variable data is overwritten.
Back to top
View user's profile Send private message
mail2romel

New User


Joined: 14 Nov 2005
Posts: 7
Location: pune

PostPosted: Fri Mar 03, 2006 11:45 pm    Post subject:
Reply with quote

hi all,
hey thanks first of all to all who tried to solve my query ,special thanks to bonniem that was the ideal answer that i would have ever got .
romel
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm


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