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
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
example for sub strings ? and refernce modifications whit output pls
) How do u handle errors in BMS macro?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Can we redefine the field of x(200) to less than 200?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the difference between Call and a Link?
how to access the file from prodution from changeman tool and to submit a file to production
What rules are followed by the search verb.
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.
what is search and searchall?what is the diffrence between them?give an best example?
What are the various section in data division and briefly explain them.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
what is s000 u4087 error? please give the all error codes in cobol,jcl.