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
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are 77 levels used for?
A table has two indexes defined. Which one will be used by the SEARCH?
How do you get the data to code the BMS macro?
what is the use of outrecord?
What are the rules of the move verb?
How do we get current date from system with century in COBOL?
How are the next sentence and continue different from each other?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is comp-1 and comp-2?
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.
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?
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.
Name the sections present in data division.
How to remove 2 duplicate records and copy only one using job control language?