WORKING-STORAGE SECTION.
01 A PIC X(3) VALUE 'ABC'
01 B PIC 9(3).
PROCEDURE DIVISION.
MOVE A TO B.
STOP RUN.
OUTPUT IS: AB3
WHY AND HOW THIS IS HAPPENING.
Answer Posted / chandrababu
We will get 123 not AB3..why because
A = +1 J = -1
B = +2 K = -2
C = +3 L = -3
D = +4 M = -4
E = +5 N = -5
F = +6 O = -6
G = +7 P = -7
H = +8 Q = -8
I = +9 R = -9
So will get 123 for ABC..
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Write the code implementing the perform … varying.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is redefines clause in COBOL?
What are the pertinent COBOL
What is perform what is varying?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Which division and paragraphs are mandatory for a COBOL program?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
In COBOL, what is the different between index and subscript?
What is the difference between goback, stop run and exit program in cobol?
Explain how to differentiate call by context by comparing it to other calls?
What is amode(24)?
What are the different rules to perform a Search?
What the difference is between continue and next sentence?
how do you reference the variable block file formats from cobol programs