Date: Fri, 10 Sep 2010 13:46:10 -0700
Reply-To: "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Subject: Re: Tab character
In-Reply-To: A<OF785D1095.A38A0115-ON8625779A.007106B6-8625779A.00715611@fd9ns01.okladot.state.ok.us>
Content-Type: text/plain; charset="us-ascii"
Hi Masoud,
Have you tried:
%let Tab="\t";
Mark
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Masoud Pajoh
Sent: Friday, September 10, 2010 1:38 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: Tab character
This, with spaces:
%let Tab= " ";
footnote1 j=l h=1.2 f="Comic Sans MS"
"^{super *} 2009 Specification." &Tab. "^{super
#}
Oversight." &Tab.
"^{super A} Authorized." &Tab. "^{super
!} Not Programmed.";
works, I just wanted to see if '09'x can be used.
Thanks,
Masoud
Joe Matise <snoopy369@GMAIL.COM>
Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
09/10/2010 03:29 PM
Please respond to
Joe Matise <snoopy369@GMAIL.COM>
To
SAS-L@LISTSERV.UGA.EDU
cc
Subject
Re: Tab character
Haha, indeed... maybe someday they'll get google goggles for sas-l posts
;)
From the fact that the ODS Listing does include the tab (but doesn't
display
it, which threw me off) I would venture to guess that it's possible PDF
doesn't have a way to display tabs (ie, they must be converted to
spaces).
If that is the case (and I am no expert in ODS PDF), one solution is to
insert several spaces (say as part of a macro variable) where you'd
prefer
to insert a tab - 4 or 5 is fairly common.
-Joe
On Fri, Sep 10, 2010 at 3:20 PM, Terjeson, Mark
<Mterjeson@russell.com>wrote:
> See Joe, here's my afternoon brain slip:
> (square brackets below are missing from
> original brain download)
>
> You mention PDF as the destination,
> but I don't think [you mention] what engine you
> are using to get there(to the PDF)?
>
> Mark :o)
>
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> Terjeson, Mark
> Sent: Friday, September 10, 2010 1:14 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: Tab character
>
> Hi Masoud,
>
> Just like your test below,
>
>
> data test;a=1;
> run;
> title "Hello" "09"x "World.";
> proc print data=test;
> run;
>
>
> does work fine outputting a TAB in
> the appropriate place.
>
> You mention PDF as the destination,
> but I don't think what engine you
> are using to get there(to the PDF)?
>
> For example, if going to PDF via RTF
> you would need \tab right tab or
> \tab left tab or \tab 1" tab etc.
>
> Some other engines use octal \009
> or hex \09 or \t or 	 in html.
>
> I also recall using the escapecharacter
> and embedding formatting and special
> characters into the TITLE string for
> special outputs, but I think we need
> to know what engine is being used in
> between the TITLE statement and the PDF.
>
> Mark
>
>
>
>
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> Masoud Pajoh
> Sent: Friday, September 10, 2010 12:53 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: Tab character
>
> Using BYTE(09), as expected, does not shoe as tab in the PDF output.
>
> Thanks,
>
> Masoud
>
>
>
>
> Joe Matise <snoopy369@GMAIL.COM>
> Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
> 09/10/2010 02:16 PM
> Please respond to
> Joe Matise <snoopy369@GMAIL.COM>
>
>
> To
> SAS-L@LISTSERV.UGA.EDU
> cc
>
> Subject
> Re: Tab character
>
>
>
>
>
>
> "09"x is a hex number token (actually, 9)- not a character. Try
> BYTE('09'x)
> perhaps? Not sure about how that would interface with ODS PDF though.
>
> -Joe
>
> On Fri, Sep 10, 2010 at 2:02 PM, Masoud Pajoh <mpajoh@odot.org> wrote:
>
> > I am writing a pdf file.
> > I like to have a TAB character inserted several places like:
> > title "this is the" TAB " title, which" Tab " is a test";
> > This:
> > title "this is the" "09"x " title, which" "09"x " is a test";
> > does not work.
> >
> > What is the correct way.
> >
> > Masoud
> >
>
|