<?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: Issues with macro use in naming PDF in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Issues-with-macro-use-in-naming-PDF/m-p/375415#M90007</link>
    <description>&lt;P&gt;Never mind - got it sorted! I used double quotes around the filename instead of single quotes. I'll leave this here in case it might help someone else.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 17:02:25 GMT</pubDate>
    <dc:creator>wernie</dc:creator>
    <dc:date>2017-07-12T17:02:25Z</dc:date>
    <item>
      <title>Issues with macro use in naming PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issues-with-macro-use-in-naming-PDF/m-p/375414#M90006</link>
      <description>&lt;P&gt;I'm slowly learning macros and seem to have some issues along the way that I don't quite know how to resolve yet. I have different graphs that I need to create and want to save so each PDF is named with the state abbreviation followed by '_Origpop_RSEGraph.pdf'. I have an example below with the first state; however, when I run this, my PDF gets saved as &amp;amp;stateabb._Origpop_RSEGraph.pdf. I want it to be saved as 'FL_Origpop_RSEGraph.pdf'. (FYI - I have it saved to a network drive, so I just put desktop in front of the path.) Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro RSE_origpop(stateabb, state);&lt;BR /&gt;&lt;BR /&gt;options orientation=landscape nodate nonumber;&lt;BR /&gt;ods pdf file = 'desktop\&amp;amp;stateabb._Origpop_RSEGraph.pdf' dpi=300;&lt;BR /&gt;ods graphics on / antialias=on antialiasmax=9500 width=2500 height=1800;&lt;BR /&gt;proc sgplot data=&amp;amp;stateabb.outcome.&amp;amp;stateabb._all_stats;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;format Threshold Threshold.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;scatter x=cases y=rse_rate;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;xaxis label='Cases';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;yaxis label='Relative standard error';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;title1 'RSE as a function of the number of cases';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;title2 '&amp;amp;state';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;refline 30 / axis=y lineattrs=(pattern=shortdash color=red);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;where Threshold=0;&lt;BR /&gt;run;&lt;BR /&gt;title1;&lt;BR /&gt;title2;&lt;BR /&gt;ods pdf close;&lt;BR /&gt;&lt;BR /&gt;%mend RSE_origpop;&lt;BR /&gt;&lt;BR /&gt;%RSE_origpop(FL, Florida);&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 16:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issues-with-macro-use-in-naming-PDF/m-p/375414#M90006</guid>
      <dc:creator>wernie</dc:creator>
      <dc:date>2017-07-12T16:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with macro use in naming PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issues-with-macro-use-in-naming-PDF/m-p/375415#M90007</link>
      <description>&lt;P&gt;Never mind - got it sorted! I used double quotes around the filename instead of single quotes. I'll leave this here in case it might help someone else.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 17:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issues-with-macro-use-in-naming-PDF/m-p/375415#M90007</guid>
      <dc:creator>wernie</dc:creator>
      <dc:date>2017-07-12T17:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with macro use in naming PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issues-with-macro-use-in-naming-PDF/m-p/375416#M90008</link>
      <description>&lt;P&gt;In ODS PDF, use double-quotes instead of single quotes.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 17:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issues-with-macro-use-in-naming-PDF/m-p/375416#M90008</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-07-12T17:02:30Z</dc:date>
    </item>
  </channel>
</rss>

