<?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: How to left-align a numeric field? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-a-numeric-field/m-p/173152#M33250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response. However, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have found this proc report code which should align the variables. It doesn't work. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Here is this code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=sashelp.cars out=cars;&lt;/P&gt;&lt;P&gt;where make = "Acura";&lt;/P&gt;&lt;P&gt;column make horsepower;&lt;/P&gt;&lt;P&gt;define make / right;&lt;/P&gt;&lt;P&gt;define horsepower / right;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know what is wrong with the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 03:50:00 GMT</pubDate>
    <dc:creator>angeliquec</dc:creator>
    <dc:date>2014-10-07T03:50:00Z</dc:date>
    <item>
      <title>How to left-align a numeric field?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-a-numeric-field/m-p/173150#M33248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I would like to ask how to left-align a numeric field without converting it to character? The LEFT function automatically converts the field to character. The numeric attribute of the field should be maintained as the dataset would be exported to Excel, and the numbers would be used for additional computations of the Excel users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 10:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-a-numeric-field/m-p/173150#M33248</guid>
      <dc:creator>angeliquec</dc:creator>
      <dc:date>2014-10-06T10:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to left-align a numeric field?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-a-numeric-field/m-p/173151#M33249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your question is impossible to solve. Numerics&amp;nbsp; are in a binary format, see: &lt;A href="https://support.sas.com/techsup/technote/ts654.pdf" title="https://support.sas.com/techsup/technote/ts654.pdf"&gt;https://support.sas.com/techsup/technote/ts654.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When you see decimal numbers they are converted to char by some function. Formats are there for this purpose.&lt;/P&gt;&lt;P&gt;the put function &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#n0mlfb88dkhbmun1x08qbh5xbs7e.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#n0mlfb88dkhbmun1x08qbh5xbs7e.htm"&gt;SAS(R) 9.4 Functions and CALL Routines: Reference, Third Edition&lt;/A&gt; is using a format for that conversion and is supporting justify (L C R)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 10:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-a-numeric-field/m-p/173151#M33249</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-10-06T10:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to left-align a numeric field?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-a-numeric-field/m-p/173152#M33250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response. However, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have found this proc report code which should align the variables. It doesn't work. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Here is this code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=sashelp.cars out=cars;&lt;/P&gt;&lt;P&gt;where make = "Acura";&lt;/P&gt;&lt;P&gt;column make horsepower;&lt;/P&gt;&lt;P&gt;define make / right;&lt;/P&gt;&lt;P&gt;define horsepower / right;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know what is wrong with the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 03:50:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-a-numeric-field/m-p/173152#M33250</guid>
      <dc:creator>angeliquec</dc:creator>
      <dc:date>2014-10-07T03:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to left-align a numeric field?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-a-numeric-field/m-p/173153#M33251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the output dataset you have your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the ODS output part, historic the printing, there are styles. See the examples supporting styles.&amp;nbsp; It is possible to do traffic lights with that. &lt;A href="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#p1sh52tpsi1nxbn1sr371jj0bngj.htm"&gt;http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#p1sh52tpsi1nxbn1sr371jj0bngj.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;proc report data=sashelp.cars out=cars;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where make = "Acura";&lt;/P&gt;&lt;P&gt;&amp;nbsp; column make horsepower;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define make / style(column)=[width=12em marginleft=0];&lt;/P&gt;&lt;P&gt;&amp;nbsp; define horsepower / style(column)=[textalign=C] ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 12:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-a-numeric-field/m-p/173153#M33251</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-10-07T12:38:08Z</dc:date>
    </item>
  </channel>
</rss>

