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 / velu

Exactly maha!!!!......actually we won't move the pic x(3)
to pic 9(3)(that's we can't move the alphabet to numeric
data type).....it should shows the abed...

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are declaratives and what are their uses in cobol?

714


In COBOL, what is the different between index and subscript?

755


How arrays can be defined in COBOL?

663


Why would you use find and get rather than to obtain?

683


What is static and dynamic call in cobol?

593






How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1936


How do you reference the following file formats from cobol programs?

693


What are the different types of condition in cobol and write their forms.

658


how to convert the recors form vsam file to db2 table tru file aid

2763


What are the different rules to perform a Search?

615


What are the cobol coding sheets?

664


What is the usage of comp fields in cobol?

658


how can i see junk values in dclgen or in hostvariable of comp ?

2544


What is amode(24)?

682


) How do u handle errors in BMS macro?

1427