Consider the following:

77 W-NUM PIC 9 VALUE 0
------
MOVE 1 TO W-NUM
PERFORM PARA-X UNTIL W-NUM > 9.
------
PARA-X
ADD 1 TO W-NUM

How many times PARA-X is executed ?

Answer Posted / thrivikram

it goes into infinite loop.

when w-num =9 , it will become 0

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

629


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

748


Explain how you can characterize tables in cobol?

636


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

1588


What are the pertinent COBOL

2044






Write a cobol program making use of the redefine clause.

731


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

706


How do you define a variable of comp-1 and comp-2?

701


Why would you use find and get rather than to obtain?

683


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.

1115


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2109


What are the different rules to perform a Search?

614


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

1931


) how do u code after getting data?

1579


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.

5058