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 will u find out 3rd week's 2nd day using occurs ?
9(2).99 how many bytes take? Why . consider as a byte?
what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?
TYPES OF SORTINGS. which is more prefarable.
What is the difference between index and subscript?
How do you come out of an EVALUATE statement?
how you will define variables length in cobol.
What is Alternate Index ? How is it different from regular index ?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
i friends greetings to the day...!!! I face a quation like"while runnig the programe every day i have to access the previous day updates only...!! Ex:- Let last day 100 customers took bank account i have to select those customers only.."
Hi................... I have records like this aaaa cccc bbbb And i want output like this bbbb cccc aaaa How can it possible ?. Note:Please make sure records are in unsorted order. somebody plzzz help me.
Can we access the a[0] in the array ?