Answer Posted / 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 |
Post New Answer View All Answers
How do we get current date from system with century in COBOL?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What are the different types of condition in cobol and write their forms.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Explain about different table spaces.
What are declaratives and what are their uses in cobol?
What is cobol?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
how to move the records from file to array table. give with code example
What is amode(31)
What is redefines clause in COBOL?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?