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 |
What are the ways you can generate a copybook?
sample code for read a 2nd record from last in flatfile how can do?
I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?
Are you comfortable in cobol or jcl?
What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.
what is meaning by design document? who can repared for this?
Discuss about changing dataset name in proc.
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
How can you pass values from COBOL program to non-COBOL programs?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What rules are to be followed while using the corresponding options?