BookmarkSubscribeRSS Feed
Kastchei
Pyrite | Level 9

Hello!

I was wondering if anyone has a solution to the following error.  I have a dataset that needs to be output to RTF or PDF.  It has nearly 600k obs, but only 8 variables.  If I output with ODS PDF or ODS RTF and do not specify the columns= option, the files output fine.  Very little RAM is used in the process (~100,000K).  The resulting files are huge (over 17k pages), but they open fine.

However, when I add columns = 2 to the ODS statement, SAS rapidly consumes all available RAM on my computer (over 2,000,000k free RAM) and errors out giving the following message:

ERROR: The SAS System stopped processing this step because of insufficient memory.

If I limit my data to outputting just 2 of the 8 variables, it also rapidly consumes memory, but is able to finish before running out.  Likewise, if I only output about 150k obs, it will also finish.  Clearly, there is a problem with specifying multiple columns per page.  Under these conditions, my computer simply isn't big enough to accommodate the request.  Are there any options to help mitigate this?

Thanks!

2 REPLIES 2
ballardw
Super User

Have tried taking and RTF version where the table is in a single column and used a word processor to make it into 2 columns? Did that take a long time?

Does the final order of the records matter? It looks like you may just be trying to same space on printing.

How are you currently creating the output?

Turn off the HTML output ( ODS HTML CLOSE) as that is trying to make a large table in memory as well.

Kastchei
Pyrite | Level 9

Thanks for the suggestions.  It turns out the the RTF version with columns = 1 also eats up too much memory.  The only one that works is PDF with columns = 1.  PDF columns = 2, RTF 1 and RTF 2, all run into memory issues.  I opened up a track with support to investigate.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 1400 views
  • 0 likes
  • 2 in conversation