<?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: Issue with getting date function to populate filename in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Issue-with-getting-date-function-to-populate-filename/m-p/730771#M866</link>
    <description>&lt;P&gt;Thanks so much for catching the single quote, this worked perfectly after I made the change. I am reusing code someone else wrote and did not see this...not sure how it worked in BASE but that is she was using it before we upgraded to VIYA. Now I am curious if it really ran there but not looking back. I really appreciate the help, got into the weeds and could not see it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 16:13:18 GMT</pubDate>
    <dc:creator>bweeks59</dc:creator>
    <dc:date>2021-04-01T16:13:18Z</dc:date>
    <item>
      <title>Issue with getting date function to populate filename</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Issue-with-getting-date-function-to-populate-filename/m-p/730763#M864</link>
      <description>&lt;P&gt;I am using this code to populate the date in filename as seen below but the output is not returning the date. Filename comes out like this&amp;nbsp;SAS_backup_roll_&amp;amp;now1..xlsx&amp;nbsp; - This works fine in BASE SAS but not in VIYA Studio, using PROC Export as well to export multiple worksheets to the excel workbook. Any help will be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let now1=%sysfunc(today(),yymmddd10.);&lt;BR /&gt;filename backup filesrvc folderpath= '/USCG/Aviation Logistics Division/RMB/OUTPUTS/' filename='SAS_backup_roll_&amp;amp;now1..xlsx';&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc export data=work.tpcA&lt;BR /&gt;outfile=backup&lt;BR /&gt;dbms=xlsx replace;&lt;BR /&gt;sheet='A-TPC funds';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 16:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Issue-with-getting-date-function-to-populate-filename/m-p/730763#M864</guid>
      <dc:creator>bweeks59</dc:creator>
      <dc:date>2021-04-01T16:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with getting date function to populate filename</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Issue-with-getting-date-function-to-populate-filename/m-p/730768#M865</link>
      <description>&lt;P&gt;I'm not sure how it could ever work in any version of SAS with single quotes after filename=&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should work with double-quotes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&amp;nbsp;&lt;SPAN&gt;filename="SAS_backup_roll_&amp;amp;now1..xlsx";&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;unless there are other problems that are not obvious.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 16:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Issue-with-getting-date-function-to-populate-filename/m-p/730768#M865</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-04-01T16:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with getting date function to populate filename</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Issue-with-getting-date-function-to-populate-filename/m-p/730771#M866</link>
      <description>&lt;P&gt;Thanks so much for catching the single quote, this worked perfectly after I made the change. I am reusing code someone else wrote and did not see this...not sure how it worked in BASE but that is she was using it before we upgraded to VIYA. Now I am curious if it really ran there but not looking back. I really appreciate the help, got into the weeds and could not see it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 16:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Issue-with-getting-date-function-to-populate-filename/m-p/730771#M866</guid>
      <dc:creator>bweeks59</dc:creator>
      <dc:date>2021-04-01T16:13:18Z</dc:date>
    </item>
  </channel>
</rss>

