From: Ya Huang on
Assuming you already 'indented' the text by padding the space in
the var, to show the 'indent' or space, you need to turn on the
asis option in style:

data xx;
a='not indent'; output;
a=' indent '; output;
run;

ods rtf file="c:\temp\junk.rtf";
ods pdf file="c:\temp\junk.pdf";

proc report data=xx nowd;
column a;
define a / display style=[asis=on];
run;

ods rtf close;
ods pdf close;

On Thu, 28 Jan 2010 16:37:16 -0500, Peng, Lily <Lily.Peng(a)PHARMA.COM> wrote:

>Dear all,
>
>I am trying to create a pdf/rtf output from the SAS output. However, the
indent that displays in SAS output is not working in pdf/rtf file. Also,
the blank line that is used to split between different groups can't display
in pdf/rtf either.
>
>For example:
>
>A. In SAS output:
>******************************************
>System Organ Class
> Higher Level Term
> Lower Level Term
>******************************************
>SOC11111111
> HLT1111111111
> LLT1111111111
>(Note: blank line here)
>SOC22222222222
> HLT1111111111
> LLT1111111111
>
>
>B. In PDF output:
>
>******************************************
>System Organ Class
>Higher Level Term
>Lower Level Term
>******************************************
>SOC11111111
>HLT1111111111
>LLT1111111111
>SOC22222222222
>HLT1111111111
>LLT1111111111
>
>Does anybody here knows how to solve this problem?
>
>Thanks a lot!
>
>Lily
From: RolandRB on
On 28 Jan., 22:37, Lily.P...(a)PHARMA.COM ("Peng, Lily") wrote:
> Dear all,
>
> I am trying to create a pdf/rtf output from the SAS output. However, the in=
> dent that displays in SAS output is not working in pdf/rtf file. Also, the =
> blank line that is used to split between different groups can't display in =
> pdf/rtf either.
>
> For example:
>
> A.      In SAS output:
> ******************************************
> System Organ Class
>                 Higher Level Term
>                                 Lower Level Term
> ******************************************
> SOC11111111
>                 HLT1111111111
>                                 LLT1111111111
> (Note: blank line here)
> SOC22222222222
>                 HLT1111111111
>                                 LLT1111111111
>
> B.      In PDF output:
>
> ******************************************
> System Organ Class
> Higher Level Term
> Lower Level Term
> ******************************************
> SOC11111111
> HLT1111111111
> LLT1111111111
> SOC22222222222
> HLT1111111111
> LLT1111111111
>
> Does anybody here knows how to solve this problem?
>
> Thanks a lot!
>
> Lily

As for the blank line then you should do that using a compute block
for your ODS output. Another way of doing indents is to use repeats of
the non-breaking space character "A0"x but if your text is
proportional it won't look the same as ascii output indents.

My %npcttab macro handles this situation well and can simultaneously
generate ascii output and ODS output and have it all looking right.


From: "Peng, Lily" on
Thank you! The problem is solved.

Lily

-----Original Message-----
From: Ya Huang [mailto:ya.huang(a)AMYLIN.COM]
Sent: Thursday, January 28, 2010 5:08 PM
To: SAS-L(a)LISTSERV.UGA.EDU; Peng, Lily
Cc: Ya Huang
Subject: Re: How to display indent and blank line break in pdf/rtf output?

Assuming you already 'indented' the text by padding the space in
the var, to show the 'indent' or space, you need to turn on the
asis option in style:

data xx;
a='not indent'; output;
a=' indent '; output;
run;

ods rtf file="c:\temp\junk.rtf";
ods pdf file="c:\temp\junk.pdf";

proc report data=xx nowd;
column a;
define a / display style=[asis=on];
run;

ods rtf close;
ods pdf close;

On Thu, 28 Jan 2010 16:37:16 -0500, Peng, Lily <Lily.Peng(a)PHARMA.COM> wrote:

>Dear all,
>
>I am trying to create a pdf/rtf output from the SAS output. However, the
indent that displays in SAS output is not working in pdf/rtf file. Also,
the blank line that is used to split between different groups can't display
in pdf/rtf either.
>
>For example:
>
>A. In SAS output:
>******************************************
>System Organ Class
> Higher Level Term
> Lower Level Term
>******************************************
>SOC11111111
> HLT1111111111
> LLT1111111111
>(Note: blank line here)
>SOC22222222222
> HLT1111111111
> LLT1111111111
>
>
>B. In PDF output:
>
>******************************************
>System Organ Class
>Higher Level Term
>Lower Level Term
>******************************************
>SOC11111111
>HLT1111111111
>LLT1111111111
>SOC22222222222
>HLT1111111111
>LLT1111111111
>
>Does anybody here knows how to solve this problem?
>
>Thanks a lot!
>
>Lily