diffrence between renames and redifnes with examples

Answer Posted / khasim

We can regroup using RENAMES.

02 MM PIC X(2).
02 DD PIC X(2).
02 YY PIC X(2).
66 DATE RENAMES DD TRRU YY.

We can devide an Element to multiple elements using
REDEFINES.

02 DATE1 X(6).
02 DATE2 REDEFINES DATE1.
05 MM PIC X(2).
05 DD PIC X(2).
05 YY PIC X(2).

This is main defference.
Remaining things all know.

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2726


What are different data types in cobol?

685


What is length is cobol?

641


What is the Purpose of Pointer in the string?

639


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

708






How you can characterize tables in cobol?

710


What are declaratives and what are their uses in cobol?

706


What are the pertinent COBOL

2041


Which mode is used to operate the sequential file?

658


What is the difference between Call and a Link?

694


Can you please let me know the centre name of INS certification in Kolkata.

1713


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5673


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

851


What are the different rules to perform a Search?

613


how to refer the data field?

1802