By using the My Favorite
Folders window, you can access files that exist outside
the SAS environment. Files that contain SAS code can be dragged into
your interactive SAS session for execution. Access the My
Favorite Folders window by using the View menu.
If you drop a file that
contains SAS code onto the Enhanced Editor window
or on the Program Editor window, that code
is included in the window (but not submitted). If you drop the file
onto the Log or Output window or on a minimized
SAS session, the code is automatically submitted.
When you minimize a SAS session, its icon appears on the Windows
taskbar. You cannot drop a file onto the taskbar. Instead, you can drag the file to the SAS
icon on the taskbar and hold it there, without releasing the mouse button. After about
one second, the SAS window resumes its normal size. Then you can drop the file onto
the open SAS session.
Dropping the file
C:\MYPROG.SAS
onto a window (other than the Enhanced Editor or Program Editor windows) of an open
SAS session is the same as issuing this command:
gsubmit "%include 'c:\myprog.sas'";
You can submit more
than one file at a time by selecting a group of files that contain
SAS programs and then dropping them onto the open SAS session. The
order in which the programs are run when they are submitted as a group
is determined by Windows. Therefore, if order is important, you should
drop each program file separately.
If SAS is busy when
you drop a SAS program icon, the dropped file is ignored. The only
indication that the dropped file was ignored is a warning beep.