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

Difference between REDEFINES and RENAMES Clauses


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

New User


Joined: 12 Aug 2004
Posts: 14
Location: bangalore

PostPosted: Fri Sep 10, 2004 11:27 am
Reply with quote

1. what is the difference between redefine & rename ?
nb:- some people says both occupies the same mem. location while
others say just reverse. please clarify. icon_question.gif

immediate reply will be appriciated...
Back to top
View user's profile Send private message
mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1210
Location: India

PostPosted: Sat Sep 11, 2004 8:53 am
Reply with quote

Hi friend,

REDEFINES Clause is used to save your memory space while RENAMES caluse is used for display purpose.

01 A.
02 M1
02 M2
02 M3
02 M4.

To display M2, M3 and M4 you can say:
DISPLAY M2, M3, M4.

Instead of that you can create a new group as:

66 B RENAMES M2 THRU M4.

And you can simply say

DISPLAY B.
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 What is the difference between Taskty... Compuware & Other Tools 2
No new posts Difference between VALIDPROC and CHEC... DB2 3
No new posts Difference between CEE3250C and CEE3204S COBOL Programming 2
Search our Forums:

Back to Top