<?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 please describe output of below mention code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/please-describe-output-of-below-mention-code/m-p/481556#M286768</link>
    <description>&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;set sashelp.class end = last;&lt;/P&gt;
&lt;P&gt;call symput ('sname' || trim(left(_n_)) , name);&lt;/P&gt;
&lt;P&gt;if last then call symput ('var_count' , _n_);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro newvar;&lt;/P&gt;
&lt;P&gt;data output;&lt;/P&gt;
&lt;P&gt;set &lt;SPAN&gt;sashelp.class&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;%do = 1 %to &amp;amp;var_count;&lt;/P&gt;
&lt;P&gt;&amp;amp;&amp;amp;sname&amp;amp;i = (name = "&amp;amp;&amp;amp;sname&amp;amp;i");&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%newvar;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jul 2018 16:54:23 GMT</pubDate>
    <dc:creator>tarun_2202</dc:creator>
    <dc:date>2018-07-26T16:54:23Z</dc:date>
    <item>
      <title>please describe output of below mention code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-describe-output-of-below-mention-code/m-p/481556#M286768</link>
      <description>&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;set sashelp.class end = last;&lt;/P&gt;
&lt;P&gt;call symput ('sname' || trim(left(_n_)) , name);&lt;/P&gt;
&lt;P&gt;if last then call symput ('var_count' , _n_);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro newvar;&lt;/P&gt;
&lt;P&gt;data output;&lt;/P&gt;
&lt;P&gt;set &lt;SPAN&gt;sashelp.class&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;%do = 1 %to &amp;amp;var_count;&lt;/P&gt;
&lt;P&gt;&amp;amp;&amp;amp;sname&amp;amp;i = (name = "&amp;amp;&amp;amp;sname&amp;amp;i");&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%newvar;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 16:54:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-describe-output-of-below-mention-code/m-p/481556#M286768</guid>
      <dc:creator>tarun_2202</dc:creator>
      <dc:date>2018-07-26T16:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: please describe output of below mention code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-describe-output-of-below-mention-code/m-p/481557#M286769</link>
      <description>Did you run it? Also....you have some interesting variable names that make me not want to answer your question.</description>
      <pubDate>Thu, 26 Jul 2018 15:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-describe-output-of-below-mention-code/m-p/481557#M286769</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-26T15:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: please describe output of below mention code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-describe-output-of-below-mention-code/m-p/481568#M286770</link>
      <description>Hi,&lt;BR /&gt;In Output of this code, dummy variable created with same name as value of name variable having value of 0 and 1 ...</description>
      <pubDate>Thu, 26 Jul 2018 15:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-describe-output-of-below-mention-code/m-p/481568#M286770</guid>
      <dc:creator>tarun_2202</dc:creator>
      <dc:date>2018-07-26T15:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: please describe output of below mention code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-describe-output-of-below-mention-code/m-p/481571#M286771</link>
      <description>&lt;P&gt;You can achieve something similar without macro coding:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
set sashelp.class;
value = 1;
run;

proc transpose data=class out=want (drop=_name_);
by name age sex weight height;
var value;
id name;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jul 2018 16:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-describe-output-of-below-mention-code/m-p/481571#M286771</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-26T16:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: please describe output of below mention code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/please-describe-output-of-below-mention-code/m-p/481874#M286772</link>
      <description>&lt;P&gt;It is the same as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.class;
 dummy=1;
run;
proc logistic data=have outdesign=want(drop=intercept dummy) outdesignonly;
class name/param=glm;
model dummy=name;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jul 2018 14:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/please-describe-output-of-below-mention-code/m-p/481874#M286772</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-07-27T14:16:35Z</dc:date>
    </item>
  </channel>
</rss>

