<?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 symput in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/call-symput/m-p/101041#M28343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;set sashelp.class ;&lt;BR /&gt;call symputx(cats('aa',strip(_n_)),sex);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%put _user_;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2012 14:59:17 GMT</pubDate>
    <dc:creator>Linlin</dc:creator>
    <dc:date>2012-05-02T14:59:17Z</dc:date>
    <item>
      <title>call symput</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/call-symput/m-p/101039#M28341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use symput in data step to put a variable's each value of each oberservations into batch of macro variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;set sashelp.class end=eof;&lt;/P&gt;&lt;P&gt;do until (eof);&lt;/P&gt;&lt;P&gt;call symput('aa'||_n_,sex);&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%put &amp;amp;aa1 &amp;amp;aa2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 14:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/call-symput/m-p/101039#M28341</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-05-02T14:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: call symput</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/call-symput/m-p/101040#M28342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;set sashelp.class end=eof;&lt;/P&gt;&lt;P&gt;*do until (eof);&lt;/P&gt;&lt;P&gt;call symput('aa'||left(_n_),sex);&lt;/P&gt;&lt;P&gt;*end;&lt;/P&gt;&lt;P&gt;*stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%put &amp;amp;aa1 &amp;amp;aa2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 14:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/call-symput/m-p/101040#M28342</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-05-02T14:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: call symput</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/call-symput/m-p/101041#M28343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;set sashelp.class ;&lt;BR /&gt;call symputx(cats('aa',strip(_n_)),sex);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%put _user_;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 14:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/call-symput/m-p/101041#M28343</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-05-02T14:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: call symput</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/call-symput/m-p/101042#M28344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ... you might also consider SYMPUTX to reduce the length of the macro variables, for example ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data _null_; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;set sashelp.class (obs=2); &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;call symput(cats('aa',_n_),name); &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;call symputx(cats('bb',_n_),name); &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run; &lt;/STRONG&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;&lt;STRONG&gt;%put |&amp;amp;aa1| |&amp;amp;aa2|; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;%put |&amp;amp;bb1| |&amp;amp;bb2|;&lt;/STRONG&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;&lt;STRONG&gt;123&amp;nbsp; %put |&amp;amp;aa1| |&amp;amp;aa2|;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;|Alfred&amp;nbsp; | |Alice&amp;nbsp;&amp;nbsp; |&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;124&amp;nbsp; %put |&amp;amp;bb1| |&amp;amp;bb2|;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;|Alfred| |Alice|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, the various CAT functions do not give you log messages when concatenating numeric variables such as _N_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATS applies STRIP to each argument so I don't think it's necessary to add the STRIP function within CATS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 15:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/call-symput/m-p/101042#M28344</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2012-05-02T15:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: call symput</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/call-symput/m-p/101043#M28345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Milke! It is good to know.&amp;nbsp; - Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 17:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/call-symput/m-p/101043#M28345</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-05-02T17:18:56Z</dc:date>
    </item>
  </channel>
</rss>

