From: jordi on
Hi all,

Consider this construct:

options pageno=1 nodate nonumber nocenter orientation=landscape
noquotelenmax;
goptions reset=all noborder ftext=Simplex htext=4 gunit=pct
device=gif;
ods _all_ close;
ods pdf startpage=never notoc file=whatever.pdf';
ods escapechar="^";

SOME PROC GCHART;
or
SOME PROC GRADAR;

ods pdf close;
ods listing;

My concerns are that if I try to plot the same data without generating
a pdf file, that is, changing the target device to, eg, "activex", my
code runs in a breeze, whereas with the ods pdf construct, it take
ages (as an example: 222 seconds vs 0.9 seconds with the activex).

Looking at the log files, I can see that computing time is not the
problem. Somehow, it seems that it takes a long time to prepare the
actual images of the plots and to save them correctly in my pdf file.

Any help will be much appreciated. There must be something in the form
of goptions to help me dramatically improve the speed of my code
without sacrificing the beauty and positioning power of ods pdf plots.

Thank you very much for your help.
Regards.
From: Ya Huang on
Do you mind try another driver? sasprtc, also change ftext=helvetica.
I don't remember what's the default driver for pdf if no device is
specified. My experience with sasprtc and hardware font is good.

goptions reset=all device sasprtc ftext=helvetica ...

On Tue, 23 Feb 2010 01:16:59 -0800, jordi <jordibracons(a)GMAIL.COM> wrote:

>Hi all,
>
>Consider this construct:
>
> options pageno=1 nodate nonumber nocenter orientation=landscape
>noquotelenmax;
> goptions reset=all noborder ftext=Simplex htext=4 gunit=pct
>device=gif;
> ods _all_ close;
> ods pdf startpage=never notoc file=whatever.pdf';
> ods escapechar="^";
>
> SOME PROC GCHART;
> or
> SOME PROC GRADAR;
>
> ods pdf close;
> ods listing;
>
>My concerns are that if I try to plot the same data without generating
>a pdf file, that is, changing the target device to, eg, "activex", my
>code runs in a breeze, whereas with the ods pdf construct, it take
>ages (as an example: 222 seconds vs 0.9 seconds with the activex).
>
>Looking at the log files, I can see that computing time is not the
>problem. Somehow, it seems that it takes a long time to prepare the
>actual images of the plots and to save them correctly in my pdf file.
>
>Any help will be much appreciated. There must be something in the form
>of goptions to help me dramatically improve the speed of my code
>without sacrificing the beauty and positioning power of ods pdf plots.
>
>Thank you very much for your help.
>Regards.
From: KarlK on
Jordi,
I don't have any insight (sorry), but I'll be interested in what you find
out. I've done a LOT of sas-graph-to-PDF stuff since v8.0, and since
upgrading to v9.2, I find I keep saying to myself, "Gee, this seems to be
taking a long time." Are you using 9.2?

Karl


On Tue, 23 Feb 2010 01:16:59 -0800, jordi <jordibracons(a)GMAIL.COM> wrote:

