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;

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!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1790 views
  • 0 likes
  • 3 in conversation