I wnt to remove this two borders(left and right) and make the text as left alligned. Can anybody help me how to do this?
Hi:
It is easy to left justify the text. To your PROC REPORT statement, you would add:
proc report data=sashelp.class nowd
style(lines)={just=l};
As for your border question, there are border styles that you might use to change the colors of those borders, for example to white. However, your text will still be left justified within the boundary of the table -- even if the left and right borders are gone. So, if you want some sort of paragraph of text that is left justified to a page, for example, just getting rid of the borders won't help.
And, the border changes, if they are want you want, might not work in ALL destinations. So, without knowing what destination you are using (HTML, PDF, RTF, SASReport) for your output, and what exactly you hope to achieve (left justify the text within the boundary of the table or left justify the text to the left margin of the page), it is hard to help you more.
If you do hope to left justify the text to the left hand side of the page, then you would split your table into two steps and use ODS TEXT= between each step. The attached screen shot shows the how left justification works inside the boundary of the table and outside the boundary of the table.
cynthia
The border colors I want to apply for HTML. But the style property bordercolor is not applying to the HTML. Though it is fine for PDF. Can you help me for HTML? What do you mean to say by "split your table". Like two tables with two different proc report and ODS TEXT in between.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.