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
Can you please let me know the centre name of INS certification in Kolkata.
what happens if parmparameter passes zero bytes to the program
What are the different rules to perform a Search?
What is a report item?
When is inspect verb is used in cobol?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
How do define dynamic array in cobol.
Differentiate between structured cobol programming and object-oriented cobol programming.
How do you reference the following file formats from cobol programs?
What is the difference between PIC 9.99 and 9v99 in COBOL?
Which division and paragraphs are mandatory for a COBOL program?
Discuss about changing dataset name in proc.
What are the different open modes available in cobol?
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.
A table has two indexes defined. Which one will be used by the SEARCH?