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?
Answer Posted / 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 |
Post New Answer View All Answers
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
When it is desirable to describe files Internally?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
are there any useful c runtime apis that I can call from rpg iv?
what is the procedure and explain about real time scenario.
Explain mdt?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
Interviewer asked me write down DDS for load all subfile .can anybody write dds
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
do you use message subfiles? What are the necessary keywords required coding a message subfile?
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
What is difference between bind by copy and bind by reference?
What is the difference between iter and do?
How to declare the pull button in AS/400..