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 / mahe
You won't get AB3 as Output,Job will abend with SOC7 as you
r moving Character to Numeric variable
Is This Answer Correct ? | 22 Yes | 4 No |
Post New Answer View All Answers
What is inspect in cobol ?
) how do u code after getting data?
what happens if parmparameter passes zero bytes to the program
What are all the divisions of a COBOL program?
Which Search verb is equivalent to PERFORM…VARYING?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Write down the divisions of cobol program?
Write the code implementing the perform … varying.
State the various causes of s0c1, s0c5 and s0c7.
What are different data types in cobol?
how to refer the data field?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
) How do u handle errors in BMS macro?
What are the different rules to perform a Search?