| Date: | Thu, 16 Jun 2005 16:06:42 -0400 |
| Reply-To: | "Bosch, Jules" <jules.bosch@SPCORP.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Bosch, Jules" <jules.bosch@SPCORP.COM> |
| Subject: | Re: Templates and Proc Report |
|
| Content-Type: | text/plain |
|---|
Solved!
Thanks Mark, it was just as simple as you suggested.
I was helping one of the SAS programmers on our team and he used the
template I sent him (as below). But, he put the "style=mystyle" segment in
the PROC REPORT statement, not the ODS statement. As soon as we switched it
to the ODS statement, it ran okay.
Thanks again, I do appreciate the help.
Jules Bosch
-----Original Message-----
From: Terjeson, Mark (IM&R) [mailto:Mterjeson@russell.com]
Sent: Thursday, June 16, 2005 3:56 PM
To: Bosch, Jules; SAS-L@LISTSERV.UGA.EDU
Subject: RE: Templates and Proc Report
Hi Jules,
The PROC TEMPLATE is outputting.
However, it may not be being used
during the proc report. If wrapped
with and ODS statement, does the
ODS statement have STYLE=mystyle
in it? so that it knows to use it.
Hope this is helpful.
Mark Terjeson
Senior Programmer Analyst, IM&R
Russell Investment Group
Russell
Global Leaders in Multi-Manager Investing
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Bosch, Jules
Sent: Thursday, June 16, 2005 12:49 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Templates and Proc Report
I am modifying a template as shown in the following SAS log -
proc template;
2656 define style mystyle;
2657 parent = styles.rtf;
2658 replace fonts /
2659 'TitleFont2' = ("Times",12pt,Bold Italic)
2660 'TitleFont' = ("Times",13pt,Bold Italic)
2661 'StrongFont' = ("Times",10pt,Bold)
2662 'EmphasisFont' = ("Times",10pt,Italic)
2663 'FixedEmphasisFont' = ("Courier New,
Courier",9pt,Italic)
2664 'FixedStrongFont' = ("Courier New, Courier",9pt,Bold)
2665 'FixedHeadingFont' = ("Courier New, Courier",9pt,Bold)
2666
2667 'BatchFixedFont' = ("Courier New, Courier",9pt) /*
<========== */
2668
2669 'FixedFont' = ("Courier New, Courier",9pt)
2670 'headingEmphasisFont' = ("Times",11pt,Bold Italic)
2671 'headingFont' = ("Times",11pt,Bold)
2672 'docFont' = ("Times",10pt);
2673
2674 replace Body from Document
2675 "Controls the Body file. " /
2676
2677 bottommargin = .4in /* These settings work */
2678 topmargin = .09in
2679 rightmargin = 1in
2680 leftmargin = 1in;
2681
2682 end;
NOTE: Overwriting existing template/link: Mystyle
NOTE: STYLE 'Mystyle' has been saved to: SASUSER.TEMPLAT
2683 run;
NOTE: PROCEDURE TEMPLATE used:
real time 0.02 seconds
cpu time 0.00 seconds
But, later in the program I get the following message in the SAS log
when I run PROC REPORT -
NOTE: Unable to find the "MYSTYLE" style element. Default style
attributes will be used.
NOTE: There were 26 observations read from the data set
MYLIB.FINALRESULTS5.
NOTE: PROCEDURE REPORT used:
real time 0.07 seconds
cpu time 0.03 seconds
Does anyone know hat may be happening here?
TIA,
Jules Bosch
*********************************************************************
This message and any attachments are solely for the intended recipient.
If you are not the intended recipient, disclosure, copying, use or
distribution of the information included in this message is prohibited
-- Please immediately and permanently delete.
*********************************************************************
This message and any attachments are solely for the intended recipient. If you are not the intended recipient, disclosure, copying, use or distribution of the information included in this message is prohibited -- Please immediately and permanently delete.
|