<?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: %put statement not giving string and count in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587164#M167673</link>
    <description>&lt;P&gt;And now please post the complete log, using the window displayed when clicking on the {i} button - that way the format is maintained and the log stays readable.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2019 08:36:16 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-09-09T08:36:16Z</dc:date>
    <item>
      <title>%put statement not giving string and count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587089#M167630</link>
      <description>I am writing the below statement:&lt;BR /&gt;%put ***&amp;amp;act*** ***&amp;amp;n***&lt;BR /&gt;I am supposed to recieve string and count in log but no result is showing also log is clear.</description>
      <pubDate>Sun, 08 Sep 2019 17:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587089#M167630</guid>
      <dc:creator>Ahmej</dc:creator>
      <dc:date>2019-09-08T17:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: %put statement not giving string and count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587090#M167631</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288965"&gt;@Ahmej&lt;/a&gt;&amp;nbsp; Welcome to SAS communities. Can you please post your code that creates those macro variables and the log. Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2019 17:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587090#M167631</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-09-08T17:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: %put statement not giving string and count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587100#M167634</link>
      <description>&lt;P&gt;This statement is incomplete.&amp;nbsp; If you would like it to execute, add a semicolon at the end of it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put ***&amp;amp;act*** ***&amp;amp;n***;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 08 Sep 2019 19:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587100#M167634</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-09-08T19:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: %put statement not giving string and count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587132#M167655</link>
      <description>Still its not working</description>
      <pubDate>Mon, 09 Sep 2019 03:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587132#M167655</guid>
      <dc:creator>Ahmej</dc:creator>
      <dc:date>2019-09-09T03:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: %put statement not giving string and count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587133#M167656</link>
      <description>Proc sql;&lt;BR /&gt;&lt;BR /&gt;Select distinct actlevel into:act seprated by "@" from sasuser.admit;&lt;BR /&gt;&lt;BR /&gt;Select count(distinct actlevel) into:n from sasuser.admit;&lt;BR /&gt;&lt;BR /&gt;%put ***&amp;amp;act**** ***&amp;amp;n*** ;</description>
      <pubDate>Mon, 09 Sep 2019 03:29:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587133#M167656</guid>
      <dc:creator>Ahmej</dc:creator>
      <dc:date>2019-09-09T03:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: %put statement not giving string and count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587164#M167673</link>
      <description>&lt;P&gt;And now please post the complete log, using the window displayed when clicking on the {i} button - that way the format is maintained and the log stays readable.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 08:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587164#M167673</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-09-09T08:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: %put statement not giving string and count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587271#M167720</link>
      <description>&lt;P&gt;SASUSER.ADMIN is unlikely to exist. You may need to share the actual content of that data set as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or use a set that should be available to most such as SASHELP.CLASS;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Proc sql;

Select distinct sex into:act separated by "@" from sashelp.class;
quit;
%let n=&amp;amp;sqlobs;

%put ***&amp;amp;act.*** ***&amp;amp;n.***;
&lt;/PRE&gt;
&lt;P&gt;SAS creates an automatic variable named SQLOBS that contains the number of results returned from the most recent Proc SQL query. So no actual need to do the extra Select count.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 15:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587271#M167720</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-09T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: %put statement not giving string and count</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587281#M167727</link>
      <description>Thank you so much its working now.&lt;BR /&gt;&lt;BR /&gt;I got my result&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;</description>
      <pubDate>Mon, 09 Sep 2019 15:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-statement-not-giving-string-and-count/m-p/587281#M167727</guid>
      <dc:creator>Ahmej</dc:creator>
      <dc:date>2019-09-09T15:32:45Z</dc:date>
    </item>
  </channel>
</rss>

