using redefine can you redefine lower variable size to
higher variable size?
Answers were Sorted based on User's Feedback
Answer / santosh mahajan
Yes. Redefines just causes both fields to start at the same
location. For example:-
01 WS-XYZ PIC X(1).
01 WS-XYZ-R REDEFINES WS-XYZ PIC(2).
MOVE 11 TO WS-XYZ-R
DISPLAY WS-XYZ will show 1
DISPLAY WS-XYZ-R will show 11
| Is This Answer Correct ? | 10 Yes | 2 No |
Answer / harikumr ch
Syn:Levelnumber dataname-1 redefines data-name-2
The data-name-1 & data-name-2 must be of same size.(From
level 02).Incase of 01 level, the size of data-name-1 must
not exceeds that of data-name-2.
| Is This Answer Correct ? | 0 Yes | 1 No |
Hi Guys, I have faced one interview question if I have requirement to add 5 new columns to existing table what are prerequisite do i need to take.
subscript and index r not coded in u r application program what will happen?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
where do u use low-value and high value in cobol
Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?
How can we pass data from cobol to JCl?
Write down the divisions of cobol program?
Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.
How arrays can be defined in COBOL?
perform I from 0 by 1 until I=5?How maney times it will executes
what is the basic concept of mainframe? what knowledge is needed for learn this mainframe?
What is an in line PERFORM? When would you use it? Anything else to say about it?