The commands in single quotes are submitted when the user selects
For
Dept01
or
For Dept02
. The END command ends the current window
and returns to the PROGRAM EDITOR window so that further commands can be submitted.
The INCLUDE command includes the SAS statements that create the data entry
window. The CHANGE command modifies the DATA statement in the included program
so that it creates the correct data set. See
Using a Data Entry Program . The SUBMIT command submits
the DATA step program.
selection de1 'end;pgm;include de;change xx 01;submit';
selection de2 'end;pgm;include de;change xx 02;submit';