<?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 macro notation when producing graphs in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/macro-notation-when-producing-graphs/m-p/194200#M7179</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below code works fine when I don't use a macro but when try to build a macro to allow for different paths, flags, it fails to execute. Is my macro notation incorrect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro exportgraphs(folder,flag);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; options orientation=landscape nodate nonumber;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ods listing gpath="H:\&amp;amp;folder.\";&lt;BR /&gt;&amp;nbsp; ods pdf file="H:\&amp;amp;folder.\&amp;amp;flag..pdf" columns=2 style=meadow startpage=no;&lt;BR /&gt;&amp;nbsp; ods graphics on/width=4.5in height=3.75in;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc sgplot data=dataset( where=(&amp;amp;flag = "Y" ));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title "title ";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbar level / response=exposure;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vline level / response=all_LR y2axis;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%exportgraphs(Under 10 levels,flag1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2015 15:39:48 GMT</pubDate>
    <dc:creator>brophymj</dc:creator>
    <dc:date>2015-03-04T15:39:48Z</dc:date>
    <item>
      <title>macro notation when producing graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/macro-notation-when-producing-graphs/m-p/194200#M7179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below code works fine when I don't use a macro but when try to build a macro to allow for different paths, flags, it fails to execute. Is my macro notation incorrect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro exportgraphs(folder,flag);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; options orientation=landscape nodate nonumber;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ods listing gpath="H:\&amp;amp;folder.\";&lt;BR /&gt;&amp;nbsp; ods pdf file="H:\&amp;amp;folder.\&amp;amp;flag..pdf" columns=2 style=meadow startpage=no;&lt;BR /&gt;&amp;nbsp; ods graphics on/width=4.5in height=3.75in;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc sgplot data=dataset( where=(&amp;amp;flag = "Y" ));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title "title ";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbar level / response=exposure;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vline level / response=all_LR y2axis;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%exportgraphs(Under 10 levels,flag1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 15:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/macro-notation-when-producing-graphs/m-p/194200#M7179</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-03-04T15:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: macro notation when producing graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/macro-notation-when-producing-graphs/m-p/194201#M7180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would add ods pdf close; before the %mend statement, and use &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;%exportgraphs(%str(Under 10 levels),flag1) instead of &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;%exportgraphs(Under 10 levels,flag1);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 15:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/macro-notation-when-producing-graphs/m-p/194201#M7180</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2015-03-04T15:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: macro notation when producing graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/macro-notation-when-producing-graphs/m-p/194202#M7181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the folder path exist before the code is run? i.e h:\Under 10 levels ? That could be an issue as well, or if the existing folder is named H:\ Under 10 levels&amp;nbsp;&amp;nbsp; (note space before Under) and if you are running on Unix then case of the folder name becomes an issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 17:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/macro-notation-when-producing-graphs/m-p/194202#M7181</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-03-05T17:23:00Z</dc:date>
    </item>
  </channel>
</rss>

