<?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: Inserting the value of a date variable into a filename during proc export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Inserting-the-value-of-a-date-variable-into-a-filename-during/m-p/384672#M91894</link>
    <description>&lt;P&gt;What happens then that's unexpected, your code looks correct.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2017 16:09:11 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-08-01T16:09:11Z</dc:date>
    <item>
      <title>Inserting the value of a date variable into a filename during proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-the-value-of-a-date-variable-into-a-filename-during/m-p/384647#M91891</link>
      <description>&lt;P&gt;I'm trying to include the value of two prompts I have generated in SAS EG in the filename during a PROC EXPORT step. &amp;nbsp;One prompt is numeric and resolves in the file name just fine, but the other prompt is a date and I keep getting WARNING: Apparent symbolic reference LOOKBACKSTARTDATE not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;PROC Export DATA=WORK.MONTHLYCOMPILED&lt;BR /&gt;OUTFILE="C:\Documents\SASoutput\monthly_&amp;amp;lookbackstartdate._&amp;amp;txstartcohort..csv"&lt;BR /&gt;DBMS=csv&lt;BR /&gt;REPLACE;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The date variable - &amp;amp;loobackstartdate - describes the start date for the data set that went into the anlaysis. &amp;nbsp;It's not like a date/time stamp for the run itself, so using a function that inserts today's date is not what I'm going for. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I played around with trying to convert &amp;amp;lookbackstartdate into text and saving that as another variable with a preceding %let step, but I'm just tripping over myself on how to do that.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-the-value-of-a-date-variable-into-a-filename-during/m-p/384647#M91891</guid>
      <dc:creator>weissalberich</dc:creator>
      <dc:date>2017-08-01T15:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting the value of a date variable into a filename during proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-the-value-of-a-date-variable-into-a-filename-during/m-p/384658#M91892</link>
      <description>&lt;P&gt;So where is&amp;nbsp;&lt;SPAN&gt;&amp;amp;lookbackstartdate. defined? &amp;nbsp;The warning is telling you that there is no macro variable by that name in the current scope. &amp;nbsp;Not sure how we could help you further without some information?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-the-value-of-a-date-variable-into-a-filename-during/m-p/384658#M91892</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-01T15:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting the value of a date variable into a filename during proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-the-value-of-a-date-variable-into-a-filename-during/m-p/384666#M91893</link>
      <description>&lt;P&gt;It's defined via a prompt I created in SAS EG, and set to be used throughout the project. &amp;nbsp;It is used&amp;nbsp;in other queries in the project to restrict data. &amp;nbsp;It's the same thing I have done for the numeric&amp;nbsp;txstartcohort variable that does resolve correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Edit Prompt_2017-08-01_10-55-03.jpg" style="width: 440px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14269iDB65A00B22C9BBC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Edit Prompt_2017-08-01_10-55-03.jpg" alt="Edit Prompt_2017-08-01_10-55-03.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 15:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-the-value-of-a-date-variable-into-a-filename-during/m-p/384666#M91893</guid>
      <dc:creator>weissalberich</dc:creator>
      <dc:date>2017-08-01T15:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting the value of a date variable into a filename during proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-the-value-of-a-date-variable-into-a-filename-during/m-p/384672#M91894</link>
      <description>&lt;P&gt;What happens then that's unexpected, your code looks correct.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 16:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-the-value-of-a-date-variable-into-a-filename-during/m-p/384672#M91894</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-01T16:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting the value of a date variable into a filename during proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-the-value-of-a-date-variable-into-a-filename-during/m-p/384827#M91967</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156804"&gt;@weissalberich&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;It's defined via a prompt I created in SAS EG, and set to be used throughout the project. &amp;nbsp;It is used&amp;nbsp;in other queries in the project to restrict data. &amp;nbsp;It's the same thing I have done for the numeric&amp;nbsp;txstartcohort variable that does resolve correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Edit Prompt_2017-08-01_10-55-03.jpg" style="width: 440px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14269iDB65A00B22C9BBC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Edit Prompt_2017-08-01_10-55-03.jpg" alt="Edit Prompt_2017-08-01_10-55-03.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You don't show the name used in the construction. I would triple check spelling for your use &amp;amp;LOOKBACKSTARTDATE. Perhaps the entry screen cutoff a few characters or you accidentaly used LOOKBACKSTARTDATA or similar&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 22:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-the-value-of-a-date-variable-into-a-filename-during/m-p/384827#M91967</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-01T22:24:40Z</dc:date>
    </item>
  </channel>
</rss>

