<?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: Call execute single quote in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172142#M33112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I've not clearly explained my goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is write, &lt;SPAN style="text-decoration: underline;"&gt;using a call execute,&lt;/SPAN&gt; an if instruction where I have to check if a char variable is missing, I mean I have to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if mycharvar eq '' then bla bla bla;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using a call execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean, I have to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call execute ('if myvariable eq '' then do;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but whit I don't know how manage the quote...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What my dataset contains is not relevant...my problem is "how write the call execute...I hope is more clear now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway a solution should be, wiht a datastep before to run the call execute, create another variable in the input dataset that is equals to 0 if myvariable is missing or 1 if not, something like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data input2;&lt;/P&gt;&lt;P&gt;set input1;&lt;/P&gt;&lt;P&gt;if myvariable eq '' then myvariablenum = 0;&lt;/P&gt;&lt;P&gt;else&amp;nbsp; myvariablenum = 1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then I run the original code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; set myinput end=last;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if _n_=1 then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('data myoutput;');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('set myinput;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; call execute ('if myvariablenum = 0 then do;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;BR /&gt;&amp;nbsp;&amp;nbsp; call execute ('end; /* myvariable missing end */');&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if last then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('run;');&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 08:24:49 GMT</pubDate>
    <dc:creator>garag</dc:creator>
    <dc:date>2014-02-13T08:24:49Z</dc:date>
    <item>
      <title>Call execute single quote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172137#M33107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to write a datastep using call execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've to write with a call execute something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if myvariable eq '' then bla bla bla;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried about one thousand of version of the following code, but the &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;way of thinking&lt;/SPAN&gt;&lt;/SPAN&gt; of SAS is often more &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;perverse than you can image.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; set myinput end=last;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if _n_=1 then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('data myoutput;');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('set myinput;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; call execute ('if myvariable eq WHAT I HAVE TO WRITE then do;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;BR /&gt;&amp;nbsp;&amp;nbsp; call execute ('end; /* myvariable missing end */');&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if last then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('run;');&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone know how solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 16:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172137#M33107</guid>
      <dc:creator>garag</dc:creator>
      <dc:date>2014-02-12T16:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Call execute single quote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172138#M33108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your input data set look like, or at least a subset, and what should the output be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the output supposed to be a text file with SAS code?&lt;/P&gt;&lt;P&gt;Call Execute is intended to interface with the SAS macro facility and generally would have the name of a compiled macro and possibly paramaters using values from the dataset. You don't seem to have any reference to macros at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 20:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172138#M33108</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-02-12T20:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Call execute single quote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172139#M33109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't say whether CALL EXECUTE is a good tool for the particular application you are trying to write, but here is one example of what you might change.&amp;nbsp; The key would be in the place that you have indicated, WHAT I HAVE TO WRITE.&amp;nbsp; This might be a possibility:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call execute('if myvariable eq ''' || variable_name_from_input || ''' then do;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difficult to read sets of quotes are three single quotes in a row.&amp;nbsp; In the context of a DATA set, assuming that VARIABLE_NAME_FROM_INPUT had a value of ABC, the generated code would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if myvariable eq 'ABC' then do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least it seems like that's what you are trying to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 21:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172139#M33109</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-02-12T21:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Call execute single quote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172140#M33110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you describe more of what you HAVE (i.e. show 10 records from&amp;nbsp; MYINPUT), and also show the SAS step you are hoping to generate ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually for call execute you have a code with "control data", which you use to generate SAS code (or macro calls, as BallardW mentions).&amp;nbsp; It's odd that in your setting you have myinput as both the dataset you are reading and also the input dataset for the step being generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is&amp;nbsp; functional code that uses call execute without using macros, in&amp;nbsp; case it helps...&amp;nbsp; Note that the code it generates is probably not what one would want in a read setting, but it does so conditional processing in the generated step...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data _null_;
&amp;nbsp;&amp;nbsp; set sashelp.class end=last;
&amp;nbsp;&amp;nbsp; if _n_=1 then do;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('data myout;');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('set sashelp.shoes;');
&amp;nbsp;&amp;nbsp; end;

