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
What kind of error is trapped by on size error option?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
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?
A table has two indexes defined. Which one will be used by the SEARCH?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
example for sub strings ? and refernce modifications whit output pls
What is the use of intialize verb?
What type of SDLC u followed? Why?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Which division and paragraphs are mandatory for a COBOL program?
For rewrite, why is it mandatory that file needs to be opened?
What is a SSRANGE and NOSSRANGE?
what happens if parmparameter passes zero bytes to the program
In which area will you utilize 88 level items in cobol?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this