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 / mahe
You won't get AB3 as Output,Job will abend with SOC7 as you
r moving Character to Numeric variable
| Is This Answer Correct ? | 22 Yes | 4 No |
Post New Answer View All Answers
What is an in line perform? When would you use it? Anything else you wish to say about it.
How do you get the data to code the BMS macro?
how do you reference the variable unblock file formats from cobol programs
Why would you use find and get rather than to obtain?
What are all the divisions of a COBOL program?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How you can characterize tables in cobol?
Which is not true about evaluate statement
What is a SSRANGE and NOSSRANGE?
What is the utilization of copybook in cobol?
What is the difference between goback, stop run and exit program in cobol?
How do you reference the fixed block file formats from cobol programs
Name the divisions, which are available in a cobol program?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
How do get the result of your program directly on your pc?