BookmarkSubscribeRSS Feed
thanikondharish
Calcite | Level 5

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

--------

--------

4 REPLIES 4
PaigeMiller
Diamond | Level 26

Run PROC REPORT on variables col1-col5, and then another PROC REPORT on variables col6-col10.

--
Paige Miller
PaigeMiller
Diamond | Level 26

@thanikondharish wrote:
Variables should be continued

I don't understand this

--
Paige Miller

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!

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
  • 4 replies
  • 638 views
  • 2 likes
  • 3 in conversation