ODS and Base Reporting

Build reports by using ODS to create HTML, PDF, RTF, Excel, text reports and more!
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1144 views
  • 3 likes
  • 4 in conversation