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


Please Help Members By Posting Answers For Below Questions

how do you reference the variable block file formats from cobol programs

675


When is inspect verb is used in cobol?

669


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1515


What are all the divisions of a COBOL program?

660


how do you reference the rrds file formats from cobol programs

787






can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1895


What is a scope terminator give example?

650


how do you reference the ksds vsam file formats from cobol programs

647


How are the next sentence and continue different from each other?

755


Name some of the examples of COBOl 11?

2673


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1223


Write a program to enter and display the names of students in a class using the occurs clause.

642


What is a SSRANGE and NOSSRANGE?

809


what happens if parmparameter passes zero bytes to the program

1650


What is a report item?

733