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

Why did you choose to work with ibm mainframe cobol programming?

624


What are the pertinent COBOL commands?

2617


example for sub strings ? and refernce modifications whit output pls

1834


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

764


how do you reference the fixed unblock file formats from cobol programs

698






For rewrite, why is it mandatory that file needs to be opened?

616


what is difference between cobol and cobol/400

21547


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1014


What is the use of intialize verb?

738


How you can read the file from bottom?

653


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2654


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

1917


What is the difference between perform … with test after and perform … with test before?

869


What is the default value(s) for an initialize and what keyword allows for an override of the default?

686


Mention the guidelines to write a structured cobol program?

603