can u give result for the fallowing example...
05 a pic 9(2)
05 b redifines a pic x(2).
move 'xy' to b.
display a,b.
Answer Posted / shyamala a
SCENARIO 1 :
If we move "XY" TO A then the result will be
1. You will get a compilation warning "** Warning 378 ** Expected digit string as sending operand"
2. display will be Both A and B will have 00.
sCENARIO 2:
iF WE MOVE "xy" TO B then the result will be
1. No compilation/run time error.
2. Display will be both A and B = XY
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between binary search and sequential search?
What is rmode(any) ?
Name some of the examples of COBOl 11?
How do get the result of your program directly on your pc?
Write down the divisions of cobol program?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How to remove 2 duplicate records and copy only one using job control language?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What are the different data types in cobol?
What is link edit in cobol?
What is perform what is varying?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How do you reference the following file formats from cobol programs?
how do you reference the printer file formats from cobol programs
what is the difference between COBOL2 AND COBOL390?