BookmarkSubscribeRSS Feed
EvgenyRogozin
Fluorite | Level 6

How to solve the problem Log: Libref ORION is not assigned?

 

I do SAS Programming 1

Orion library was defined correctly (I think)

 

This program gives Log (below)

 

proc contents data=orion._all_;

run;

 

Log:

ERROR: Libref ORION is not assigned.

NOTE: Statements not processed because of errors noted above.

NOTE: PROCEDURE CONTENTS used (Total process time):

real time 0.00 seconds

cpu time 0.00 seconds

 

NOTE: The SAS System stopped processing this step because of errors.

58

59 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;

 

 

15 REPLIES 15
Reeza
Super User

The error message is saying the ORION library doesn't exist.

 

If you're doing the online SAS Programming 1 course - go read the setup instructions and run the code again.  

 

If you ran it the first time, closed your session and started a new one you need to map the library back to the folder.

 

libname orion 'path you used previously';

 

If you absolutely think you did it correctly you can check it using the following code snippet:

 

proc sql;
select *
from sashelp.vlibnam
where libname='ORION';
quit;

 

 

EvgenyRogozin
Fluorite | Level 6
Thanks for the help.
I have used your program to check the Orion library right after SAS Studio launch. Log did not show a error (below). Does it mean everything is correct and Orion library was installed properly?
Thanks.
 
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
55
56 proc sql;
57 select *
58 from sashelp.vlibnam
59 where libname='ORION';
NOTE: No rows were selected.
60 quit;
NOTE: PROCEDURE SQL used (Total process time):
real time 0.05 seconds
cpu time 0.03 seconds
 
61
62 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
74
Reeza
Super User

There's a line in there that tells you that the library does not exist. If the library existed you would see the record of the library, but it doesn't exist so you don't get any results. Are you using SAS UE? If so, when you create the library via the GUI make sure to select that it's automatically added at start up. Otherwise everytime you close SAS UE you lose the library reference. 

 

NOTE: No rows were selected.

 

 

EvgenyRogozin
Fluorite | Level 6

Yes, I use SAS Studio University Edition.
When I create orion library again always get "A folder named "ecprg193" already exists". Does it mean orion library is has installed and exists? May be change some settings for orion library?

Reeza
Super User
How are creating your library?
EvgenyRogozin
Fluorite | Level 6

The orion library was created accordingly Setup Instructions for SAS Studio (look at the Pictures).


Orion 1.jpgOrion 2.jpg
Reeza
Super User

Read the set up instructions you posted in Picture 1. It explains in detail how to add the code to the Snippet library and that you have to run the snippet every time you start up SAS UE.

 

The second set of instructions also clearly identifies that you only need to run it once.

 

 

EvgenyRogozin
Fluorite | Level 6

The snippet "setup.sas" already exists in your snippets folder.
Do you want to replace it?

 

How to run the snippet every time when start up SAS UE?

Reeza
Super User

Snippets are sets of code, either commonly used or template for common tasks. For the setup.sas you'd probably drag it into your editor and run, or double click/open and run it.

For a template snippet you'll need to fill in values ie data file trying to import for the import snippet. 

 

http://support.sas.com/software/products/university-edition/faq/SAS_accessdata_Excel_xls.htm

 

Have you tried following the video tutorial series for SAS UE?

http://support.sas.com/software/products/university-edition/faq/SAS_accessdata_Excel_xls.htm

EvgenyRogozin
Fluorite | Level 6

Thanks for the help. I will read it.
Orion library was created accordingly Setup Instructions for SAS Studio and SAS said everything is OK. I am surprise why every program which I run has an error.

 

Can I uninstall orion library and install again?

Reeza
Super User

Sure, delete the folder. 

You'll find it under /SAS University Edition/myfolders/

EvgenyRogozin
Fluorite | Level 6

Just simply Delete NOT Uninstall?
What is about Snippets? I need to Delete it also or it will be automatically deleted?
Sorry for so many simple questions, I am very new person in SAS.

Reeza
Super User

Delete the folder is fine. You should be able to right click on the snippet to delete it.

 

Here's a hint though - you can try things and test them out, if it breaks, start over 🙂

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 15 replies
  • 3425 views
  • 4 likes
  • 3 in conversation