BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Franca01
Calcite | Level 5

Hello,

I am using SAS Studio and on lesson 2 of SAS programming 1: Essentials, I tried running the demo p101d01.sas, however in the Log I receive an ERROR: Library Out does not exist. Below is the lesson 2 program which is a demo I did not create. I am currently on lesson 4 (and was referring back to lesson 2 for help) and receiving the same error message while performing the first activity of the lesson. 

 

*Modify the path if necessary;
libname out "s:/workshop/output";

data class_copy1 out.class_copy2;
set sashelp.class;
run;

 

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 *Modify the path if necessary;
74 libname out "s:/workshop/output";
NOTE: Library OUT does not exist.
75
76 data class_copy1 out.class_copy2;
77 set sashelp.class;
78 run;
 
ERROR: Library OUT does not exist.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.CLASS_COPY1 may be incomplete. When this step was stopped there were 0 observations and 5 variables.
WARNING: Data set WORK.CLASS_COPY1 was not replaced because this step was stopped.
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 831.96k
OS Memory 25256.00k
Timestamp 04/27/2020 04:43:42 PM
Step Count 73 Switch Count 0
Page Faults 0
Page Reclaims 123
Page Swaps 0
Voluntary Context Switches 0
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 8
 
 
79
80 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
92
 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  If you are using Programming 1, we make an OUTPUT folder under the EPG194 main folder for the class. So here are some sample LIBNAME statements depending on how you are using SAS:

libname out "/folders/myfolders/EPG194/output";  /* SAS University Edition in a Virtual Machine */

libname out "/home/<userID>/EPG194/output";  /* SAS OnDemand for Academics account */

libname out "&path";  /* SAS Enterprise Guide when following the instructions in the course to use &PATH */

libname out "c:\SAS_Class\EPG194\output";  /* on a local Windows install using Display Manger or SAS Studio */

 

If you followed the setup instructions, please look for your output folder under the EPG194 main folder. If you do NOT have an output folder, please go back to the Course Overview and Data Setup instructions and follow them again. After the programs run, you should have an output folder.

 

  In the video, the instructor is using an S: drive location because she is working in a classroom lab environment that has an S:\workshop folder set up for the class. You probably don't have this type of classroom image.

 

Hope this helps,

Cynthia

 

View solution in original post

2 REPLIES 2
ballardw
Super User

In this code:

74 libname out "s:/workshop/output"

SAS expects to find 1) a drive named S  , do you have one? If not change the drive letter to a drive that you have.

2) That the the drive has a folder named Workshop. Do you have such a folder? If not create it using operation system tools

3) Workshop folder should also have a folder named Output.

 

Cynthia_sas
SAS Super FREQ

Hi:

  If you are using Programming 1, we make an OUTPUT folder under the EPG194 main folder for the class. So here are some sample LIBNAME statements depending on how you are using SAS:

libname out "/folders/myfolders/EPG194/output";  /* SAS University Edition in a Virtual Machine */

libname out "/home/<userID>/EPG194/output";  /* SAS OnDemand for Academics account */

libname out "&path";  /* SAS Enterprise Guide when following the instructions in the course to use &PATH */

libname out "c:\SAS_Class\EPG194\output";  /* on a local Windows install using Display Manger or SAS Studio */

 

If you followed the setup instructions, please look for your output folder under the EPG194 main folder. If you do NOT have an output folder, please go back to the Course Overview and Data Setup instructions and follow them again. After the programs run, you should have an output folder.

 

  In the video, the instructor is using an S: drive location because she is working in a classroom lab environment that has an S:\workshop folder set up for the class. You probably don't have this type of classroom image.

 

Hope this helps,

Cynthia

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 3194 views
  • 7 likes
  • 3 in conversation