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 arrays can be defined in COBOL?
In COBOL programming, what is PERFORM? What is VARYING?
What are the rules of the move verb?
What type of SDLC u followed? Why?
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.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Are you comfortable in cobol or jcl?
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 ?
Explain about different table spaces.
Difference between cobol and cobol-ii?
What is rmode(24)
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?
how do you reference the ksds vsam file formats from cobol programs
) what is the difference between AID and HANDLE AID?
What is the Purpose of Pointer in the string?