<?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 Technical issue when importing an excel file to SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Technical-issue-when-importing-an-excel-file-to-SAS/m-p/967539#M376383</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I encountered a technical issue when importing an Excel file into SAS. The original cell format in Excel was &lt;/SPAN&gt;&lt;CODE class=""&gt;#,##0.00,,"M"&lt;/CODE&gt;&lt;SPAN&gt; (e.g., displaying values like 3.62M). However, upon importing the data into SAS, the format changed to &lt;/SPAN&gt;&lt;CODE class=""&gt;NLMNY15.&lt;/CODE&gt;&lt;SPAN&gt;, displaying the values as &lt;/SPAN&gt;&lt;CODE class=""&gt;$3,617,180&lt;/CODE&gt;&lt;SPAN&gt;. I would appreciate any assistance in resolving this issue, as I aim to retain all decimal values and preserve the data as it was in its raw form. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc import datafile="/app/sas/users/datahave.xlsx"
    out=mockdata
    dbms=xlsx
    replace;
    getnames=yes;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 May 2025 16:21:26 GMT</pubDate>
    <dc:creator>Crystal_F</dc:creator>
    <dc:date>2025-05-27T16:21:26Z</dc:date>
    <item>
      <title>Technical issue when importing an excel file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Technical-issue-when-importing-an-excel-file-to-SAS/m-p/967539#M376383</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I encountered a technical issue when importing an Excel file into SAS. The original cell format in Excel was &lt;/SPAN&gt;&lt;CODE class=""&gt;#,##0.00,,"M"&lt;/CODE&gt;&lt;SPAN&gt; (e.g., displaying values like 3.62M). However, upon importing the data into SAS, the format changed to &lt;/SPAN&gt;&lt;CODE class=""&gt;NLMNY15.&lt;/CODE&gt;&lt;SPAN&gt;, displaying the values as &lt;/SPAN&gt;&lt;CODE class=""&gt;$3,617,180&lt;/CODE&gt;&lt;SPAN&gt;. I would appreciate any assistance in resolving this issue, as I aim to retain all decimal values and preserve the data as it was in its raw form. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc import datafile="/app/sas/users/datahave.xlsx"
    out=mockdata
    dbms=xlsx
    replace;
    getnames=yes;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 16:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Technical-issue-when-importing-an-excel-file-to-SAS/m-p/967539#M376383</guid>
      <dc:creator>Crystal_F</dc:creator>
      <dc:date>2025-05-27T16:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Technical issue when importing an excel file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Technical-issue-when-importing-an-excel-file-to-SAS/m-p/967540#M376384</link>
      <description>&lt;P&gt;Can't you just change the format that is attached to the variable so it prints differently?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print;
 format _numeric_;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1748367136105.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107370i6FBA26AF51A7DDE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1748367136105.png" alt="Tom_0-1748367136105.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 17:32:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Technical-issue-when-importing-an-excel-file-to-SAS/m-p/967540#M376384</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-27T17:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Technical issue when importing an excel file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Technical-issue-when-importing-an-excel-file-to-SAS/m-p/967552#M376388</link>
      <description>&lt;P&gt;1) Save this excel as a CSV file and import it again as a string variable.&lt;/P&gt;
&lt;PRE&gt;data want;
infile "C:\Users\xiakeshan\Documents\Downloads\mockdata.csv" dsd truncover firstobs=2;
input x : $40. April : $40.;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1748395364215.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107371iFB04EE7FB22A2669/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1748395364215.png" alt="Ksharp_0-1748395364215.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Make a new format in sas and attach this dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile = "C:\Users\xiakeshan\Documents\Downloads\mockdata.xlsx" out =have replace dbms =excel ;
run;

proc format;
picture fmt(round)
low-high='000,000,000.99M'(mult=0.0001)
;
quit;
data want2;
set have;
format April_202X fmt.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1748395429444.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107372iABA0641FFD6AFDFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1748395429444.png" alt="Ksharp_1-1748395429444.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 01:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Technical-issue-when-importing-an-excel-file-to-SAS/m-p/967552#M376388</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-28T01:24:09Z</dc:date>
    </item>
  </channel>
</rss>

