Type : SASHELP
The data comes from the SASHELP.CLASS example table.
| 1 | PROC SQL noprint; |
| 2 | select distinct name into :STUDENT_LIST separated BY ' ' |
| 3 | from sashelp.class; |
| 4 | %let NUM_STUDENTS = &sqlobs; |
| 5 | QUIT; |
| 1 | * Verify the contents of the new macro variables by printing to the SAS log.; |
| 2 | options nosource; |
| 3 | %put ======================; |
| 4 | %put Number of Students: &NUM_STUDENTS; |
| 5 | %put Student List: &STUDENT_LIST; |
| 6 | %put ======================; |
| 7 | options SOURCE; |