BookmarkSubscribeRSS Feed
dxiao2017
Lapis Lazuli | Level 10

Hi @ivarenho , several of your posts are about the libname and &outpath problems. To solve these issues:

 

1) always add these two lines of code before you use a libname or a &outpath macro. These two lines of code are to define the libname and the &outpath macro. Without these two lines of code, SAS do not know where (or which folder) to locate the file and do not know how to resolve the &outpath macro. Please read @Cynthia_sas 's answer and understand this issue.

libname pg1 "S:/workshop/EPG1V2/data";
%let outpath=s:/workshop/output;

2) when you use the already defined libname and &outpath macro, make sure you specify the file location correctly with correct syntax to resolve the macro. You cannot only put an ampersand & without the macro name. The correct code and syntax is as follows, for example: 

ods powerpoint file="&outpath/pressure.pptx" 
               style=powerpointlight;

 

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 15 replies
  • 516 views
  • 1 like
  • 5 in conversation