Here are two ways to do this: If you are using a metadata server, define a library there and check the "Library is preassigned" checkbox in Properties> Options> Advanced Options. The library should now appear in clients that use the workspace server to which the library is assigned, provided that your metadata identifier has read permissions.
If you use the standalone SAS Foundation client and do not use the metadata server, you must put the libname statement in the autoexec.sas file. This will be done when SAS starts, if it is located either in the folder in which you run sas from (the current folder), or in one of the folders specified by the PATH environment variable, or in the root folder of the current folder or the same folder as sas .exe.
You can also specify the autoexec parameter when running sas, for example: sas.exe -autoexec "/path/to/the/autoexec.sas" Or you can specify the autoexec option in the configuration file. This is called sasv9.cfg and is located in the same folder as the sas.exe file.
source share