I have 10 variables like col1,col2,col3......col10;
I have print 5 variables in first page and next 5 variables in second rtf page by using proc report
I wrote code like...
ods rtf file='path' ;
proc report data=have ;
columns col1 col2..... col10;
define col1/id ;
run;
ods rtf close;
For your ref:
first page:
col1 col2 col3 col4 col5
--------
----------
second page:
col1 col6 col7 col8 col9 col10
--------
--------
Run PROC REPORT on variables col1-col5, and then another PROC REPORT on variables col6-col10.
Look at the documentation for the DEFINE statement. PAGE.
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.