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 Easytrive Redefine vidyaa CA Products 4 Mon Jun 19, 2017 6:01 pm
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts Redefine SYS1.PROCLIB farhad_evan JCL & VSAM 12 Mon May 22, 2017 10:54 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm


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