BookmarkSubscribeRSS Feed
SergeLukas
Calcite | Level 5

Greetings!

 

We're working on SAS server and recently encountered a weird issue. Our reports are written to Excel files using ODS EXCEL statement. All worked well for a while, but a couple of days ago it started crashing. When the program submits ODS EXCEL statement (with a valid FILE= destination) the log gets the message: "ERROR: An exception has been encountered" and then "ERROR: Read Access Violation Program" (see below). That happens to ODS EXCEL only, PROC EXPORT to Excel or ODS PDF/LISTING work fine. 

 

Is anyone familiar with that issue?

 

Thanks a lot!

 

 

{FF9D2B9A-C0B1-40C6-8C25-734B0471C8E2}.png

3 REPLIES 3
PaigeMiller
Diamond | Level 26

Typically, when it says "Please contact technical support", that is what you should do.

--
Paige Miller
data_null__
Jade | Level 19

I'm guessing as you said it had worked and that you did not show log above, that you are out of memory.   Show entire log related to the PROC REPORT call.

 

I have had similar not related to memory but I was doing something crazy.  

ballardw
Super User

Proc Export and ODS Excel are entirely different beasts. Export moves data, that is all. ODS EXCEL has to deal with the data, table formatting of cells, merged cells, borders, images for procedure producing plots, and pagination (sheets in Excel).

 

As a minimum you should include the code that throws this error starting with the ODS Excel statement to the Ods Excel close. Better would be to include some example data.

 

Some of these exception errors happen when you use an option incorrectly or sometimes unexpected interaction of some options that the SAS developers never thought someone would use together. With the code we might have a chance of pointing to likely places such as many style overrides that possibly conflict.

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
  • 3 replies
  • 530 views
  • 3 likes
  • 4 in conversation