<?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: Importing one value from excel into SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489170#M127655</link>
    <description>&lt;P&gt;If that value is just typed into a spreadsheet by somebody, have them type it into a SAS prompt instead and spare yourself the hassle of dealing with the Excel ****.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 09:09:28 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-08-23T09:09:28Z</dc:date>
    <item>
      <title>Importing one value from excel into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489162#M127647</link>
      <description>&lt;P&gt;I understand that SAS can easily import excel data and treat it as SAS data set. However, if I just need one value from excel and use that value as a SAS variable. Is it possible? How do I go about doing that? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 08:45:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489162#M127647</guid>
      <dc:creator>irisG</dc:creator>
      <dc:date>2018-08-23T08:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Importing one value from excel into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489164#M127649</link>
      <description>You can use the same proc import procedure as below&lt;BR /&gt;&lt;BR /&gt;proc import datafile='path of excel' out=sasdataset dbms=excel replace;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Aug 2018 08:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489164#M127649</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2018-08-23T08:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Importing one value from excel into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489165#M127650</link>
      <description>&lt;P&gt;Of what benefit is keeping one value in an Excel file to use in SAS?&amp;nbsp; There are many ways to get data into SAS.&amp;nbsp; You could just type it in at the top of the program:&lt;/P&gt;
&lt;PRE&gt;% let thevalue=abc;&lt;/PRE&gt;
&lt;P&gt;You could have prompts etc.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 08:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489165#M127650</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-23T08:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Importing one value from excel into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489170#M127655</link>
      <description>&lt;P&gt;If that value is just typed into a spreadsheet by somebody, have them type it into a SAS prompt instead and spare yourself the hassle of dealing with the Excel ****.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 09:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489170#M127655</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-23T09:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Importing one value from excel into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489172#M127656</link>
      <description>&lt;P&gt;I am toying with automating part of the process that currently involve talking to an excel spreadsheet and reiterating the calculation. Right now we are using the same solution as you suggested but I wonder whether there are ways to improve the process.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 09:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489172#M127656</guid>
      <dc:creator>irisG</dc:creator>
      <dc:date>2018-08-23T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Importing one value from excel into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489178#M127659</link>
      <description>&lt;P&gt;Well, the biggest improvement to the process would be to drop SAS or Excel.&amp;nbsp; Fewer tools in the process always makes for a simpler, easier process.&amp;nbsp; For instance, what is Excel needed?&amp;nbsp; Can it not be stored as a SAS dataset, then output to Excel at the end of the process?&amp;nbsp; What is SAS needed for, if you have an Excel file which needs updating, update it using VBA which is inbuilt into Excel.&amp;nbsp; Either scenario halves the tools and probably the effort.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 09:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489178#M127659</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-23T09:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Importing one value from excel into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489202#M127672</link>
      <description>&lt;P&gt;That's definitely a tidier solution. I am trying to fact find at this stage to see what different approaches are available. One idea was to call the SAS code from VBA but our issue is that the code is too long if I use the Jointext function to join all the code (this is what I saw as one of the solutions, by puting a code in a named cell and then execute the SAS&amp;nbsp;code from VBA.)&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 11:05:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489202#M127672</guid>
      <dc:creator>irisG</dc:creator>
      <dc:date>2018-08-23T11:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Importing one value from excel into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489207#M127677</link>
      <description>&lt;P&gt;What's so bad about a simple %include, if you want to run SAS code stored in a file?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 11:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-one-value-from-excel-into-SAS/m-p/489207#M127677</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-23T11:13:48Z</dc:date>
    </item>
  </channel>
</rss>

