<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: justifying font in columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/justifying-font-in-columns/m-p/155518#M262844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read up on the proc report section as its quite big.&amp;nbsp; Something like:&lt;/P&gt;&lt;P&gt;proc report data=test nowd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define ID / "ID" style(column)=[j=c];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define Name / "Name" style(header)=[j=r] style(column)=[j=r];&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 09:59:04 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-09-23T09:59:04Z</dc:date>
    <item>
      <title>justifying font in columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/justifying-font-in-columns/m-p/155517#M262843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to justify aliment of the columns &lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input ID $ 1-5 NAME $ 6-17 REMARKS $ 18-35;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1121 Tom Carry&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Not attended demo&lt;/P&gt;&lt;P&gt;1122 Nancy Peter Out of town&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1123 Smith&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attended demo&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1124 John perera&amp;nbsp;&amp;nbsp; holiday on demo&amp;nbsp; &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=test nowd;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as name and remarks are left aligned i want full justify alligment as shown&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Remarks&lt;/P&gt;&lt;P style="text-align: justify;"&gt;1121 Tom&amp;nbsp;&amp;nbsp;&amp;nbsp; Carry&amp;nbsp; Not attended demo&lt;/P&gt;&lt;P style="text-align: justify;"&gt;1122 Nancy Peter Out&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; of&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; town&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: justify;"&gt;1123 Smith&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attended&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; demo&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: justify;"&gt;1124 John perera&amp;nbsp;&amp;nbsp; holiday&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp; demo&amp;nbsp; &lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;is it possible &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 09:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/justifying-font-in-columns/m-p/155517#M262843</guid>
      <dc:creator>santhosh</dc:creator>
      <dc:date>2014-09-23T09:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: justifying font in columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/justifying-font-in-columns/m-p/155518#M262844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read up on the proc report section as its quite big.&amp;nbsp; Something like:&lt;/P&gt;&lt;P&gt;proc report data=test nowd;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define ID / "ID" style(column)=[j=c];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define Name / "Name" style(header)=[j=r] style(column)=[j=r];&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 09:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/justifying-font-in-columns/m-p/155518#M262844</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-23T09:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: justifying font in columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/justifying-font-in-columns/m-p/155519#M262845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting error any way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont want any thing right or center i want all columns to be justified as in word u have option justify&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 10:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/justifying-font-in-columns/m-p/155519#M262845</guid>
      <dc:creator>santhosh</dc:creator>
      <dc:date>2014-09-23T10:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: justifying font in columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/justifying-font-in-columns/m-p/155520#M262846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please elaborate, what error are you getting?&amp;nbsp; The word is actually just= (not j=) with the options l=left, r=right, c=centered.&lt;/P&gt;&lt;P&gt;Do you mean centered, then change to just=c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 10:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/justifying-font-in-columns/m-p/155520#M262846</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-23T10:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: justifying font in columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/justifying-font-in-columns/m-p/155521#M262847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What destination are you using ? SAS has no such align style like word .&lt;/P&gt;&lt;P&gt;Here is an example for PDF destionation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data have;
infile cards length=len;
input str $varying200. len;
cards;
China adheres to the principle
I can't abide to see
As the branch
Abide in Me, and I in you
;
run;
proc sql noprint;
select max(length(str)) into : max from have;
quit;
%put &amp;amp;max ;
data want(keep=str new_str);
 set have;
 length new_str $ 200 ;
 blanks=countc(strip(str),' ') + ( &amp;amp;max - length(str));
 c=countw(str,' ');
 l=int(divide(blanks,c-1));
 r=blanks-l*(c-1)+1;
 do i=1 to c;
&amp;nbsp; if i le r&amp;nbsp; then new_str=catx(repeat(' ',l),new_str,scan(str,i,' '));
&amp;nbsp;&amp;nbsp; else new_str=catx(repeat(' ',l-1),new_str,scan(str,i,' '));
 end;
run;
ods listing close;
ods pdf file='c:\temp\x.pdf' ;
proc print noobs;run;
ods pdf close;
ods listing;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 13:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/justifying-font-in-columns/m-p/155521#M262847</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-09-24T13:07:37Z</dc:date>
    </item>
  </channel>
</rss>

