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 |
How do you come out of an EVALUATE statement?
What is the file organization clause ?
i am a btech cs 2009 passout. i am opting for mainframe course. is it good to do this course? pls. anyone suggest me
What is the difference between Structured COBOL Programming and Object Oriented COBOL ?
i have variable record in the 5th, i want to sort from 5th filed ? how ?
in how many mode we can open a file ?
What is XDC ?
I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?
is it possible to declare index in cobol program? if it is not why its tell me pls
how to create temporary data set in jcl? what is the use?
3 Answers Cap Gemini, Temenos,
what r the types of perform statement
i need a program by giving input as a abcd in any randem order but i need a output as 1234 related to abcd. i.e,. a for 1,b=2,c.....etc..