perform I from 0 by 1 until I=5?How maney times it will
executes

Answer Posted / varun v

I agree with Answr #3 and Answer # 3 is correct..

PERFORM I FROM 0 BY 1 UNTIL I=5
........................
........................

END-PERFORM.

would give syntax error.
************************************************************
Correct one is given as below...

PERFORM varying i from 0 by 1 until i = 5
.............
.............
END-PERFORM.

and this should get executed 5 times....

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of error is trapped by on size error option?

743


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

678


What are various search techniques in cobol? Explain.

650


how do you reference the fixed unblock file formats from cobol programs

712


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1703






Describe the cobol database components?

682


Which division and paragraphs are mandatory for a COBOL program?

712


What is the compute verb? How is it used?

663


Explain how to differentiate call by context by comparing it to other calls?

689


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1908


how can i see junk values in dclgen or in hostvariable of comp ?

2546


What are the different rules to perform a Search?

619


Discuss about changing dataset name in proc.

765


What are the different rules of SORT operation?

701


What is a report item?

741