>Hi all,
>
>Consider this construct:
>
> options pageno=1 nodate nonumber nocenter orientation=landscape
>noquotelenmax;
> goptions reset=all noborder ftext=Simplex htext=4 gunit=pct
>device=gif;
> ods _all_ close;
> ods pdf startpage=never notoc file=whatever.pdf';
> ods escapechar="^";
>
> SOME PROC GCHART;
> or
> SOME PROC GRADAR;
>
> ods pdf close;
> ods listing;
>
>My concerns are that if I try to plot the same data without generating
>a pdf file, that is, changing the target device to, eg, "activex", my
>code runs in a breeze, whereas with the ods pdf construct, it take
>ages (as an example: 222 seconds vs 0.9 seconds with the activex).
>
>Looking at the log files, I can see that computing time is not the
>problem. Somehow, it seems that it takes a long time to prepare the
>actual images of the plots and to save them correctly in my pdf file.
>
>Any help will be much appreciated. There must be something in the form
>of goptions to help me dramatically improve the speed of my code
>without sacrificing the beauty and positioning power of ods pdf plots.
>
>Thank you very much for your help.
>Regards.
From: jordi on
On Feb 23, 6:25 pm, karlstud...(a)HOTMAIL.COM (KarlK) wrote:
> Jordi,
> I don't have any insight (sorry), but I'll be interested in what you find
> out. I've done a LOT of sas-graph-to-PDF stuff since v8.0, and since
> upgrading to v9.2, I find I keep saying to myself, "Gee, this seems to be
> taking a long time." Are you using 9.2?
>
> Karl
>
>
>
> On Tue, 23 Feb 2010 01:16:59 -0800, jordi <jordibrac...(a)GMAIL.COM> wrote:
> >Hi all,
>
> >Consider this construct:
>
> >   options pageno=1 nodate nonumber nocenter orientation=landscape
> >noquotelenmax;
> >   goptions reset=all noborder ftext=Simplex htext=4 gunit=pct
> >device=gif;
> >   ods _all_ close;
> >   ods pdf startpage=never notoc file=whatever.pdf';
> >   ods escapechar="^";
>
> >      SOME PROC GCHART;
> >      or
> >      SOME PROC GRADAR;
>
> >   ods pdf close;
> >   ods listing;
>
> >My concerns are that if I try to plot the same data without generating
> >a pdf file, that is, changing the target device to, eg, "activex", my
> >code runs in a breeze, whereas with the ods pdf construct, it take
> >ages (as an example: 222 seconds vs 0.9 seconds with the activex).
>
> >Looking at the log files, I can see that computing time is not the
> >problem. Somehow, it seems that it takes a long time to prepare the
> >actual images of the plots and to save them correctly in my pdf file.
>
> >Any help will be much appreciated. There must be something in the form
> >of goptions to help me dramatically improve the speed of my code
> >without sacrificing the beauty and positioning power of ods pdf plots.
>
> >Thank you very much for your help.
> >Regards.- Hide quoted text -
>
> - Show quoted text -

KarlK,

I am using v9.1.

What I found out, thanks to Ya Huang, is that changing from
"device=gif" to "device=sasprtc" in my goptions declaration greatly
reduces performance time.

As an example, here is what it takes for a piece of code containing
one PROC GCHART and one PROC GRADAR together with some PROC TABULATE
and a DATA STEP:

* with "device=gif": 223.19 seconds
* with "device=sasprtc": 0.81 seconds

Why, I do not know I.
Hope this can help you as well.

Jordi.


From: Sigurd Hermansen on
SAS V9.2 embeds fonts in pdf's. We have observed larger pdf's and situations in which earlier versions of the Acrobat Reader balk at opening a pdf. Advising sites opening pdf's from Internet Explorer to upgrade to the latest version of the Acrobat Reader solved the latter problem. ODS options may help with slow construction of pdf's in specific situations.
S

-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L(a)LISTSERV.UGA.EDU] On Behalf Of jordi
Sent: Tuesday, February 23, 2010 4:17 AM
To: SAS-L(a)LISTSERV.UGA.EDU
Subject: ods pdf speed performance issues

Hi all,

Consider this construct:

options pageno=1 nodate nonumber nocenter orientation=landscape
noquotelenmax;
goptions reset=all noborder ftext=Simplex htext=4 gunit=pct
device=gif;
ods _all_ close;
ods pdf startpage=never notoc file=whatever.pdf';
ods escapechar="^";

SOME PROC GCHART;
or
SOME PROC GRADAR;

ods pdf close;
ods listing;

My concerns are that if I try to plot the same data without generating
a pdf file, that is, changing the target device to, eg, "activex", my
code runs in a breeze, whereas with the ods pdf construct, it take
ages (as an example: 222 seconds vs 0.9 seconds with the activex).

Looking at the log files, I can see that computing time is not the
problem. Somehow, it seems that it takes a long time to prepare the
actual images of the plots and to save them correctly in my pdf file.

Any help will be much appreciated. There must be something in the form
of goptions to help me dramatically improve the speed of my code
without sacrificing the beauty and positioning power of ods pdf plots.

Thank you very much for your help.
Regards.
 |  Next  |  Last
Pages: 1 2
Prev: Multicollinearity problem
Next: Wald chi-square