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

Helo. I am having problems with this programme

proc export data=pg1.storm_final
outfile="&outpath/storm_final.csv"
dbms=csv replace;
run;

Says

ERROR: Export unsuccessful. See SAS Log for details.

 How do I go about this?

1 ACCEPTED SOLUTION

Accepted Solutions
yabwon
Amethyst | Level 16

Hi,

 

there is big chance you don't have write permission on a server to "/opt/sasinside/SASConfig/Lev1/SASApp" folder.

 

If I may suggest, try to change path to the file you want to create to something like: "~/storm_final.csv" for the beginning, to test if you can create it in your home directory.

 

The second thing is that since log says: "Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/&outpath/storm_final.csv." it looks like macro variable &outpath didn't resolve properly, try to check if following results with proper path:

 

%put *&outpath*;

 

Let us know if it helped?

 

all the best

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



View solution in original post

4 REPLIES 4
gamotte
Rhodochrosite | Level 12

Did you look at the SAS Log as suggsted ?

 

What does it say ?

Adekemi
Calcite | Level 5
Yes. It reads
0 records created in &outpath/storm_final.csv from PG1.STORM_FINAL.
And also:
ERROR: Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/&outpath/storm_final.csv.
Reeza
Super User

Your macro variable &outpath isn't set up correctly. Ensure that the macro variable is created and points to the directory you want it to.

 


@Adekemi wrote:
Yes. It reads
0 records created in &outpath/storm_final.csv from PG1.STORM_FINAL.
And also:
ERROR: Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/&outpath/storm_final.csv.

 

yabwon
Amethyst | Level 16

Hi,

 

there is big chance you don't have write permission on a server to "/opt/sasinside/SASConfig/Lev1/SASApp" folder.

 

If I may suggest, try to change path to the file you want to create to something like: "~/storm_final.csv" for the beginning, to test if you can create it in your home directory.

 

The second thing is that since log says: "Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/&outpath/storm_final.csv." it looks like macro variable &outpath didn't resolve properly, try to check if following results with proper path:

 

%put *&outpath*;

 

Let us know if it helped?

 

all the best

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



hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register 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
  • 4 replies
  • 3426 views
  • 0 likes
  • 4 in conversation