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
Explain how you can characterize tables in cobol?
What rules are to be followed while using the corresponding options?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Which Search verb is equivalent to PERFORM…VARYING?
Have you used comp and comp-3 in your project? And how?
What is the utilization of copybook in cobol?
What is the difference between PIC 9.99 and 9v99 in COBOL?
How can you get the ksds file records into your cobol program?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is amode(24)?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What are the different data types in cobol?
Explain how to differentiate call by context by comparing it to other calls?
i want a program using by if, evaluate , string, unstring, perform, occurs?