what is redefine and its syntax?

Answer Posted / siri

REDEFINES :- IT IS USED TO REUSE THE SPACE FROM THE FIRST BYTE
ON WORDS....
*REDEFINING AND REDEFINING FIELDS ARE MUST BE AT SAME LEVEL
NOS..
*REDEFINING THE MEMORY MUST BE SAME OR SORTER..
*SIZE OF THE REDEFINE AND REDEFINING FIELDS NEED NOT BE SAME..
*MULTIPLE REDEFINES ARE POSSIBLE....

SYNTAX :- WORKING-STORAGE SECTION.
01 A PIC X(10) VALUE'SIRIANITHA'
01 B REDEFINES A PIC X(2)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how to update data area in cobol 400 program?

576


Define sort?

581


What is sort?

532


Explain what all the conditiones required for using open opcode on a file?

505


What is the syntax of redefine?

535






What are fillers? What is the actual use of fillers? With mall/simple example?

554


I like to know if possible to use %TRIM or any statement with prefiv "%" like RPG ile programs. thanks

2064


Explain the syntax of redefine?

518


Explain how to convert 2010/02/11 to m/dd/yyy.. With string and without string if any other method... Code?

646


How to detect record is locked in cobol/400?

538


Explain the difference between comp & comp-3?

548


Explain the input procedure and output procedure?

521


seqence numbers in cobol

2660


Explain the difference between search and searchall?

513


Explain the types of perform?

525