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
What are declaratives and what are their uses in cobol?
In COBOL, what is the different between index and subscript?
How arrays can be defined in COBOL?
Why would you use find and get rather than to obtain?
What is static and dynamic call in cobol?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How do you reference the following file formats from cobol programs?
What are the different types of condition in cobol and write their forms.
how to convert the recors form vsam file to db2 table tru file aid
What are the different rules to perform a Search?
What are the cobol coding sheets?
What is the usage of comp fields in cobol?
how can i see junk values in dclgen or in hostvariable of comp ?
What is amode(24)?
) How do u handle errors in BMS macro?