Processing SAS Programs
When you submit a SAS program, SAS reads SAS statements and checks them for errors. When
it encounters a subsequent DATA, PROC, RUN, or QUIT statement, SAS executes the previous
step in the program.
How Long Librefs Remain in Effect :
The LIBNAME statement is global, which means that the librefs remain in effect until you modify
them, cancel them, or end your SAS session.
Therefore, the LIBNAME statement assigns the libref for the current SAS session only. Each time
you begin a SAS session, you must assign a libref to each permanent SAS data library that
contains files that you want to access in that session. (Remember that Work is the default libref
for a temporary SAS data library.)
When you end your SAS session or delete a libref, SAS no longer has access to the files in the
library. However, the contents of the library still exist on your operating system.
the LIBNAME statement below specifies the libref Rptdata and the engine SPSS
for the file G:\Myspss.dat in the Windows operating environment.
libname rptdata spss 'g:\myspss.dat';