What is Redefines clause?
Answers were Sorted based on User's Feedback
Answer / a.roselin
Redefine Clause represents the same storage locations by
diffent data types
Is This Answer Correct ? | 62 Yes | 3 No |
Answer / roopa sharma
two or more data items can use same working storage area by
redefining a storage area
Is This Answer Correct ? | 24 Yes | 3 No |
Redefines clause allows a programmer to give different data
descriptions to the same area of storage.
syntax:
LevelNumeber Identifier1 REDEFINES identifier2.
01 A PIC X(7).
01 B REDEFINES A PIC 9(5)V9(2).
Is This Answer Correct ? | 24 Yes | 8 No |
Answer / somnath
Two or more data items can use same working storage area by
redefining a storage area.
Is This Answer Correct ? | 12 Yes | 2 No |
Answer / krishna
Allowcation of more than one data items in a single memory
location.
Ex:
01 a pic x(9).
01 b redefines a pic x(7).
Rules for Redefines
1. Should be different datatype and size
2. Redefined item should not contain value clause
3. Redefing item cantain redefined item
4. Redefines can't write in 66 and 88 level numbers
Is This Answer Correct ? | 7 Yes | 2 No |
Answer / malay
redefine clause is used to access same memory storage space by different data items.
ex...
01 a pic x(9).
01 b redefines pic 9(7)v9(2).
tips.
datatype may be different but size of B be same or less then size of A.
better for use same datatype and same size,so that out put should be correct.
Is This Answer Correct ? | 11 Yes | 7 No |
Answer / bhanupriya
the REDEFINES clause allows you to use different data description entries to describe the same computer storage area
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / prakash shrivastava
Redifines clause is used to allocate more than one data in
same memory location....
ex:- 77 a pic 9(2).
77 b redefines a pic 9(2).
Is This Answer Correct ? | 20 Yes | 31 No |
OCCURS clause is used in the DATA DIVISION on data names at (a) 01 level (b) 77 level (c) 88 level (d) any level from 02 to 49
What is the Purpose of POINTER Phrase in STRING command
Define in-line perform?
I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.
What is the mode in which you will OPEN a file for writing?
How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.
what is the minimum number of lines a Cobol program should have to successfully compile and run
11 Answers ABC, Societe Generale,
a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?
what is the maximum error code in mainframe
If I want to increase the Limit in GDG. What should I do?
77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......
S9(5)V9(2) occupies how many bytes memory ?