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 / kamaldeep
I got AB3 as out put, when ever we are moving X(3) to 9(3) then 1st 2 bytes will be moved right(i.e. AB) but last byte will have '3' as C=+3
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the different data types in cobol?
Can you please let me know the centre name of INS certification in Kolkata.
What is link edit in cobol?
What is perform what is varying?
What is the difference between Call and a Link?
Write some characteristics of cobol as means of business language.
In COBOL, what is the different between index and subscript?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
HOw can I get the negative sign while deduct high value from low value
What is rmode(any) ?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What are the different rules for performing sort operation?
State the various causes of s0c1, s0c5 and s0c7.
Why is it necessary that file needs to be opened in I-O mode for REWRITE?