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

Hello!

We have just installed SAS VIYA, including SAS Studio module but we were used to use SAS9.x, and so it seems that we are not able to use anymore some PROC, expecially the PROC Export. Indeed we try to export .csv files with a | delimiter with the following code (from SAS snippets)
proc export data=WORK.FINAL
outfile="\Public\SAS Validation Tests\TEST #7\final1.csv"
dbms=csv
replace;
delimiter="|";
run;*/

But either we have an error like "file doesn't physically exist" or the file is created as per log but we can't find the file at the location we defined within the SAS server... (We do not want to export it localy but in the server).
Does any one would like to kindly help us?

Many thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Clém
Calcite | Level 5

Thanks @Cynthia_sas and @Kurt_Bremser for your answers.

 

For information we finally succeed with this type of code, including FILESRVC:

FILENAME REFFILE FILESRVC FOLDERPATH='/Public/tests' FILENAME='final1.csv';
proc export data=WORK.FINAL
outfile=REFFILE
dbms=csv
replace;
delimiter="|";
run;

View solution in original post

3 REPLIES 3
Cynthia_sas
SAS Super FREQ
Hi:
My recommendation would be to work with Tech Support on this. They would need more information about your SAS Viya installation and connected drives and permissions to help you with this question. To open a track with Tech Support, fill out the form at this link: http://support.sas.com/ctx/supportform/createForm .

Cynthia
Kurt_Bremser
Super User

The CAS backend of Viya runs on Linux, so you canno use backslashes in path names. Also keep in mind that CAS uses its own clustered file storage, which is not like a physical filesystem.

Clém
Calcite | Level 5

Thanks @Cynthia_sas and @Kurt_Bremser for your answers.

 

For information we finally succeed with this type of code, including FILESRVC:

FILENAME REFFILE FILESRVC FOLDERPATH='/Public/tests' FILENAME='final1.csv';
proc export data=WORK.FINAL
outfile=REFFILE
dbms=csv
replace;
delimiter="|";
run;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 3 replies
  • 2077 views
  • 0 likes
  • 3 in conversation