<?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 Dynamic output name in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-output-name/m-p/335964#M22316</link>
    <description>&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask if anyone know how to dynamically assign the output file name with current system datetime ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13496i1CE3222CE51F7CA1/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="CurrentDateTime.PNG" title="CurrentDateTime.PNG" /&gt;</description>
    <pubDate>Sun, 26 Feb 2017 08:41:53 GMT</pubDate>
    <dc:creator>SASNE</dc:creator>
    <dc:date>2017-02-26T08:41:53Z</dc:date>
    <item>
      <title>Dynamic output name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-output-name/m-p/335964#M22316</link>
      <description>&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask if anyone know how to dynamically assign the output file name with current system datetime ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13496i1CE3222CE51F7CA1/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="CurrentDateTime.PNG" title="CurrentDateTime.PNG" /&gt;</description>
      <pubDate>Sun, 26 Feb 2017 08:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-output-name/m-p/335964#M22316</guid>
      <dc:creator>SASNE</dc:creator>
      <dc:date>2017-02-26T08:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic output name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-output-name/m-p/335966#M22317</link>
      <description>&lt;P&gt;You might try to use one of the automatic macro variables that contain time information. Although I'm not sure if it breaks EG's dataset tracking (making creating process flows harder).&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2017 08:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-output-name/m-p/335966#M22317</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-26T08:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic output name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-output-name/m-p/335970#M22320</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x_%sysfunc(translate(%sysfunc(datetime(),datetime20.),_,:));
input col1 $ col2 $ col3 $;
x=catx(',',of col1-col3);
cards;
s y x
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Feb 2017 10:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-output-name/m-p/335970#M22320</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-26T10:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic output name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-output-name/m-p/335975#M22321</link>
      <description>&lt;P&gt;Hi KSharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help, do you know how to do that in proc sql?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2017 11:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-output-name/m-p/335975#M22321</guid>
      <dc:creator>SASNE</dc:creator>
      <dc:date>2017-02-26T11:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic output name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-output-name/m-p/335987#M22326</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127317"&gt;@SASNE&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi KSharp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help, do you know how to do that in proc sql?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table x_%sysfunc(translate(%sysfunc(datetime(),datetime20.),_,:)) as
select ....
from ....
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Feb 2017 15:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Dynamic-output-name/m-p/335987#M22326</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-26T15:49:22Z</dc:date>
    </item>
  </channel>
</rss>

