<?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: Unable to access precode data step variables from the where-statement of an Extract transformation in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Unable-to-access-precode-data-step-variables-from-the-where/m-p/131945#M1832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call symput in the datastep will create macro variables for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data somedates ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput ('firstdate', put(firstdate, yourformat.)) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* repeat for each date */&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your extract transformation requirement you may need dates to be datetime numbers or formatted dates or datetimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard in Oz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2012 22:30:32 GMT</pubDate>
    <dc:creator>RichardinOz</dc:creator>
    <dc:date>2012-11-21T22:30:32Z</dc:date>
    <item>
      <title>Unable to access precode data step variables from the where-statement of an Extract transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Unable-to-access-precode-data-step-variables-from-the-where/m-p/131944#M1831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created a DI Studio job that requires complex date variables in order to function. All the date variables are calculated in a data step in the precode of an Extract transformation, and show up with correct values in the log. However, I just learned that the precode data step variables aren't accessible from the Extract's where-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the best way of making the Extract's precode data step variables available for reference in the Extract's where-statement? I attempted putting %let in front of each variable to no avail, so I guess they're all local to the data step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 22:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Unable-to-access-precode-data-step-variables-from-the-where/m-p/131944#M1831</guid>
      <dc:creator>TurnTheBacon</dc:creator>
      <dc:date>2012-11-21T22:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access precode data step variables from the where-statement of an Extract transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Unable-to-access-precode-data-step-variables-from-the-where/m-p/131945#M1832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call symput in the datastep will create macro variables for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data somedates ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput ('firstdate', put(firstdate, yourformat.)) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* repeat for each date */&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your extract transformation requirement you may need dates to be datetime numbers or formatted dates or datetimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard in Oz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 22:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Unable-to-access-precode-data-step-variables-from-the-where/m-p/131945#M1832</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2012-11-21T22:30:32Z</dc:date>
    </item>
  </channel>
</rss>

