<?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: Need to get the SAS DI Filewriter filename to use in another macro in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Need-to-get-the-SAS-DI-Filewriter-filename-to-use-in-another/m-p/267270#M7396</link>
    <description>&lt;P&gt;Moved post to the forum for DI Studio issues - Data Management.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2016 16:17:07 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-04-29T16:17:07Z</dc:date>
    <item>
      <title>Need to get the SAS DI Filewriter filename to use in another macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-to-get-the-SAS-DI-Filewriter-filename-to-use-in-another/m-p/267256#M7395</link>
      <description>&lt;P&gt;I have a filewriter transform where I have added a timestamp parameter to the filename that gets written to. This of course changes each day it is run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know how can I capture the filename to use in another macro that will FTP the file to another location?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log shows something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filename=/usr/DATA/ETL/TextOutput/myfile_20160429.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the best way to accomplish this issue or should I use a User Written solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 15:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-to-get-the-SAS-DI-Filewriter-filename-to-use-in-another/m-p/267256#M7395</guid>
      <dc:creator>rtynd123</dc:creator>
      <dc:date>2016-04-29T15:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get the SAS DI Filewriter filename to use in another macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-to-get-the-SAS-DI-Filewriter-filename-to-use-in-another/m-p/267270#M7396</link>
      <description>&lt;P&gt;Moved post to the forum for DI Studio issues - Data Management.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 16:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-to-get-the-SAS-DI-Filewriter-filename-to-use-in-another/m-p/267270#M7396</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-04-29T16:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get the SAS DI Filewriter filename to use in another macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-to-get-the-SAS-DI-Filewriter-filename-to-use-in-another/m-p/267279#M7402</link>
      <description>&lt;P&gt;Can you specify what you mean by a parameter.&lt;/P&gt;
&lt;P&gt;If you specify as a Parameter on the eternal, there will be a macro variable automatically assigned for you, and you could use that in a subsequent step, such as post code, or User Written code for your ftp.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 17:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-to-get-the-SAS-DI-Filewriter-filename-to-use-in-another/m-p/267279#M7402</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-04-29T17:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get the SAS DI Filewriter filename to use in another macro</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-to-get-the-SAS-DI-Filewriter-filename-to-use-in-another/m-p/267287#M7404</link>
      <description>&lt;P&gt;I have a parameter defined in the Job&amp;nbsp;named 'timestamp' that is used hold the date like '20160429'. This is appended to the file name for the external output file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now see where I can capture this date and append it to the hard coded part of the file name, so I appreciate the suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 17:29:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-to-get-the-SAS-DI-Filewriter-filename-to-use-in-another/m-p/267287#M7404</guid>
      <dc:creator>rtynd123</dc:creator>
      <dc:date>2016-04-29T17:29:33Z</dc:date>
    </item>
  </channel>
</rss>

