BookmarkSubscribeRSS Feed
cezaryrosa
Calcite | Level 5

Hi all,

 

I'm new to SAS and I keep getting the error ' NOTE: Library DATA does not exist'. I am using cloud SAS Studio from SAS OnDemand for Academics on MacOs Mojave version 10.14.6. 

 

My code looks like: 

libname data 'C:\Users\c.rosa\OneDrive\Desktop\SAS\data';

data data.balance;
set sashelp.class;
id_client=_n_;
il=int(ranuni(1)*15)+2;
date=intnx('month',16000+int(ranuni(1)*600),0,'end');
bal=ranuni(1)*1000;
do i=1 to il;
id_account=id_client*1000+i;
date=intnx('month',date,1,'end');
bal=bal+ranuni(1)*500-ranuni(1)*500;
dpd=abs(int(rannor(1)*10));
output;
end;
format date yymmdd10.;
keep name sex id_client id_account date bal dpd;
run;

 

When I run it I get: 

NOTE: Library DATA does not exist

 

I think there is a problem with a path that I cannot reselve.

 

If anyone can give me guidance or other suggestions that would be greatly appreciated.

 

Thank you!

Cezary

1 REPLY 1
Kurt_Bremser
Super User

SAS On Demand runs in the cloud (on a Linux instance) and does not have access to your local drives. You need to use the Upload function of SAS Studio to upload files to the server, and then use the server path (right-click on Folders) to access them.

Similarly for the directories you create for your libraries.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 1 reply
  • 1400 views
  • 1 like
  • 2 in conversation