BookmarkSubscribeRSS Feed
Easybeat
Fluorite | Level 6
Hello!
I’ve got quite big proc tabulate report on 90 pages. I need to print it out on PDF, but only the first page. How do I do it?
2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi:
When you use Adobe Reader to open the PDF file that was created by ODS, why can't you only print page 1 to your printer. Otherwise I'm not clear on what you mean when you say I need to "print it out on PDF". A PDF file is a proprietary file format for Adobe Acrobat "Portable Document Format" files. When you direct your PROC TABULATE output to ODS PDF, all of your TABULATE output will go into the PDF file. PROC TABULATE doesn't really have physical pages. PROC TABULATE sends output to RTF and PDF and those destination viewers have physical pages that you can print. But once you open the file, you are operating with the applications interface (in this case, either Word or Acrobat and their interface to the printer).

Is there a way to cut your TABULATE down into multiple steps so that the first step produces only page 1? Or do you need for all of your output to be created by TABULATE and then you only want to open the first page? That's what is not clear to me about your statement. ODS DOCUMENT might work for you here, but that seems overkill for something that the Acrobat Reader interface can do with a PDF file quite easily, as shown below:

Cynthia_sas_0-1626399302039.png

 

 This is a PDF file created with PROC TABULATE and ODS. I only created a report with 15 pages, but it really doesn't matter whether I created 15 or 90 pages since Acrobat Reader allows me to print only the first page.
Cynthia

sanildiv0
Calcite | Level 5

Check how many records you are able to see on 1st page of your PDF or how many records you want in your PDF. 

options obs=15;

 Use option obs to limit the number of observations to be printed on output page.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 755 views
  • 0 likes
  • 3 in conversation