BookmarkSubscribeRSS Feed
candidalisa
Calcite | Level 5

Hello,

 

I am new to SAS using SAS on demand for academics. I am completing module 6 of essentials of sas programming 1 and its asking to open and modify libname.sas. I cannot find that in the list of files. I am not able to write in the output folder. please help.

5 REPLIES 5
yabwon
Onyx | Level 15

Usually it is located inside the zip file with the course data and code which you download from the course webpage.

 

All the bets

Bart

 

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



candidalisa
Calcite | Level 5

Hi Bart, 

 

there is only two files there: createdata.sas for set up and setup.sas. Do you think it is the setup.sas codes?

 

Kind regards,

Candida

yabwon
Onyx | Level 15
what is the content of setup.sas?

Bart
_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



candidalisa
Calcite | Level 5

libname PG1 "&path";

%include "&path/_1create_class.sas";
%include "&path/_2create_natpark.sas";
%include "&path/_3create_storm.sas";

proc contents data=pg1._all_ nods;
run;

 

this is the required exercise I am trying to do

 

Follow the instructions for your software to create a macro variable that stores the location for output files.

SAS Studio

 

  • In your EPG194 folder, open libname.sas.

  • Create a macro variable named outpath that stores the filepath to your EPG194/output folder:

 

 

%let outpath=filepath-to-output-folder; 
  1. Run the code.

  2. Check the log to be sure there are no errors, then save and close the program.
yabwon
Onyx | Level 15
Please check to what library data sets created in the `%include "&path/_1create_class.sas";` code refers? If it is PG1 then the `libname PG1 "&path";` in setup.sas may be the one you are looking for.

Bart
_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 5 replies
  • 599 views
  • 1 like
  • 2 in conversation