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
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What are different data types in cobol?
What is length is cobol?
What is the Purpose of Pointer in the string?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
How you can characterize tables in cobol?
What are declaratives and what are their uses in cobol?
What are the pertinent COBOL
Which mode is used to operate the sequential file?
What is the difference between Call and a Link?
Can you please let me know the centre name of INS certification in Kolkata.
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.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What are the different rules to perform a Search?
how to refer the data field?