BookmarkSubscribeRSS Feed
tianerhu
Pyrite | Level 9
data example_data;
  input category $ description $ amount;
  datalines;
A Product1 100
B Product2 150
C Product32 00
;
run;

ods rtf file='C/report_F.rtf';

proc report data=example_data split='|'
  style=[outputwidth=100%]
  style(header)=[just=c backgroundcolor=black bordertopcolor=black
  borderbottomcolor=white background=_undef_]
  style(report)=[bordertopcolor=white borderbottomcolor=white];

  columns category description amount;

  define category / order;
  define description / "Description" style(column)=[just=l cellwidth=50%];
  define amount / "Amount" style(column)=[just=l cellwidth=30%];

run;

ods rtf close;
2 REPLIES 2
Tom
Super User Tom
Super User

Your example has neither / nor , so it does not actually provide a test.

 

Are you talking about how to wrap text in a cell when writing to an ODS output destination instead of just created a normal fixed width text output of the normal LISTING (Output Window) output?  I am not sure if ODS uses the SPLIT= option.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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