<?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 move a SPACE to a numeric field in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/322401#M21560</link>
    <description>&lt;P&gt;Just change the system option to print a space instead of a period for missing numeric values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing=' ';
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you do want to recode your variable to character then your CASE statement would look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;case
  when not missing(t1.AF) then PUT(t1.AF,best12.)
  else ' '
end&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could pick a different format to use in the PUT() function depending on how you want the values displayed.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2017 14:35:15 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-01-04T14:35:15Z</dc:date>
    <item>
      <title>How to move a SPACE to a numeric field</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/320224#M21455</link>
      <description>&lt;P&gt;I have data with an '.' in a numeric field.&amp;nbsp; I want to move a space to this field. I would like to do this in Enterprise Guide. I have tried variations of this syntax:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;case when t1.AF &amp;gt; 0 then PUT(t1.AF) =&amp;nbsp; ''&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;end&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Input&lt;/P&gt;
&lt;TABLE width="71"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="22"&gt;AF&lt;/TD&gt;
&lt;TD width="27"&gt;AM&lt;/TD&gt;
&lt;TD width="22"&gt;BF&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;9&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;.&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;Output&lt;/P&gt;
&lt;TABLE width="71"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="22"&gt;AF&lt;/TD&gt;
&lt;TD width="27"&gt;AM&lt;/TD&gt;
&lt;TD width="22"&gt;BF&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;9&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 20 Dec 2016 14:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/320224#M21455</guid>
      <dc:creator>carmendee</dc:creator>
      <dc:date>2016-12-20T14:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to move a SPACE to a numeric field</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/320232#M21457</link>
      <description>&lt;P&gt;options missing=' ';&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 14:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/320232#M21457</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-12-20T14:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to move a SPACE to a numeric field</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/320239#M21458</link>
      <description>&lt;P&gt;How does this syntax work in Enterprise Guide in build and advanced expression if my field name is AF?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 14:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/320239#M21458</guid>
      <dc:creator>carmendee</dc:creator>
      <dc:date>2016-12-20T14:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to move a SPACE to a numeric field</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/320281#M21460</link>
      <description>&lt;P&gt;NO "expression" needed. The period is indicating that the value is missing. The option sets the display to show missing with a different character, a blank. The "condition" to create a character variable with a blank in a CASE statement would be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you may be missing an ELSE portion of your CASE statement: Else " " as BF. But you didn't show the entire case statement as the result variable isn't indicated.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 15:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/320281#M21460</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-12-20T15:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to move a SPACE to a numeric field</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/322399#M21559</link>
      <description>&lt;P&gt;My field is numeric so my else cannot be "" for a blank.&amp;nbsp; I do not want a zero.&amp;nbsp; Ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 14:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/322399#M21559</guid>
      <dc:creator>carmendee</dc:creator>
      <dc:date>2017-01-04T14:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to move a SPACE to a numeric field</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/322401#M21560</link>
      <description>&lt;P&gt;Just change the system option to print a space instead of a period for missing numeric values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing=' ';
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you do want to recode your variable to character then your CASE statement would look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;case
  when not missing(t1.AF) then PUT(t1.AF,best12.)
  else ' '
end&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could pick a different format to use in the PUT() function depending on how you want the values displayed.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 14:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-move-a-SPACE-to-a-numeric-field/m-p/322401#M21560</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-01-04T14:35:15Z</dc:date>
    </item>
  </channel>
</rss>

