<?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 PROC import in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-import/m-p/359105#M274466</link>
    <description>&lt;P&gt;How do I import a particular column in Excel which utilize Formula to generate values using PROC IMPORT?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using following code and per my understanding SAS should automatically generate values in the field solving formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex. Excel File: COL_C is based on the formula (100-COLA).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile= "..\Temp\test.xlsx" dbms=xlsx out= test&amp;nbsp;replace;&lt;BR /&gt;sheet="temp";&lt;BR /&gt;getnames=YES;&lt;BR /&gt;run;&amp;nbsp;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While importing, COLA and COLB gets correct value while COLC is generating all missing values.&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2017 16:30:24 GMT</pubDate>
    <dc:creator>Jdesai123</dc:creator>
    <dc:date>2017-05-16T16:30:24Z</dc:date>
    <item>
      <title>PROC import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-import/m-p/359105#M274466</link>
      <description>&lt;P&gt;How do I import a particular column in Excel which utilize Formula to generate values using PROC IMPORT?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using following code and per my understanding SAS should automatically generate values in the field solving formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex. Excel File: COL_C is based on the formula (100-COLA).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile= "..\Temp\test.xlsx" dbms=xlsx out= test&amp;nbsp;replace;&lt;BR /&gt;sheet="temp";&lt;BR /&gt;getnames=YES;&lt;BR /&gt;run;&amp;nbsp;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While importing, COLA and COLB gets correct value while COLC is generating all missing values.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 16:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-import/m-p/359105#M274466</guid>
      <dc:creator>Jdesai123</dc:creator>
      <dc:date>2017-05-16T16:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-import/m-p/359115#M274467</link>
      <description>&lt;P&gt;Impossible (for me at least) to tell without seeing the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 17:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-import/m-p/359115#M274467</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-16T17:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-import/m-p/359171#M274468</link>
      <description>&lt;P&gt;Do you get any messages in the log? Post the code and messages from the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is he formula actually:&amp;nbsp; = 100&amp;nbsp;- A2&lt;/P&gt;
&lt;P&gt;or does is have one of $ modifiers like&amp;nbsp; = 100 - A$2 or 100 - $A2 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the cell address reference the result of another cell containing a formula?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also depending on spreadsheet the variable may be getting assigned a numeric variable type in SAS but for some reason the result of the forumla is behaving like character and hence gets a missing value in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Easiest may be to SAVE As CSV and import the resulting CSV file.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 19:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-import/m-p/359171#M274468</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-16T19:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-import/m-p/359433#M274469</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I re-do the Formula and it worked fine.&lt;BR /&gt;&lt;BR /&gt;I think Formula was saving as Character while converting so it was not&lt;BR /&gt;resolving while converting.&lt;BR /&gt;&lt;BR /&gt;Thank you all for the help.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Wed, 17 May 2017 17:11:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-import/m-p/359433#M274469</guid>
      <dc:creator>Jdesai123</dc:creator>
      <dc:date>2017-05-17T17:11:56Z</dc:date>
    </item>
  </channel>
</rss>

