<?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 %Sysfunc to work in a PDF File Name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Get-Sysfunc-to-work-in-a-PDF-File-Name/m-p/375395#M89994</link>
    <description>&lt;P&gt;The macro processor ignores string quoted using single quote characters. Use double qoute characters instead. &amp;nbsp;When you put characters after the macro variable name that are valid characters to use in a macro variable name you need to tell SAS where your variable name ends. You use the period for this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS PDF FILE = "C:&amp;amp;month.&amp;amp;year._VideoCounts.pdf";&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Jul 2017 16:00:35 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-07-12T16:00:35Z</dc:date>
    <item>
      <title>How do I Get %Sysfunc to work in a PDF File Name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Get-Sysfunc-to-work-in-a-PDF-File-Name/m-p/375393#M89992</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't get the month and year to appear in the ODS PDF FILE, but it works throughout the program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let today = %sysfunc( TODAY());&lt;/P&gt;&lt;P&gt;%let month = %sysfunc( PUTN(&amp;amp;TODAY - 28,MONNAME3.));&lt;/P&gt;&lt;P&gt;%let year = %sysfunc( PUTN(&amp;amp;TODAY - 28,YEAR4.));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS PDF FILE = 'C:&amp;amp;month&amp;amp;year_VideoCounts.pdf';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;CEG&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:51:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Get-Sysfunc-to-work-in-a-PDF-File-Name/m-p/375393#M89992</guid>
      <dc:creator>CEG</dc:creator>
      <dc:date>2017-07-12T15:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Get %Sysfunc to work in a PDF File Name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Get-Sysfunc-to-work-in-a-PDF-File-Name/m-p/375395#M89994</link>
      <description>&lt;P&gt;The macro processor ignores string quoted using single quote characters. Use double qoute characters instead. &amp;nbsp;When you put characters after the macro variable name that are valid characters to use in a macro variable name you need to tell SAS where your variable name ends. You use the period for this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS PDF FILE = "C:&amp;amp;month.&amp;amp;year._VideoCounts.pdf";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2017 16:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Get-Sysfunc-to-work-in-a-PDF-File-Name/m-p/375395#M89994</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-12T16:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Get %Sysfunc to work in a PDF File Name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Get-Sysfunc-to-work-in-a-PDF-File-Name/m-p/375399#M89996</link>
      <description>Perfect! Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jul 2017 16:10:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Get-Sysfunc-to-work-in-a-PDF-File-Name/m-p/375399#M89996</guid>
      <dc:creator>CEG</dc:creator>
      <dc:date>2017-07-12T16:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Get %Sysfunc to work in a PDF File Name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Get-Sysfunc-to-work-in-a-PDF-File-Name/m-p/375405#M90000</link>
      <description>&lt;P&gt;Not sure why you need all that code, just do:&lt;/P&gt;
&lt;PRE&gt;ods pdf file="c:\%sysfunc(date(),dtmonyy7.)_VideoCounts.pdf";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 16:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Get-Sysfunc-to-work-in-a-PDF-File-Name/m-p/375405#M90000</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-12T16:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Get %Sysfunc to work in a PDF File Name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Get-Sysfunc-to-work-in-a-PDF-File-Name/m-p/375408#M90001</link>
      <description>Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is a lot easier.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jul 2017 16:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Get-Sysfunc-to-work-in-a-PDF-File-Name/m-p/375408#M90001</guid>
      <dc:creator>CEG</dc:creator>
      <dc:date>2017-07-12T16:26:39Z</dc:date>
    </item>
  </channel>
</rss>

