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

Can you please let me know the centre name of INS certification in Kolkata.

1934


what happens if parmparameter passes zero bytes to the program

1859


What are the different rules to perform a Search?

800


What is a report item?

889


When is inspect verb is used in cobol?

900






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

1221


How do define dynamic array in cobol.

844


Differentiate between structured cobol programming and object-oriented cobol programming.

822


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

898


What is the difference between PIC 9.99 and 9v99 in COBOL?

958


Which division and paragraphs are mandatory for a COBOL program?

905


Discuss about changing dataset name in proc.

947


What are the different open modes available in cobol?

924


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1339


A table has two indexes defined. Which one will be used by the SEARCH?

999