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;
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.