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 / dharma
U will not get SOC7 . but u will get unpredicatble results
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
In COBOL programming, what is PERFORM? What is VARYING?
What are the various section in data division and briefly explain them.
Name the divisions, which are available in a cobol program?
HOw can I get the negative sign while deduct high value from low value
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
Which is not true about evaluate statement
How are the next sentence and continue different from each other?
How do you define a variable of comp-1 and comp-2?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Name the sections present in data division.
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc