IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference between REDEFINE and RENAME CLAUSE


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kvskris
Currently Banned

New User


Joined: 16 Sep 2006
Posts: 12

PostPosted: Tue Nov 14, 2006 9:28 am
Reply with quote

hello everybody,

i want to know the difference between redefine and rename clause
can anybody help me.


radhae
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Nov 14, 2006 10:11 am
Reply with quote

http://ibmmainframes.com/viewtopic.php?t=1026
Back to top
View user's profile Send private message
sihanature
Warnings : 1

New User


Joined: 01 Sep 2005
Posts: 33

PostPosted: Tue Nov 14, 2006 4:49 pm
Reply with quote

Hi

Make a SEARCH in this Forum.

There are more info available on this.

For your Understanding i'm giving the answer in short.

REDEFINES: It allows the same area of memory to be referenced by more than one data item with different format(PIC Clause) and Size.

RENAMES: It allows same code to be copied multiple times with different names, and it is used for Re-grouping the elementary data items in a RECORD and which must be declared by using level number 66.

Redefines can use the any level no(0-49).



Regards,
Back to top
View user's profile Send private message
vijay_bn79

New User


Joined: 20 Nov 2006
Posts: 48
Location: Hyderabad

PostPosted: Mon Nov 20, 2006 6:54 pm
Reply with quote

kvskris wrote:
hello everybody,

i want to know the difference between redefine and rename clause
can anybody help me.


radhae



Hi..,

Redefine is a technique where same memory location can be referenced in different names and different formats also
we can redefine the char variable into integer variable or comp variable etc..

Rename is the grouping of the variables into a variable name
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts To search DB2 table based on Conditio... DB2 1
No new posts What is the difference between Taskty... Compuware & Other Tools 2
No new posts Difference between VALIDPROC and CHEC... DB2 3
Search our Forums:

Back to Top