DATA Step, Macro, Functions and more

ERROR: Libref ORION is not assigned.

Reply
New Contributor
Posts: 2

ERROR: Libref ORION is not assigned.

Hello there,

I have created the library called Orion and assigned the library to the enviornment by executing 'setup' folder under Snippet. But I am getting the error: 'Libref ORION is not assigned'. Do I need to add an 'Infile' statement?  I am trying to create a temporary data set named q1birthdays from the input data set orion.employee_payroll.

 

Please see the codes below:

 

libname orion "/folders/myfolders/ecprg193";

 

data q1birthdays;
   set orion.employee_payroll;
   BirthMonth=month(Birth_Date);
   if BirthMonth le 3;
run;%let path = Filepath;

 

Thank you for your time.

Sahib

 

Super User
Posts: 6,962

Re: ERROR: Libref ORION is not assigned.

If you get that error, it means that the libname statement failed. Check the spelling of the physical path; be aware that UNIX is case-sensitive.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Posts: 17,885

Re: ERROR: Libref ORION is not assigned.

Post the log so we can see the error message. 

 

Re-run the setup as well and include the log if that has errors. 

Ask a Question
Discussion stats
  • 2 replies
  • 243 views
  • 0 likes
  • 3 in conversation