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 literals?
Explain what you understand by passing by value.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is the compute verb? How is it used?
Which is not true about evaluate statement
what is difference between cobol and cobol/400
What is rmode(24)
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
What are the access modes of START statement?
What is an in line perform? When would you use it? Anything else you wish to say about it.
How do you reference the following file formats from cobol programs?