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

Hello

I have 3 data sets and I want to put them in XLSX file.

The issue is that I don't want to save the XLSX files in my computer .

I want that the XLSX files will be shown in SAS screen(process flow screen) and then I will mark them and make copy and paste them in the location that I want.

What is the way to do it please?

Let's say that the 3 data sets that I want to create in XLSX are:

SASHELP.cars

SASHELP.class

SASHELP.baseball

 

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

I have no idea how to deal with "work flows" but if you want to write a xlsx file to the WORK directory then just write the code that way.

 

proc export dbms=xlsx data=sashelp.class
  file="%sysfunc(pathname(work))/class.xlsx" replace
;
run;

If you want to download files in Enterprise Guide then I think there is a separate TASK that you can use for that.

View solution in original post

5 REPLIES 5
Tom
Super User Tom
Super User

Your question does make any sense.  If you want SAS to write an XLSX file then the file will be written on the machine where SAS runs.  The files have nothing to do with what is on your screen, unless your screen is showing you the files that you have written.

Ronein
Meteorite | Level 14

Excatly! I want that the XLSX file will be written on the machine where SAS runs.

For example: I want to save data set cars in XLSX file that will be written on SAS .

May you please show how to do it please?

Data cars;
set sashelp.cars;
Run;
Tom
Super User Tom
Super User

I have no idea how to deal with "work flows" but if you want to write a xlsx file to the WORK directory then just write the code that way.

 

proc export dbms=xlsx data=sashelp.class
  file="%sysfunc(pathname(work))/class.xlsx" replace
;
run;

If you want to download files in Enterprise Guide then I think there is a separate TASK that you can use for that.

andreas_lds
Jade | Level 19

Afaik this is not possible in the "sas screens" i am more or less familiar with: Enterprise Guide, SAS Studio and Display Manager.

It is difficult to suggest a solution without knowing the complete process.

Ronein
Meteorite | Level 14

 I will try to explain again,

I want to put the data set in XLSX file .

I dont want to save the XLSX file .

I want that the XLSX file will be in work library (or similar temporary library)

It means that when sas session end then the XLSX file will not be saved

The XLSX file should be seen in process flow and from there I can copy it (right click and copy) and paste it in any location that I want 

Ronein_0-1648467566030.png

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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
  • 5 replies
  • 624 views
  • 1 like
  • 3 in conversation