diffrence between renames and redifnes with examples
Answer Posted / swathi.k
Redefines are used to reuse the storage space where as
renames are used to regroup the elementary items.
Ex:For redefines
01 A.
02 PIC X(6) VALUE 'SWATHI'.
02 REDEFINES A PIC X(2).
fOR RENAMES
01 A.
02 B PIC X(5).
02 C PIC X(5).
02 D.
03 D1 PIC X(2).
03 D2 PIC X(5).
02 E PIC X(6).
66 GROUP1 RENAMES C THRU E.
2.Redefines are coded with 0 to 49 level numbers where
as renames are declared with 66 level no.
3.pic clause is required for redefines where as pic clause
is not used for renames.
| Is This Answer Correct ? | 18 Yes | 8 No |
Post New Answer View All Answers
What is the difference between external and global variables in COBOL?
What kind of error is trapped by on size error option?
Have you used comp and comp-3 in your project? And how?
What are declaratives and what are their uses in cobol?
what is difference between cobol and cobol/400
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is rmode(any) ?
) How do u handle errors in BMS macro
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is inspect in cobol ?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is link edit in cobol?
What is the difference between PIC 9.99 and PIC9v99?
Explain how you can characterize tables in cobol?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?