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 |
We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.
What are the different ways to run a COBOL DB2 program using JCL?
What are the access modes of START statement?
Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.
What are the two search techniques ?
what are decleratives in cobol?
What rules are followed by the search verb.
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?
What is the difference between copy and include in cobol?
can internal sort be applied to sort ksds files?
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?