BookmarkSubscribeRSS Feed
chennupriya
Quartz | Level 8

Hi

I have 4 sas datasets ab bc ca db

 

and i have to export to excel so that te excel workbook has 4 sheets ab bc ca and i need to share the excel file to the share point location

as i dont have PC SAS and my SAS is on Citrix (Remote SAS )

 

 

can anyone pls help

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Hi,

 

Wel, there are two separate questions there.

1)  Create a spreadsheet with the four tabs.

For this, what version of SAS do you have?  If before 9.4 then your best bet is to use tagsets.excelxp:

ods tagsets.excelxp file="c:\test.xml" options(sheet_name="A");
proc report...;
run;

ods tagsets.excel options(sheet_name="B");
proc report...;
run;

...

ods tagsets.excelxp close;

Now this creates a file with the extension .XML, which it should as the output is not native Excel file, but XML which can be opened in Excel.  So your users would have to remember that -  you could change to XLSX, but that just adds confusion and you will get a box open in Excel for it.

Now if you have 9.4, you can write out native XLSX files, with the libname excel statement:

http://www2.sas.com/proceedings/sugi31/024-31.pdf

 

2) Upload the documents to Sharepoint.  

For this, you will need your IT group.  First you have to have the UNC to the area on Sharepoint you want to upload to.  You then need the SAS install to have the access rights to do such an operation.  Then you should just be able to use that UNC in your file statement:

ods tagsets.excelxp file="//unctosharepoint/folder/somewher"...;

 

chennupriya
Quartz | Level 8

Hi,

I have to check whether i have access to create excel file in share point . So can we export sas datasets from SAS EG which is on remote server (accessing sas from citrix link )

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 2 replies
  • 956 views
  • 0 likes
  • 2 in conversation