What is the difference between ITER and DO ? I know both are
used to execute set of statements repeatedly, but what is the
main difference?
Answers were Sorted based on User's Feedback
Answer / joy mukherjee
There is no comparision between DO and ITER as DO statement
is an looping statement and ITER is an branching statement
like LEAVE.
When I use ITER with some condition inside a DO-ENDDO loop,
when that condition occouerd, ITER transfered the control
to ENDDO not out of the loop like LEAVE ie it just skip the
excecution of statements between ITER and ENDDO.
In one statement we can say that ITER in RPGLE is same as
CONTINUE in C.
| Is This Answer Correct ? | 27 Yes | 1 No |
Answer / chittim
with in a do loop itself again we have to create loop again
where u want loop by using iterate.
| Is This Answer Correct ? | 2 Yes | 9 No |
What does Implicit Open means with respect to a file ? What about the Explicit Open?..what are the major differences between these two?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.
wat is the difference between dataarea and data queue?
5 Answers Airtel, Four soft, Shahi Exports,
3 members in a databasefile .how to read records from all the members?????????
When it is desirable to describe files Internally?
if i have three programs progA,progB and progC .now i call progB from progA. but the progB does not exist . now i want to call progC instead of starting dump. how can we achieve this.
what is plat file?
difference betwen keywords and opcodes
WHAT IS MONMSG IDENTIFIER FOR STRTCPFTP command IN cl (as/400)?
How Chain operation copies the record's data to the input buffer for the program?
1. I have2 records in a PF. READ PF DO DSPLY EMPNO RETRN DSPLY EMPNO ENDDO What was the output 2. SETON LR vs RETURN 3. Primary File 4. How to delete a deleted spaces 5. How to read a PF in reverse order in CL 6. I have a object in Lib A, B and C. But it shows in D Lib..Why? 7.