Date: Tue, 31 Oct 2006 17:20:04 GMT
Reply-To: kenneth_m_lin@SBCGLOBAL.NET
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: kenneth_m_lin@SBCGLOBAL.NET
Organization: SBC http://yahoo.sbc.com
Subject: Re: Help with SUBSTR(left of =) function
You will have to use length function to determine the width of the title and
padded by blanks. In DATA STEP you could assign the starting column with @
symbol. For example
put @10 var_name;
would display the field var_name starting at column 10.
Ken
"SAS-USER" <sathevaibhav@gmail.com> wrote in message
news:1162312523.989113.169310@i42g2000cwa.googlegroups.com...
> Hi All,
>
> I am trying to put titles on top of my report using SUBSTR(left of =)
> function. Its displaying the titles on the top of each page, but the
> titles are left aligned. But i want to align them to center. How can i
> modify the substr statement so that i can have it aligned at the
> center.
>
> The code i am using to put headers is:-
>
> substr(RfRowTx,1) = "&Tit1";
> output;
> RfRowNb=RfRowNb+1;
>
> The first row of code resolves the macro and put what ever characters
> or text is in that macro variable put it on first line of report. But
> it puts it as left aligned. And i want that text to be center aligned.
> Next line outputs it to report. Last line increases the row counter by
> 1.
>
> I would really appriciate if anybody can solve this problem.
>
> SAS_USER.
>
|