Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PROC REPORT

Status
Not open for further replies.

suvidha

Programmer
Mar 28, 2006
1
US
Hi,
I was just thinking if some one can actually help me out with getting a solution for the problem described below:

If I apply a format in a define statement like this in a PROC REPORT:

define b_weight / display "Weight#(kg)" center format=9.1 style = {cellwidth = 40 pt};

it will pad the result with leading blanks, for instance, 75.2 comes out as " 75.2". Centering or left-aligning such columns is not aesthetically possible. Is there a way to tell proc report to ignore any and all leading blanks in a column? Same for trailing blanks, for that matter, when applying a character format. If this cannot be done, we'd need to still pre-process such columns to create a stripped character version of the variable.

Need Help.

Thank You.

Regards,
Sudha
 
This appears right aligned because it's a number, and numbers are always left aligned by most applications. What has happened is you've specified exactly how wide the column should be and then put in a number which right aligns to it. You say that you can't centre or left align the field, so what exactly is it you want it to do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top