<?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: Pass Blank Value to SAS Dynamic SQL Macro in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Pass-Blank-Value-to-SAS-Dynamic-SQL-Macro/m-p/193235#M4442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Passing a null value should be easy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MyMacro ()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 21:10:48 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2015-03-03T21:10:48Z</dc:date>
    <item>
      <title>Pass Blank Value to SAS Dynamic SQL Macro</title>
      <link>https://communities.sas.com/t5/Developers/Pass-Blank-Value-to-SAS-Dynamic-SQL-Macro/m-p/193233#M4440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; font-family: 'Arial',sans-serif; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;"&gt;In SAS 9.2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; font-family: 'Arial',sans-serif; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;"&gt;I am converting a series of similar temporary table creation blocks into a macro.&amp;nbsp;&amp;nbsp; I figured out how to write the macro with the&lt;BR /&gt;exception of where one table contains one more column than another.&amp;nbsp; I need to be able to pass a blank value into&lt;BR /&gt;a macro that won’t throw off my SQL create table statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; font-family: 'Arial',sans-serif; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;"&gt;For the column I want I found that I can use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; font-family: 'Arial',sans-serif; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;"&gt;%MyMacro(%str(four_digit_year varchar(&lt;STRONG&gt;4&lt;/STRONG&gt;),));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; font-family: 'Arial',sans-serif; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;"&gt;I am not sure what I can use if I want to include a null.&amp;nbsp; Eg.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; font-family: 'Arial',sans-serif; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;"&gt;%&lt;STRONG&gt;&lt;EM&gt;MyMacro&lt;/EM&gt;&lt;/STRONG&gt;(null)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; font-family: 'Arial',sans-serif; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin;"&gt;It seems that I can’t use “”&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 20:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Pass-Blank-Value-to-SAS-Dynamic-SQL-Macro/m-p/193233#M4440</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-03-03T20:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Blank Value to SAS Dynamic SQL Macro</title>
      <link>https://communities.sas.com/t5/Developers/Pass-Blank-Value-to-SAS-Dynamic-SQL-Macro/m-p/193234#M4441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="line-height: 107%; font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt; The same idea would be useful here.&amp;nbsp; If I could feed in a blank &amp;amp;group into a&lt;BR /&gt;template.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc template;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define statgraph TotalGraph;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamic TITLE1 TITLE2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; begingraph;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; entrytitle halign=left TITLE1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; entrytitle TITLE2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layout overlay / xaxisopts =(label = ' ') yaxisopts =(label = ' ' linearopts=(viewmin=0)) walldisplay=(fill);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; seriesplot x=FOUR_DIGIT_YEAR y=students_enrolled&amp;nbsp;&amp;nbsp; / &amp;amp;group&lt;/P&gt;&lt;P&gt;name='a' index=index display=all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROLENAME=(Year=ACADEMIC_PERIOD_DESC Level=&amp;amp;enrRepTy)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIP=(Year Level Y) tiplabel=(Year='Academic Term' Y='Students Enrolled' Level ='Level') datalabel=students_enrolled; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endlayout;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endgraph;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 20:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Pass-Blank-Value-to-SAS-Dynamic-SQL-Macro/m-p/193234#M4441</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-03-03T20:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Blank Value to SAS Dynamic SQL Macro</title>
      <link>https://communities.sas.com/t5/Developers/Pass-Blank-Value-to-SAS-Dynamic-SQL-Macro/m-p/193235#M4442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Passing a null value should be easy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MyMacro ()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 21:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Pass-Blank-Value-to-SAS-Dynamic-SQL-Macro/m-p/193235#M4442</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-03-03T21:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Blank Value to SAS Dynamic SQL Macro</title>
      <link>https://communities.sas.com/t5/Developers/Pass-Blank-Value-to-SAS-Dynamic-SQL-Macro/m-p/193236#M4443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Worked for me.&amp;nbsp; If you have a method that accepts three parameters and you feed it two SAS feeds only two parameters.&amp;nbsp; Apparently Polymorphism is not included in SAS.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 17:27:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Pass-Blank-Value-to-SAS-Dynamic-SQL-Macro/m-p/193236#M4443</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-03-04T17:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Blank Value to SAS Dynamic SQL Macro</title>
      <link>https://communities.sas.com/t5/Developers/Pass-Blank-Value-to-SAS-Dynamic-SQL-Macro/m-p/193237#M4444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not difficult to overcome:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MyMacro (A,,C)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first parameter receives a value of A, the second is null, and the third is C.&amp;nbsp; It might be easier to understand if you switch from positional parameters to keyword parameters, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 17:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Pass-Blank-Value-to-SAS-Dynamic-SQL-Macro/m-p/193237#M4444</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-03-04T17:38:03Z</dc:date>
    </item>
  </channel>
</rss>

