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

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.

5067


How do define dynamic array in cobol.

675


how to refer the data field?

1813


Difference between array and sub-script ?

1170


What rules are followed by the search verb.

640






What type of SDLC u followed? Why?

1524


How do u write test cases?

1642


What are literals?

634


What is a scope terminator give example?

659


What are the access modes of START statement?

722


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

748


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

1598


Write down the divisions of cobol program?

673


What is inspect in cobol ?

806


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

2127