BookmarkSubscribeRSS Feed
little_fish
Calcite | Level 5

Hi,

 

   I have a question, when I try to use ODS rtf and Proc report, if there are two many columns, like col1-col12,  if the page would be only for 6 columns. page 1 would have column1-column6,  page 2 still coulmn1-coulmn6,  … until all the column 1-column 6 print out; it would begin to print coulmn7-column12.

 

   it would not like ODS listing output,  page 1 would have column1--column6,  page 2 column7---cloumn12,  page3 column1----column6, page4 column7---column12.... etc.

 

    how do I create the output in ODS RTF, like the ODS listing for tables with many columns.

 

example:

 

ods listing close;

options orientation=portrait center topmargin=.25in;

ods rtf file='test.rtf' ;

title "ID specified on Date variable";

title2 "PAGE specified on Price7 variable";

proc report data=sashelp.pricedata(obs=30) nowd;

column date price1-price12;

define date / order id;

define price7 / page;

run;

ods rtf close;

ods listing;

 

    

1 REPLY 1
unison
Lapis Lazuli | Level 10

Hi little_fish,

 

I'd recommend taking a look at this paper: https://www.pharmasug.org/proceedings/2018/QT/PharmaSUG-2018-QT01.pdf

It outlines a method to utilize Microsoft word to help determine line breaks for better pagination than ods rtf provides.

 

-unison

-unison

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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