Explain about Redefines cluse?
Answers were Sorted based on User's Feedback
Answer / amit barwa
REDEFINES Clause
Facilitates two or more data-names to point to the same
memory location
e.g.
01 WS-NUM1 PIC X(1)
01 WS-NUM2 REDEFINES WS-NUM1 PIC X(2).
If you MOVE '10' to WS-NUM2,
DISPLAY WS-NUM1 will show 1 while
DISPLAY WS-NUM2 will show 10.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / avinanda mukherjee
If the example is-
01 WS-NUM1 PIC 9(1)
01 WS-NUM2 REDEFINES WS-NUM1 PIC X(2).
If you MOVE '10' to WS-NUM2,
DISPLAY WS-NUM1 will show 0 (Numeric) while
DISPLAY WS-NUM2 will show 10 (charecter).
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / mallappa
Redfeines Clause allows you to use a same memory area.
Ex:
01 var.
02 ws-date pic x(10).
02 ws-date1 Redefines ws-date
03 ws-day pic x(2).
03 ws-month pic x(2).
03 ws-month pic x(8).
| Is This Answer Correct ? | 3 Yes | 0 No |
i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?
What will happen if we try to create GDG (+2) generaton instead of (+1) generation?
Suppose i want to declare a binary comp fild of 7 byte .how to write?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
plz,could any one tell me? what about EBCDIC in cobol?briefly?
HOW TO MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.
how we rectify soc4 and soc7 error in project(need real time answer)? please reply
can we display comp-3 variables. if we want to display what we have to do . give me one example
1.What is the limit of linkage section?
Can anyone explain me CALL procedure in COBOL.Does it carries similarities like call by reference in C.
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?