BookmarkSubscribeRSS Feed
arnab61
Calcite | Level 5

SnipImage.JPGI wnt to remove this two borders(left and right) and make the text as left alligned. Can anybody help me how to do this?

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

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


left_just_in_table.jpg
arnab61
Calcite | Level 5

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1569 views
  • 0 likes
  • 2 in conversation