Assigns or deassigns a libref for a SAS library.
Category: | SAS File I/O |
See: | LIBNAME Function: Windows in SAS Companion for Windows |
is a character constant, variable, or expression that specifies the libref that is assigned to a SAS library.
Tip | The maximum length of libref is eight characters. |
is a character constant, variable, or expression that specifies the physical name of the SAS library that is associated with the libref. Specify this name as required by the host operating environment. This argument can be null.
is a character constant, variable, or expression that specifies the engine that is used to access SAS files opened in the data library. If you are specifying a SAS/SHARE server, then the value of engine should be REMOTE. This argument can be null.
is a character constant, variable, or expression that specifies one or more valid options for the specified engine, delimited with blanks. This argument can be null.
rc3 = libname ('mylib3', , 'ODBC', 'DSN=mySQLServer_11'); /**Argument2, SAS-library is missing**/
rc3 = libname ('mylib3',, 'ODBC', 'DSN=mySQLServer_11'); /** Argument2, SAS-library is missing**/
rc3 = libname ('mylib3',TRIMN(&variable.), 'ODBC', 'DSN=mySQLServer_11');
%if (%sysfunc(libname(new))) %then %put %sysfunc(sysmsg());