Previous Topic: &DO

Next Topic: &DOM


&DOEND

&DOEND signifies the logical end of a group of statements that starts with &DO, &DOWHILE, or &DOUNTIL.

&DOEND

All &DO, &DOWHILE, or &DOUNTIL statements must be paired with a corresponding &DOEND statement. Unbalanced occurrences cause syntax errors.

Examples: &DOEND

&IF &DAY = SAT &THEN +
 &DO
 -* 
 -* Other NCL statements
 -* 
 &DOEND
&ELSE +
&DO   &I = 1
  &DOWHILE &I LE 100
 -* 
 -* Other NCL statements
 -*  
 &I = &I + 1
 &DOEND
&DOEND

&DO groups must be terminated by an &DOEND statement, that is, &DO and &DOEND statements must be paired. Unbalanced pairs cause syntax errors at load time.

More information:

&DOWHILE

&DOUNTIL