BookmarkSubscribeRSS Feed
rickpaulos
Obsidian | Level 7

Same program I've run before (months ago),  this time with a smaller input data set. All works fine until the final Proc Export.

Instant crash.  No messages, no log to read, SAS just gone.

SAS Temporary Files still in place in the designated work folder.

I tried using the Export Data wizard in the menus and got the same crash.

I tried a different target drive and a short filename x.xlsx, same crash.  I have access rights to the folders.

restarted the computer. tried again. Same crash.

the data set isn't very large: The data set WORK.CONSENTEDAGED has 7830 observations and 51 variables

 

Windows 10 Education 64 bit version 20H2  build 19042.1110

SAS  9.4 TS level 1M6 X64_10Pro  platform.

 

My proc export code:

PROC EXPORT
DATA = consentedAged
OUTFILE = "c:\temp\x.xlsx"
DBMS = EXCEL
LABEL
REPLACE;
SHEET = "Crouter";
RUN;

 

Using the Wizard SAS crashes when I click on okay to create the xlsx file. 

The target file (x.xlsx) is created (9kb) but is empty. 

The sheet name is A266FF2A662E84b639DA not Crouter

 

Submitting the code above creates an identical empty file.

 

Any suggestions? 

Is there a way to capture any error message as sas is crashing?

 

 

6 REPLIES 6
SASKiwi
PROC Star

Does PROC EXPORT fail for ANY SAS dataset or just the one you are having problems with?

 

Try one of the SASHELP datasets like CLASS. Are there any errors in the SAS log? If so please post them.

 

Try also DBMS = XLSX - same behaviour? 

zhanghaipo
Fluorite | Level 6

DBMS = xlsx,try

ChrisNZ
Tourmaline | Level 20

This looks like a defect. I'd try isolating the record(s) and even the variable(s) whose values cause the defect.

I'd then contact Tech Support to ask them the replicate the problem using your data.

andreas_lds
Jade | Level 19

If the crash occurs for all datasets, even sashelp.class, than you should check if a hotfix exists. Instead of searching manually, using SAS Hot Fix Analysis, Download and Deployment Tool is recommended.

Alan68022
Fluorite | Level 6

I had the same problem. Using DBMS=XLSX worked for me. Thanks!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 6 replies
  • 2654 views
  • 2 likes
  • 7 in conversation