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 / ram.g

sorry for my wrong ans..

it will be in the infinite loop...

should use different ws variables..

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

713


What are 77 levels used for?

661


A table has two indexes defined. Which one will be used by the SEARCH?

759


How do you get the data to code the BMS macro?

1478


what is the use of outrecord?

1774






What are the rules of the move verb?

710


How do we get current date from system with century in COBOL?

809


How are the next sentence and continue different from each other?

766


What is an in line perform? When would you use it? Anything else you wish to say about it.

649


What is comp-1 and comp-2?

766


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.

3725


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1809


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1785


Name the sections present in data division.

703


How to remove 2 duplicate records and copy only one using job control language?

756