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 is the necessary command needed before OPNQRYF and why?
what do you mean by an input subfile, what are the keywords required?
HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton lr" OR "*INLR = *ON" in between the program code ? 3:if yes then according to there function the code which is written acter seton lr/ *inlr should not be execute . Can any one tell me why those code get executed ?
what r drawbacks of OPM? Why do we go for ILE RPG?
while i am using the dspmsg command on comman line in Mocha am getting error like Not authorized to message queue message my messagequeue Name? can anybody help me how to change my message queue Am anable to see my messages in message queue
are there any useful c runtime apis that I can call from rpg iv?
How to select highest score of each subject or how to select highest income of every month?
I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.
this is rpg3 code W0RTN IFEQ @CN,002 what is the means @CN,002
what is file information data structure?
What are the commands that can be executed in CLP but not in RPG? Why?
What is the compilation option that has to he specified while compiling an RPC program which uses a file having date data type field?