<?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 to use RUN_MACRO? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-RUN-MACRO/m-p/200493#M50052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not certain what you mean by 'hangs' but I am going to assume you are referring to the effect of swait=yes (signonwait).&amp;nbsp; This option will cause the client session to wait until the remote session has completed the sign on task and SAS is fully initialized before continuing to any following statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2015 14:38:02 GMT</pubDate>
    <dc:creator>FriedEgg</dc:creator>
    <dc:date>2015-06-05T14:38:02Z</dc:date>
    <item>
      <title>How to use RUN_MACRO?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-RUN-MACRO/m-p/200492#M50051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Can someone help me understand why the following code hangs in SAS? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;%macro attempt_signon;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;signon %sysfunc(dequote(&amp;amp;t.)) sascmd="!sascmdv" swait=yes cmacvar=p;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;%mend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc fcmp &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outlib=work.func.connect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;function attempt_signon(t $);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = run_macro('attempt_signon', t, p);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if rc = 0 then return(p);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else return(.);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;endsub;&lt;/SPAN&gt;&lt;BR /&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;option cmplib=(work.func);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;a = "t";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;p = attempt_signon(a);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;put _all_;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 05:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-RUN-MACRO/m-p/200492#M50051</guid>
      <dc:creator>GiovannaEdmonds</dc:creator>
      <dc:date>2015-06-05T05:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use RUN_MACRO?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-use-RUN-MACRO/m-p/200493#M50052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not certain what you mean by 'hangs' but I am going to assume you are referring to the effect of swait=yes (signonwait).&amp;nbsp; This option will cause the client session to wait until the remote session has completed the sign on task and SAS is fully initialized before continuing to any following statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 14:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-use-RUN-MACRO/m-p/200493#M50052</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2015-06-05T14:38:02Z</dc:date>
    </item>
  </channel>
</rss>

