<?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 identify a particular value in a varibale in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-identify-a-particular-value-in-a-varibale/m-p/364870#M86591</link>
    <description>&lt;P&gt;Sorry, your post confuses me, why create a Domain - which is CDISC terminology for a particular group of variables - with the name of a variable?&lt;/P&gt;
&lt;P&gt;As for your question:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set sashelp.vcolumn (where=(name="PARCAT1"));
  if _n_=1 then call symputx('domain',substr(name,6,2),'T');
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 07 Jun 2017 09:29:53 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-06-07T09:29:53Z</dc:date>
    <item>
      <title>How to identify a particular value in a varibale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-identify-a-particular-value-in-a-varibale/m-p/364867#M86589</link>
      <description>&lt;P&gt;I have a dataset which has variable and i need to pick up a value and create a macro variable like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc contents data=adam.adlb noprint out=_cont (keep=name);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data null;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set _cont (where=(length(name)=7 and substr(upcase(name),4,3)='CAT'));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;call symputx('domain', substr(upcase(name), 6, 2), 'T');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The value which i need is "PARCAT1" but there is another value named "PARCAT2" in the data. How can i create domain with name as "PARCAT1" in my data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 09:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-identify-a-particular-value-in-a-varibale/m-p/364867#M86589</guid>
      <dc:creator>alexdsa310</dc:creator>
      <dc:date>2017-06-07T09:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify a particular value in a varibale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-identify-a-particular-value-in-a-varibale/m-p/364870#M86591</link>
      <description>&lt;P&gt;Sorry, your post confuses me, why create a Domain - which is CDISC terminology for a particular group of variables - with the name of a variable?&lt;/P&gt;
&lt;P&gt;As for your question:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set sashelp.vcolumn (where=(name="PARCAT1"));
  if _n_=1 then call symputx('domain',substr(name,6,2),'T');
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jun 2017 09:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-identify-a-particular-value-in-a-varibale/m-p/364870#M86591</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-07T09:29:53Z</dc:date>
    </item>
  </channel>
</rss>

