<?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 Need help. Dynamic data step in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-Dynamic-data-step/m-p/44423#M11752</link>
    <description>Hi &lt;BR /&gt;
&lt;BR /&gt;
I need help with the following:&lt;BR /&gt;
&lt;BR /&gt;
I have a value in a cell in Excel which I wan to use in my data step. The value could a position of a file or database.&lt;BR /&gt;
&lt;BR /&gt;
      Data   new.table;&lt;BR /&gt;
        set  ________&lt;B&gt;here goes the value of the cell in excel&lt;/B&gt;____________  ;&lt;BR /&gt;
      Run;&lt;BR /&gt;
&lt;BR /&gt;
I think I need to do a data step before this step that retrieves all my cells in excel and then to Data_null to define my new variabe. But so far I cant get it to work,.&lt;BR /&gt;
&lt;BR /&gt;
I would preciate any help&lt;BR /&gt;
&lt;BR /&gt;
Thanks and have a good weekend</description>
    <pubDate>Sun, 14 Jun 2009 15:59:04 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-14T15:59:04Z</dc:date>
    <item>
      <title>Need help. Dynamic data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-Dynamic-data-step/m-p/44423#M11752</link>
      <description>Hi &lt;BR /&gt;
&lt;BR /&gt;
I need help with the following:&lt;BR /&gt;
&lt;BR /&gt;
I have a value in a cell in Excel which I wan to use in my data step. The value could a position of a file or database.&lt;BR /&gt;
&lt;BR /&gt;
      Data   new.table;&lt;BR /&gt;
        set  ________&lt;B&gt;here goes the value of the cell in excel&lt;/B&gt;____________  ;&lt;BR /&gt;
      Run;&lt;BR /&gt;
&lt;BR /&gt;
I think I need to do a data step before this step that retrieves all my cells in excel and then to Data_null to define my new variabe. But so far I cant get it to work,.&lt;BR /&gt;
&lt;BR /&gt;
I would preciate any help&lt;BR /&gt;
&lt;BR /&gt;
Thanks and have a good weekend</description>
      <pubDate>Sun, 14 Jun 2009 15:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-Dynamic-data-step/m-p/44423#M11752</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-14T15:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help. Dynamic data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-Dynamic-data-step/m-p/44424#M11753</link>
      <description>Hi:&lt;BR /&gt;
  There would be a difference between the name of a SAS dataset (such as you would use in a SET statement) and the name of a database location or table (such as you might use in a LIBNAME statement) or the name of an operating system file (such as you might use in a FILENAME or INFILE statement). However, in any of these cases, after you read your Excel file, then you could create a SAS macro variable from your variable value using either CALL SYMPUT or a PROC SQL SELECT with INTO. Then, the macro variable reference could be used in a LIBNAME statement or a SET statement or in any other code where you needed to reference a value that had to come from a variable value in a different data set.&lt;BR /&gt;
 &lt;BR /&gt;
  If you don't know about SAS macro variables and how they work, this paper has a good introduction to SAS Macro concepts.&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi28/056-28.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi28/056-28.pdf&lt;/A&gt;&lt;BR /&gt;
(Step 4 shows the CALL SYMPUT method of creating a macro variable; Step 8 shows the PROC SQL method.)&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sun, 14 Jun 2009 20:25:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-Dynamic-data-step/m-p/44424#M11753</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-06-14T20:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help. Dynamic data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-help-Dynamic-data-step/m-p/44425#M11754</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
ThankS! i will try this.&lt;BR /&gt;
&lt;BR /&gt;
I really preciate your help! &lt;BR /&gt;
&lt;BR /&gt;
I hope i can do the code..:-)&lt;BR /&gt;
&lt;BR /&gt;
Have a nice day</description>
      <pubDate>Mon, 15 Jun 2009 17:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-help-Dynamic-data-step/m-p/44425#M11754</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-15T17:56:52Z</dc:date>
    </item>
  </channel>
</rss>

