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


Please Help Members By Posting Answers For Below Questions

Are you comfortable in cobol or jcl?

643


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5062


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

666


Name the sections present in data division.

701


i want a program using by if, evaluate , string, unstring, perform, occurs?

4057






What is static and dynamic call in cobol?

593


Difference between cobol and cobol-ii?

704


What is the usage of comp fields in cobol?

658


) How do u handle errors in BMS macro

1509


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

1954


When is inspect verb is used in cobol?

673


how to access the file from prodution from changeman tool and to submit a file to production

6685


What are the different data types in cobol?

794


Explain about different table spaces.

648


What is the difference between goback, stop run and exit program in cobol?

926