Thank you so much for comments.
The reason for my two postings is that I am trying to find a way to get the
correct pdf file. I used to save the output to pdf file from output window
via selecting print to pdf file from the menu manually in v8.0. But I don't
think it is a good idea since I have dozens of report to do. So I suggested
my manager to update to v8.2 so that I could use ods pdf to do it in
program. First I just try to add a proc template to do it instead of
bothering me to modify my previous codes of proc reports, but I couldn't
find a way to control line breaks. So I tried to copy the exactly output
from listing output window to a data set with only one long string variable
and then print it out to a pdf file to avoid the line breaks problem. But a
new problem emerged which I posted in my second posting.
Thanks for your reply that "style=[asis=yes]" did work though it is not very
aligned in column. I will find why later.
Regarding the split, I review proc report doc that it said without ods proc
report statement option of split work both header and column, but with ods
it does only in header. I doubt it works on columns because in my pdf file
it works on headers but doesn't on columns. So until now I still don't know
how to break lines in columns. Anyway, it is not urgent for me to deal with
it since I found a way to achieve my goal via your help.
I am not quite understand that "proc report does not accept modification of
template style table". Maybe I should look those examples via ods&report.
"WIELKI Andre" <wielki@INED.FR> wrote in message
> -define lstr / style=[asis=yes]; now what happens to your line
> - in which height is your font defined because 192 positions for a line
> is high and more your have margins...
> try first without a template or based later upon the pdf template not the
> printer template
> but remember style must go into your report code...
> -does split really not work ?
> find solutions for your output progressively:not all the problems
> At 13:32 05/01/2003 +0000, you wrote:
> >Dear all,
> >I am experiencing output trouble with ODS PRINTER PDF and PROC REPORT. In
> >output window the output is perfect but it is not in the pdf. All the
> >previous blank spaces of vaules of variable are cut off in the pdf file.
> >e.g. variable lstr has value ' title xxxxx', in output window,
> >variable lstr display ' title xxxxx', but in the pdf file it
> >display 'title xxxxx', all the previous blank spaces are cut off. I don't
> >why. Could someone help me here? Any suggestions are warmly welcome.
> >By the way, it seems that PS LS options in PROC REPORT have no effect on
> >file too and page break neither.
> >options orientation=landscape papersize='ISO A4' DUPLEX NOCOLORPRINTING
> > LEFTMARGIN=0.25 RIGHTMARGIN=0.25 TOPMARGIN=0.25
> > linesize=192 pagesize=55
> > ;
> >%MACRO printerpdf;
> >PROC TEMPLATE;
> > DEFINE Style styles.pdflisting;
> > parent = styles.Printer;
> > replace fonts /
> > 'TitleFont2' = ("SAS Monospace, Courier New, Courier",7pt)
> > 'TitleFont' = ("SAS Monospace, Courier New, Courier",7pt)
> > 'StrongFont' = ("SAS Monospace, Courier New, Courier",7pt)
> > 'EmphasisFont' = ("SAS Monospace, Courier New, Courier",7pt)
> > 'FixedEmphasisFont' = ("SAS Monospace, Courier New,
> > 'FixedStrongFont' = ("SAS Monospace, Courier New, Courier",7pt)
> > 'FixedHeadingFont' = ("SAS Monospace, Courier New,
> > 'BatchFixedFont' = ("SAS Monospace, Courier New, Courier",7pt)
> > 'FixedFont' = ("SAS Monospace, Courier New, Courier",7pt)
> > 'headingEmphasisFont' = ("SAS Monospace, Courier New,
> > 'headingFont' = ("SAS Monospace, Courier New, Courier",7pt)
> > 'docFont' = ("SAS Monospace, Courier New, Courier",7pt);
> > style header from header /
> > background=white;
> > style rowhead from header /
> > background=white;
> > style table/
> > asis=on
> > OUTPUTWIDTH=100%
> > cellspacing=0pt
> > borderwidth=0pt
> > cellpadding=0pt
> > rules=none
> > frame=void
> > protectspecialchars=off;/*seems no effect on pdf instead of
> > END;
> >ods pdf file='c:\temp\temp.pdf' style=styles.pdflisting;
> >*ods html file='c:\temp\temp.htm';
> >proc report data=junk nowd ls=192 ps=55 noheader
> > ;/*seems ls,ps and page break no effect on pdf file??*/
> > column lstr;
> > define lstr/display ; /*previous spaces of lstr are cut off in pdf
> >*ods html close;
> >ods pdf close;
> >ods listing;
> WIELKI Andre
> INED - Service Informatique
> 133 Bd Davout,
> 75 980 Paris Cedex 20
> Tel: 01 56 06 21 54