DATA Step, Macro, Functions and more

Unable to define ORION Library in SAS OnDemand for Academics, SAS Studio

Reply
New Contributor
Posts: 4

Unable to define ORION Library in SAS OnDemand for Academics, SAS Studio

Hi All,

 

I have enrolled with the free SAS-eCourse : SAS Programming 1:Essentials. I was trying to define "ORION Library" in my SAS OnDemand for Academics, SAS Studio. 

The code which I used for this purpose is:

%let path=/home/mridula.panicker/ecprg193;
libname orion "&path";

 

But I didn't get the "NOTE: Libref ORION was successfully assigned" in my Log.

 

The log I am getting is as follows:

 

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
55
56 %let path=/home/mridula.panicker/ecprg193;
57 libname orion "&path";
58
59 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
60 ODS HTML CLOSE;
61 &GRAPHTERM; ;*';*";*/;RUN;QUIT;
62 QUIT;RUN;
63 ODS HTML5 (ID=WEB) CLOSE;
64
65 ODS RTF (ID=WEB) CLOSE;
66 ODS PDF (ID=WEB) CLOSE;
NOTE: ODS PDF(WEB) printed no output.
(This sometimes results from failing to place a RUN statement before the ODS PDF(WEB) CLOSE statement.)
67 FILENAME _GSFNAME;
NOTE: Fileref _GSFNAME has been deassigned.
68 DATA _NULL_;
69 RUN;
 
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
user cpu time 0.00 seconds
system cpu time 0.00 seconds
memory 765.81k
OS Memory 19876.00k
Timestamp 10/18/2015 01:11:50 PM
Step Count 12 Switch Count 22
Page Faults 0
Page Reclaims 219
Page Swaps 0
Voluntary Context Switches 32
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 0
  
70 OPTIONS NOTES STIMER SOURCE SYNTAXCHECK;
71
 
Can someone please help me by telling what is the mistake I am making in this?
 
regards,
Mridula
SAS Super FREQ
Posts: 8,740

Re: Unable to define ORION Library in SAS OnDemand for Academics, SAS Studio

Hi: 1) Did you MAKE the ECPRG193 folder in your folder structure? 2) I do NOT see anything in this code that uses the ORION libref so it looks like you have NOT posted all your log. Please try this:
%let path=/home/mridula.panicker/ecprg193;.
libname orion "&path";
proc contents data=orion._all_;
run;

Which will tell you whether the folder is there. Remember that the LIBNAME statement will NOT make a folder. So you must make the folder first by right-clicking on the icon for My Folders (or on some instances Files (Home) and selecting New Folder, as shown in the Course Overview instructions in Programming 1. Also remember that there are 2 tasks in the Setup instructions. Task 1 is making the folder and running the LIBNAME statement. Task 2 is running the program that will actually PUT data into your folder location.

I am not sure why you have so many statements and are using GSFNAME -- that is NOT in Programming 1, so that is a bit odd to see in the SAS log.

cynthia
New Contributor
Posts: 4

Re: Unable to define ORION Library in SAS OnDemand for Academics, SAS Studio

Hi Cynthia,

 

I have tried the solution you suggested. But still I am not able to define the Orion Library. Some more details of my current situation is as follows:

 

1. SAS software which I am using : SAS OnDemand for Academics : SAS Studio (Cloud version, not installed on my PC)

 

2. Operating System : Windows 7

 

3. Document referring for Setup : Setup Instructions for SAS OnDemand for Academics: SAS Studio (provided along with online training for Programming 1)

 

4. Creation of Folder "ecprg193" for ORION Library : Created (Please refer attached image for code as well as folder details)

 

5. Since I didn't get the message saying "NOTE: Libref ORION was successfully assigned" I didn't try Step2 of the procedure.

 

I have attached the log as well as my code details along with this. Please refer and kindly support me.

 

regards,

Mridula.

 

 


Orion Library def_Code.jpg
New Contributor
Posts: 4

Re: Unable to define ORION Library in SAS OnDemand for Academics, SAS Studio

Hi Cynthia,

 

I resolved the issue on my own. Thaks for the support.

 

Here is the code which I used:

 

%let path=/home/mridula.panicker/ecprg193/;
libname orion "&path";

 

What I did to solve the issue:

 

I just added one "/" at the end of my path declaration line. This made my program working and my ORION Library successfully created.

 

Once again thank you very much.

 

regards,

Mridula

 

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