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 arrays can be defined in COBOL?

663


In COBOL programming, what is PERFORM? What is VARYING?

670


What are the rules of the move verb?

704


What type of SDLC u followed? Why?

1518


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3715






How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

673


Are you comfortable in cobol or jcl?

643


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1869


Explain about different table spaces.

648


Difference between cobol and cobol-ii?

704


What is rmode(24)

678


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1804


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

664


) what is the difference between AID and HANDLE AID?

1635


What is the Purpose of Pointer in the string?

642