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?
Submitted by: AdministratorThere 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.
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 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.
Submitted by: Administrator
Read Online IBM RPG400 Job Interview Questions And Answers
Top IBM RPG400 Questions
☺ | What is difference between Bind by copy and bind by reference? |
☺ | What is importance of MAPFLD IN OPNQRYF FILE? |
☺ | Explain MDT? |
☺ | 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? |
Top Mainframe Technical Categories
☺ | IBM MainFrame Interview Questions. |
☺ | IBM AS400 Interview Questions. |
☺ | JCL Interview Questions. |
☺ | IMS DB Interview Questions. |
☺ | CICS Interview Questions. |