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 / mdvasanth86

SOC 7 only when you do some arithmetic operation on it...
Displaying it will probably only give you unpredictable results.

HTH

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it necessary that file needs to be opened in I-O mode for REWRITE?

758


Explain the configuration section of a cobol program with examples of syntax.

668


What is rmode(any) ?

692


What is the local-storage section?

693


What is static and dynamic call in cobol?

601






How many sections are there in data division in COBOL?

690


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

673


how do you reference the variable unblock file formats from cobol programs

759


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

704


What is the usage of comp fields in cobol?

666


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1939


Define cobol?

877


What are the pertinent COBOL

2056


Can we change the password using ALTER? anyone tried and changed?

1556


How do you differentiate between cobol and cobol-ii?

662