![]() Chapter Contents |
![]() Previous |
![]() Next |
| CONTINUE |
| Valid: | in a DATA step |
| Category: | Control |
| Type: | Executable |
| Restriction: | Can be used only in a DO loop |
| Syntax | |
| Without Arguments | |
| Comparisons | |
| Examples | |
| See Also |
Syntax |
| CONTINUE; |
| Comparisons |
| Examples |
This DATA step creates a report of benefits for new full-time employees. If an employee's status is PT (part-time), the CONTINUE statement prevents the second INPUT statement and the OUTPUT statement from executing.
data new_emp;
drop i;
do i=1 to 5;
input name $ idno status $;
/* return to top of loop */
/* when condition is true */
if status='PT' then continue;
input benefits $10.;
output;
end;
datalines;
Jones 9011 PT
Thomas 876 PT
Richards 1002 FT
Eye/Dental
Kelly 85111 PT
Smith 433 FT
HMO
;
| See Also |
| Statements:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.