&amp;nbsp;&amp;nbsp; call execute(catt("*processing sashelp.class name=",name,";"));
&amp;nbsp;&amp;nbsp; call execute(catt("if stores lt",age," then do;"));
&amp;nbsp;&amp;nbsp; call execute("output;");
&amp;nbsp;&amp;nbsp; call execute("end;");

&amp;nbsp;&amp;nbsp; if last then do;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('run;');
&amp;nbsp;&amp;nbsp; end;
run;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 21:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172140#M33110</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-02-12T21:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Call execute single quote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172141#M33111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is usually a lot easier to just write the statements to a file using PUT statements and then %INCLUDE the file instead of bothering with CALL EXECUTE.&amp;nbsp; Usually the control data set is different than the one that the generated code will work on.&lt;/P&gt;&lt;P&gt;To think of a trivial example say want to generate IF/THEN statements that would have a similar effect as applying a format.&amp;nbsp; So you have dataset DECODES with two variables, code and decode.&amp;nbsp; Then you can generate code that will test the variable MYCODE in your input data set and generate MYDECODE with the decoded value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;* Make an example control file ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data decodes ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; infile cards dsd dlm='|' truncover ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; length code $5 decode $10. ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; input code decode;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;cards;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1|Large&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2|Medium&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3|Small&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;* Use the control file to generate a data step ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;filename code temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; file code ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; if _n_=1 then put 'data new;' / '&amp;nbsp; set old; ' / '&amp;nbsp; length mydecode $10;' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; if eof then put 'run;' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; set decodes end=eof ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; put&amp;nbsp; '&amp;nbsp; if mycode = ' code : $quote. 'then mydecode = ' decode :$quote. ';' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;* Run the generated code ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt; line-height: 1.5em;"&gt;%inc code / source2 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So given our simple control file this data _null_ step will generate this program in the temporary code file:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data new;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; set old;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; length mydecode $10;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if mycode = "1" then mydecode = "Large" ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if mycode = "2" then mydecode = "Medium" ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if mycode = "3" then mydecode = "Small" ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 00:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172141#M33111</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-02-13T00:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Call execute single quote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172142#M33112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I've not clearly explained my goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is write, &lt;SPAN style="text-decoration: underline;"&gt;using a call execute,&lt;/SPAN&gt; an if instruction where I have to check if a char variable is missing, I mean I have to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if mycharvar eq '' then bla bla bla;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using a call execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean, I have to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call execute ('if myvariable eq '' then do;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but whit I don't know how manage the quote...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What my dataset contains is not relevant...my problem is "how write the call execute...I hope is more clear now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway a solution should be, wiht a datastep before to run the call execute, create another variable in the input dataset that is equals to 0 if myvariable is missing or 1 if not, something like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data input2;&lt;/P&gt;&lt;P&gt;set input1;&lt;/P&gt;&lt;P&gt;if myvariable eq '' then myvariablenum = 0;&lt;/P&gt;&lt;P&gt;else&amp;nbsp; myvariablenum = 1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then I run the original code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; set myinput end=last;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if _n_=1 then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('data myoutput;');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('set myinput;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; call execute ('if myvariablenum = 0 then do;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;BR /&gt;&amp;nbsp;&amp;nbsp; call execute ('end; /* myvariable missing end */');&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if last then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('run;');&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 08:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172142#M33112</guid>
      <dc:creator>garag</dc:creator>
      <dc:date>2014-02-13T08:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Call execute single quote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172143#M33113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another solution, the right and elegant one, is including the if instruction of the call execute inside the double quote&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call execute ("if myvariable ne '' then do;");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 08:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172143#M33113</guid>
      <dc:creator>garag</dc:creator>
      <dc:date>2014-02-13T08:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Call execute single quote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172144#M33114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or you could use the missing() function:&lt;/P&gt;&lt;P&gt;call execute( 'if missing(myvariable) then do;' );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 11:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-execute-single-quote/m-p/172144#M33114</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-02-13T11:31:00Z</dc:date>
    </item>
  </channel>
</rss>

