Date: Tue, 31 Oct 2006 17:20:04 GMT
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
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.
"SAS-USER" <email@example.com> wrote in message
> 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
> The code i am using to put headers is:-
> substr(RfRowTx,1) = "&Tit1";
> 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
> I would really appriciate if anybody can solve this problem.