BookmarkSubscribeRSS Feed
ivarenho
Fluorite | Level 6

My previous post relating to my issue with this activity related to the library error which I was able to fix! Now I'm having a different issue.

 

This is the warning: 

proc export data=pg1.storm_final
74 outfile="&outpath/storm_final.csv"
WARNING: Apparent symbolic reference OUTPATH not resolved.
75 dbms=csv replace;
76 run;

 

I also have an error: 

 

ERROR: Physical file does not exist, C:\Users\learnsas-16391\&outpath\storm_final.csv.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 1 observations read from the data set PG1.STORM_FINAL.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds

1 REPLY 1
Quentin
Super User

Immediately prior to this question, there is a prior activity "Create a Macro Variable (Required)".  That step has the instructions for creating the macro variable &outpath.

 

As mentioned there in one of the options, you will need write access to this directory.  If you don't know where you have write access, you could use:

%let outpath = %sysfunc(pathname(work));

That will write your output files to the temporary work directory used by your SAS session.

The Boston Area SAS Users Group is hosting free webinars!

Register now at https://www.basug.org/events.

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
  • 1 reply
  • 62 views
  • 0 likes
  • 2 in conversation