Hi all,
Does anyone know if SAS has the capability to export an excel file that will have the shared option applied to it so that multiple users can open the same excel file and edit it.
I'm using SAS EG 7.12
The code I use to export is
proc export data = GCR.QA_21days_report_&LAST_FRI_STAMP. dbms=xlsx
outfile = "&output_path_21.\21_DAYS_REPORT_&LAST_FRI_STAMP..xlsx"
replace;
run;
Unfortunately not. This is an Excel limitation not a SAS one. Excel is after all a single-user tool. Try opening a spreadsheet that someone else or some other process has open and it automatically switches to read-only. No SAS involved.
Thanks for your response however it's not an Excel limitation. If you look at my attached screenshot you can see that in Excel can share the file by doing the following steps.
Click on Review->Share Workbook->Tick the box next to 'Allow changes by more than one user at the same time. This also allows workbook merging'
I don't expect SAS to be able to create such a workbook but I would expect that SAS doesn't change the properties on a pre-existing workbook when creating/replacing a sheet in the workbook. BUT... you must be sure that no one has the workbook open when SAS is trying to access it as this will most likely not work.
And what I found in the Excel help of my Excel version:
We've tried co-authoring with Excels in SharePoint. After people have lost their changes more than once we've stopped using this feature.
Don't see the screenshot but I've found the option in Excel 365. There is no way to set this up from SAS. You would have to set it up manually yourself.
I agree with @Patrick that this is unlikely to work reliably with SAS. If you want to have SAS users reliably updating the same tables at the same time use a database designed for transaction processing like SQL Server or Oracle.
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!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.