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

)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1523


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6829


what is the use of outrecord?

1771


Explain what you understand by passing by value.

699


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1956






how can i see junk values in dclgen or in hostvariable of comp ?

2544


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1914


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

718


In COBOL programming, what is PERFORM? What is VARYING?

670


What is the difference between structured cobol programming and object alternativelyiented cobol?

754


What is link edit in cobol?

772


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.

3717


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1588


Explain about different table spaces.

648


Differentiate between structured cobol programming and object-oriented cobol programming.

667