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
How are the next sentence and continue different from each other?
What is the difference between perform … with test after and perform … with test before?
What is the difference between goback, stop run and exit program in cobol?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Which Search verb is equivalent to PERFORM…VARYING?
How do get the result of your program directly on your pc?
What is the Purpose of Pointer in the string?
What type of SDLC u followed? Why?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What is inspect in cobol ?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Name the divisions, which are available in a cobol program?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?