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


Please Help Members By Posting Answers For Below Questions

What is inspect in cobol ?

806


) how do u code after getting data?

1582


what happens if parmparameter passes zero bytes to the program

1668


What are all the divisions of a COBOL program?

667


Which Search verb is equivalent to PERFORM…VARYING?

690






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)?

635


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

678


Write down the divisions of cobol program?

672


Write the code implementing the perform … varying.

647


State the various causes of s0c1, s0c5 and s0c7.

665


What are different data types in cobol?

695


how to refer the data field?

1812


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2734


) How do u handle errors in BMS macro?

1430


What are the different rules to perform a Search?

619