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 problem of ordered sequential files access?
what is difference between cobol and cobol/400
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
Are you comfortable in cobol or jcl?
What is the difference between external and global variables in COBOL?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
How you can characterize tables in cobol?
What rules are to be followed while using the corresponding options?
What is the difference between comp and comp-3?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is the difference between goback, stop run and exit program 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?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?