BookmarkSubscribeRSS Feed
Illodolaio
Calcite | Level 5

Hello, I have a problem using ODS PDF with PROC TABULATE.

If the output of the PROC TABULATE has displayed in more than one page, the first row of the report has repeated in every page of the output.

What can I do to solve this problem ?

Thanks

1 REPLY 1
Cynthia_sas
SAS Super FREQ

HI, without seeing some code and/or, data, it is hard to guess what you are describing. When I try this with PROC TABULATE  I get 15 pages of output in my PDF file. The header does repeat across pages (MAKE, MODEL, TYPE, etc.), but that is to be expected. Can you explain exactly what you mean by the "first row of the report has repeated on every page"?

cynthia

ods listing close;

ods pdf file='c:\temp\longtabforum.pdf';

  proc tabulate data=sashelp.cars f=comma9.;

    title '1) multi-page table';

    class make model type origin;

    var mpg_city mpg_highway;

    table  make*model*type*origin,

           mpg_city*mean mpg_highway*mean;

  run;

    

ods pdf close;

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