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 is amode(24), amode(31), rmode(24) and rmode(any)?

699


How do define dynamic array in cobol.

671


Discuss about changing dataset name in proc.

759


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1937


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1873






What is the Purpose of POINTER Phrase in STRING command in COBOL?

721


Name the sections present in data division.

701


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1523


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

689


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2730


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

709


What are the pertinent COBOL commands?

2623


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2098


In which area will you utilize 88 level items in cobol?

722


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2058