ID DIVISION.
PROGRAM-ID. PLO.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 VAR1 PIC 9(2).
01 VAR2 PIC X(2).
PROCEDURE DIVISION.
ACCEPT VAR2.
MOVE VAR2 TO VAR1.
STOP RUN.
if i give 'PI' in var2 then what will b output of progr.
any abend?????
Answer Posted / piyush mani
i know soc7 abend should b the result but if i display var1 then program is running without any abend and output of program is absurd so i asked this question..
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
State the various causes of s0c1, s0c5 and s0c7.
Which mode is used to operate the sequential file?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is the difference between perform … with test after and perform … with test before?
Write a program to explain size error.
What is rmode(any) ?
What is the difference between next sentence and continue in cobol programing language?
Write the code to count the sum of n natural numbers.
What are the pertinent COBOL
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
) how do u code after getting data?
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.
what is amode(24), amode(31), rmode(24) and rmode(any)?
how do you reference the printer file formats from cobol programs