BookmarkSubscribeRSS Feed
PTD_SAS
Obsidian | Level 7

I run 64 bit SAS 9.4 M2 on Windows 7 and using PROC EXPORT with EXCELCS engine to export to 32 bit Excel. SAS PC Files service is installed. The workbook I export to has multiple sheets and has xlsb format. I have installed the correct version of PC Files Server to match the bits and SAS version. The problem I have is everything runs fine under my own account but the program hangs without errors under another account we have to run SAS batch jobs. Both accounts have administrator privileges. It's very puzzling, it looks like the cause may be some differences in the account properties/attributes? Would anyone be able to help?

Thanks.

8 REPLIES 8
Kurt_Bremser
Super User

Try to use ODS TAGSETS.EXCELXP to create Excel-readable .xml files.

- no 32/64 bit problems

- only Base SAS needed (no PC Files Server)

- will run on ANY platform

This should alleviate all problems arising from different configurations/privileges of the accounts involved

On top of this:

- can do report formatting (PROC EXPORT only delivers data)

PTD_SAS
Obsidian | Level 7

Kurt,

Thanks for that. Would you have any example code using tagsets for Excel? Just in case, because I'm not familiar with this. Thanks!

SASKiwi
PROC Star

Here's a simple test:

ods tagsets.excelxp file="\MyDir\class.xml"

proc report data = sashelp.class nowd missing;

run;

ods tagsets.excelxp close;

PTD_SAS
Obsidian | Level 7

Thanks!

Reeza
Super User

Does it run fine in batch under your own account?

PTD_SAS
Obsidian | Level 7

Yes, it runs fine under my own account in batch or interactively. It's the other account we have specifically for batch jobs that is giving the problem. The workbook has quite a few sheets but I wouldnt think that would be a problem.

PTD_SAS
Obsidian | Level 7

Yes, I think this is the most likely cause. I asked our IT department to compare the properties of the 2 accounts.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 8 replies
  • 1819 views
  • 6 likes
  • 4 in conversation