Type : SASHELP
Les données proviennent de la table standard SASHELP.CLASS.
| 1 | DATA _null_; |
| 2 | SET sashelp.class END=eof; |
| 3 | LENGTH student_list $200; |
| 4 | retain student_list; |
| 5 | student_list = catx('~',student_list,name); |
| 6 | IF eof THEN DO; |
| 7 | call symputx('STUDENT_LIST',student_list); |
| 8 | call symputx('NUM_STUDENTS',_n_); |
| 9 | END; |
| 10 | RUN; |
| 1 | options nosource; |
| 2 | %put ======================; |
| 3 | %put Number of Students: &NUM_STUDENTS; |
| 4 | %put Student List: &STUDENT_LIST; |
| 5 | %put ======================; |
| 6 | options SOURCE; |