<?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: How do I get SAS to write a timestamp to an exported file in a YYYYMMDDHHMMSS format? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-SAS-to-write-a-timestamp-to-an-exported-file-in-a/m-p/667573#M199936</link>
    <description>&lt;P&gt;With a picture format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    picture mytmefmt
        low-high = '%Y%0m%0d%0H%0M%0S'
        (datatype=datetime);
run;

%put %sysfunc(datetime(), mytmefmt.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Jul 2020 20:43:29 GMT</pubDate>
    <dc:creator>ketpt42</dc:creator>
    <dc:date>2020-07-07T20:43:29Z</dc:date>
    <item>
      <title>How do I get SAS to write a timestamp to an exported file in a YYYYMMDDHHMMSS format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-SAS-to-write-a-timestamp-to-an-exported-file-in-a/m-p/667559#M199929</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;I have the following SAS code:&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;​&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;proc export data=work.dataset&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;outfile="&amp;amp;ExportLoc./ABC_%sysfunc(today(),yymmdd10)_PROVIDER_TRIGGER.xlsx" &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;dbms=xlsx replace;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;run; &amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;​&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;how do I get SAS to export out to a YYYYMMDDHHMMSS format in the filename&amp;nbsp;instead?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Jul 2020 20:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-SAS-to-write-a-timestamp-to-an-exported-file-in-a/m-p/667559#M199929</guid>
      <dc:creator>InspectahDex</dc:creator>
      <dc:date>2020-07-07T20:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get SAS to write a timestamp to an exported file in a YYYYMMDDHHMMSS format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-SAS-to-write-a-timestamp-to-an-exported-file-in-a/m-p/667573#M199936</link>
      <description>&lt;P&gt;With a picture format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    picture mytmefmt
        low-high = '%Y%0m%0d%0H%0M%0S'
        (datatype=datetime);
run;

%put %sysfunc(datetime(), mytmefmt.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jul 2020 20:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-SAS-to-write-a-timestamp-to-an-exported-file-in-a/m-p/667573#M199936</guid>
      <dc:creator>ketpt42</dc:creator>
      <dc:date>2020-07-07T20:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get SAS to write a timestamp to an exported file in a YYYYMMDDHHMMSS format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-SAS-to-write-a-timestamp-to-an-exported-file-in-a/m-p/667574#M199937</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=work.dataset 
outfile="&amp;amp;ExportLoc./ABC_%sysfunc(date(),yymmdd8.)%sysfunc(hour(%sysfunc(time())),z2.)%sysfunc(minute(%sysfunc(time())),z2.)%sysfunc(second(%sysfunc(time())),z2.)_PROVIDER_TRIGGER.xlsx"    
dbms=xlsx replace;
 run;  
​&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jul 2020 20:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-SAS-to-write-a-timestamp-to-an-exported-file-in-a/m-p/667574#M199937</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-07-07T20:50:19Z</dc:date>
    </item>
  </channel>
</rss>

