BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am producing a report that I am exporting to a word document through SAS using the following opening code:

options papersize=A4 orientation=landscape;
goptions reset=all device=jpeg;

ods rtf file ='/user01/ucollrec/Alan/rtfexample.rtf' columns=2;

I then produce a half dozen tables that are not very large and so don't take up much space but the output will have the first 2 tables on one page side by side and then a lot of blank space underneath where the other tables could go but SAS puts them to a new page.

I have tried startpage=no but this doesn't have any effect.

Any suggestions would be much appreciated.

Thanks
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
I'm not sure that columns and startpage really work the way you want (to place multiple tables on the same "page" when Word opens the RTF file).

If you wanted PDF, I would recommend that you investigate ODS LAYOUT and ODS REGION -- but I do not believe that ODS RTF supports those. But, for a look at what ODS LAYOUT can do, look at Exhibit 7 in this paper:
http://www.pnwsug.org/Conference_2005/Proceedings/Papers/Pete%20Lund%20-%20PDF%20Can%20be%20Pretty%2...

Another thing to try is to use the HTMLPANEL tagset to create an HTML file using LAYOUT and REGIONS and PANELS and then to open the HTML page with Microsoft Word. However, in this scenario, you would have to use Word to insert page breaks and adjust the tables accordingly. The HTMLPANEL tagset is described here:
http://support.sas.com/rnd/base/ods/odsmarkup/htmlpanel.html

cynthia

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
  • 1 reply
  • 639 views
  • 0 likes
  • 2 in conversation