<?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 Convert my format to numeric in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-my-format-to-numeric/m-p/875141#M345781</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I created my format using code:&lt;/P&gt;
&lt;PRE&gt;proc format;
picture thousand
low-high = '000 000 000 009';
run;&lt;/PRE&gt;
&lt;P&gt;and export data to excel&lt;/P&gt;
&lt;PRE&gt;proc sql;&lt;BR /&gt;create table work.mydata as&lt;BR /&gt;select t.data format=thousand.&lt;BR /&gt;from work.tabel t&lt;BR /&gt;;quit;&lt;BR /&gt;&lt;BR /&gt;proc print data=mydata noobs:
title "My data";
run;&lt;/PRE&gt;
&lt;P&gt;and get result stored as text:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="J_J_J_0-1683781131544.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83856i70DD57E25CC7903B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="J_J_J_0-1683781131544.png" alt="J_J_J_0-1683781131544.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How to convert it to numeric format in SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 05:05:48 GMT</pubDate>
    <dc:creator>J_J_J</dc:creator>
    <dc:date>2023-05-11T05:05:48Z</dc:date>
    <item>
      <title>Convert my format to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-my-format-to-numeric/m-p/875141#M345781</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I created my format using code:&lt;/P&gt;
&lt;PRE&gt;proc format;
picture thousand
low-high = '000 000 000 009';
run;&lt;/PRE&gt;
&lt;P&gt;and export data to excel&lt;/P&gt;
&lt;PRE&gt;proc sql;&lt;BR /&gt;create table work.mydata as&lt;BR /&gt;select t.data format=thousand.&lt;BR /&gt;from work.tabel t&lt;BR /&gt;;quit;&lt;BR /&gt;&lt;BR /&gt;proc print data=mydata noobs:
title "My data";
run;&lt;/PRE&gt;
&lt;P&gt;and get result stored as text:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="J_J_J_0-1683781131544.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83856i70DD57E25CC7903B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="J_J_J_0-1683781131544.png" alt="J_J_J_0-1683781131544.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How to convert it to numeric format in SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 05:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-my-format-to-numeric/m-p/875141#M345781</guid>
      <dc:creator>J_J_J</dc:creator>
      <dc:date>2023-05-11T05:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert my format to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-my-format-to-numeric/m-p/875142#M345782</link>
      <description>&lt;P&gt;I don't understand what you are asking.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You created a NUMERIC format.&amp;nbsp; So it can only work with a NUMERIC variable.&amp;nbsp; The picture seems to be showing that the format worked because it is showing values like '243 516' instead of '243516' that would normally be used to display the number 243,516 when you had not attached any format to the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the photograph from?&amp;nbsp; Those little green triangles make it look like a snapshot of part of how Excel would display a spreadsheet.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 05:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-my-format-to-numeric/m-p/875142#M345782</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-05-11T05:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert my format to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-my-format-to-numeric/m-p/875148#M345786</link>
      <description>&lt;P&gt;Photograph is from Excel and green triangle shows that it's number stored as text. How to export the data, that it will be number in excel.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 07:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-my-format-to-numeric/m-p/875148#M345786</guid>
      <dc:creator>J_J_J</dc:creator>
      <dc:date>2023-05-11T07:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert my format to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-my-format-to-numeric/m-p/875152#M345789</link>
      <description>&lt;P&gt;A string with blanks does not constitute a number. Export the number as a number, and do the formatting in Excel.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 07:59:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-my-format-to-numeric/m-p/875152#M345789</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-05-11T07:59:23Z</dc:date>
    </item>
  </channel>
</rss>

