What is the difference between ITER and DO? We know both are used to execute set of statements repeatedly, but what is the main difference?
Submitted by: AdministratorThere is no comparison 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 transferred the control
to ENDDO not out of the loop like LEAVE ie it just skip the
execution of statements between ITER and ENDDO.
In one statement we can say that ITER in RPGLE is same as
CONTINUE in C.
Submitted by: Administrator
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 transferred the control
to ENDDO not out of the loop like LEAVE ie it just skip the
execution of statements between ITER and ENDDO.
In one statement we can say that ITER in RPGLE is same as
CONTINUE in C.
Submitted by: Administrator
Read Online IBM AS400 Job Interview Questions And Answers
Top IBM AS400 Questions
☺ | Explain this error: "All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored."? |
☺ | How to retrieve RRN value in RPGLE program? |
☺ | In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening? |
☺ | Why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different? |
Top Mainframe Technical Categories
☺ | IBM MainFrame Interview Questions. |
☺ | IBM AS400 Interview Questions. |
☺ | JCL Interview Questions. |
☺ | IMS DB Interview Questions. |
☺ | CICS Interview Questions. |