Are you still worried why you’re getting this error in SAS EG ? And how to fix this by assigning pre-existing Libraries in SAS EG.
ERROR: Libname <library> is not assigned.
2 Ways to Assign Pre-Existing Libraries in SAS EG
In this tutorial we’re going to see why you’re getting “ERROR: Libname <library> is not assigned.” and how you can resolve this via multiple methods.
Reason : When you’re trying to use libraries which are not pre-assigned or greyout in your session SAS will through this error.
Method 1 : Manual Method
Step 1. Open SAS EG application and connect with your profile.
Step 2. Now Expand Servers from Servers windows appearing in right side.
Step 3. Select Server from the list and then expand Libraries.
Step 4. Right click on the greyout Library which you wanna use in your SAS session.
Step 5. From the options click Assign.
Hurray !! Now you can use that particular library in your session without any error.
Method 2 : Using Code
Suppose want to deal this error using sas code then you have to write the below code at the top of your sas program to use these pre-assigned libraries into your session.
LIBNAME <Library Name> META LIBRARY="<Library Name>" METAOUT=DATA;
Step 1. Include the above code into your code.
Step 2. Replace the highlighted values with your Library.
Note : You can also resolve this via SAS Management Console (SMC) but ut will require admin access.
Hope you’re now clear how you can fix ERROR: Libname <library> is not assigned feel free to comment if you still have any doubts.