<?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: Re-format a number to remove empty spaces and PDF print in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Re-format-a-number-to-remove-empty-spaces-and-PDF-print/m-p/849639#M37140</link>
    <description>&lt;P&gt;Thank you all for your feedback, I knew it had to be something simple.&amp;nbsp; The %LET did the work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 14:01:17 GMT</pubDate>
    <dc:creator>ljim1075</dc:creator>
    <dc:date>2022-12-14T14:01:17Z</dc:date>
    <item>
      <title>Re-format a number to remove empty spaces and PDF print</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Re-format-a-number-to-remove-empty-spaces-and-PDF-print/m-p/849541#M37132</link>
      <description>&lt;P&gt;Hello everyone and anyone!&amp;nbsp; When you run the below code the display PDF number has space/separation from the title.&amp;nbsp; How do I re-format to the number of characters.&lt;/P&gt;&lt;P&gt;Current view: 'Total Number of Records:&amp;nbsp; &amp;nbsp; &amp;nbsp; 2,020'&lt;/P&gt;&lt;P&gt;Want view: 'Total Number of Records: 2,020'&lt;/P&gt;&lt;P&gt;SAS Code:&lt;/P&gt;&lt;P&gt;ods pdf file="file path to save/Total Count.pdf";&lt;BR /&gt;options linesize=max;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;BR /&gt;select&lt;BR /&gt;count(*) as Tot_Cnt format comma10.&lt;BR /&gt;into&lt;BR /&gt;:Obs&lt;BR /&gt;from SASHELP.aacomp&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;BR /&gt;%put NOTE: &amp;amp;Obs;&lt;/P&gt;&lt;P&gt;ods pdf startpage=no;&lt;BR /&gt;ods proclabel='Title';&lt;BR /&gt;title bold height=22pt color=purple "Total Number of Records: &amp;amp;Obs.";&lt;BR /&gt;proc report data=SASHELP.aacomp;&lt;BR /&gt;run;&lt;BR /&gt;title;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your support!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 22:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Re-format-a-number-to-remove-empty-spaces-and-PDF-print/m-p/849541#M37132</guid>
      <dc:creator>ljim1075</dc:creator>
      <dc:date>2022-12-13T22:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re-format a number to remove empty spaces and PDF print</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Re-format-a-number-to-remove-empty-spaces-and-PDF-print/m-p/849543#M37133</link>
      <description>&lt;PRE&gt;Current view: 'Total Number of Records:      2,020'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest thing to do is to create this string without the unwanted blanks. If you can't do that, use the &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/lefunctionsref/p1si0i16bcqti7n1jxxxe1hstunq.htm" target="_self"&gt;COMPBL function&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 22:23:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Re-format-a-number-to-remove-empty-spaces-and-PDF-print/m-p/849543#M37133</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-13T22:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re-format a number to remove empty spaces and PDF print</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Re-format-a-number-to-remove-empty-spaces-and-PDF-print/m-p/849568#M37135</link>
      <description>&lt;P&gt;Add this after the SQL:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let obs = &amp;amp;obs.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A %LET will automatically strip the value.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 07:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Re-format-a-number-to-remove-empty-spaces-and-PDF-print/m-p/849568#M37135</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-14T07:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re-format a number to remove empty spaces and PDF print</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Re-format-a-number-to-remove-empty-spaces-and-PDF-print/m-p/849575#M37136</link>
      <description>&lt;P&gt;Or add the option "trimmed" to the into-clause:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
  select count(*) as Tot_Cnt format comma10.
    into :Obs trimmed
    from SASHELP.aacomp
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Dec 2022 08:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Re-format-a-number-to-remove-empty-spaces-and-PDF-print/m-p/849575#M37136</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-12-14T08:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re-format a number to remove empty spaces and PDF print</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Re-format-a-number-to-remove-empty-spaces-and-PDF-print/m-p/849639#M37140</link>
      <description>&lt;P&gt;Thank you all for your feedback, I knew it had to be something simple.&amp;nbsp; The %LET did the work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 14:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Re-format-a-number-to-remove-empty-spaces-and-PDF-print/m-p/849639#M37140</guid>
      <dc:creator>ljim1075</dc:creator>
      <dc:date>2022-12-14T14:01:17Z</dc:date>
    </item>
  </channel>
</rss>

