The SAS Output Delivery System and reporting techniques

9.2 pdf printing

Reply
Contributor
Posts: 21

9.2 pdf printing

Has there been any changes for pagebreaks on ods pdf printing?
I have tried following code with 9.2, but all I can get is one paper with two letter s's two rows apart.. On 9.1 it produced pdf document with three pages.

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

ods pdf text ='s';
ods pdf text = '(*ESC*)4P';
ods pdf startpage=now;
ods pdf text ='s';
ods pdf close;

Defining layout doesn't help either... Message was edited by: Virpi
SAS Super FREQ
Posts: 8,740

Re: 9.2 pdf printing

Hi:
The Escapechar+4P was an experimental feature of the original way that ODS ESCAPECHAR worked. I don't know whether that feature was implemented the same way in 9.2 as it was implemented in earlier releases of SAS. Especially when combined with the STARTPAGE= option.

You will probably get a definitive answer by opening a track with Tech Support on this one.

cynthia
Contributor
Posts: 21

Re: 9.2 pdf printing

OK,
It seems that
ods pdf startpage=page_now;
will create a pagebreak in pdf.
But it also seems that all the defintions for pdf have changed, when printing a data there will be different number of rows on a page than before.
SAS Super FREQ
Posts: 8,740

Re: 9.2 pdf printing

Hi:
I have not observed that behavior (different number of rows per page) -- however, with PDF, the number of rows per page is dependent on several factors -- such as font size, cell padding, margins, papersize, orientation, style template being used, etc.

If you have a job that produces a certain number of rows per page in SAS 9.1.3 and you have that same -unchanged- job that produces a different number of rows per page in SAS 9.2, then you might want to open a track with Tech Support so they can help you determine how to get the same results as you got previously. It may be as simple as changing a style template, changing margins or changing cell padding.

cynthia
Contributor
Posts: 21

Re: 9.2 pdf printing

Actually I had my own style template (not inherited, but modified from printer) and fixed row heights with 1.5 pt, papersizes, orientation, margins, all defined on the code but the report on 9.2 was 4-5mm lower and more right than with 9.1 and there were 3 rows less on 9.2 report than on 9.1 report. Also all the columns were shifted.

Changing row heights to 1.0 pt helped to get all the rows required on one page, but there is much more to be done before all thise reports look like they did on 9.1..

I have a track now open.
Ask a Question
Discussion stats
  • 4 replies
  • 175 views
  • 0 likes
  • 2 in conversation