<?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: Data segregation based on condition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-segregation-based-on-condition/m-p/461398#M117368</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test2;
input type$ desp$;
datalines;
Dj dfg
jD dfg
DD dfg
dd dfg
J jam
v var
g gas
A apple
C cat
h hat
Aj rrr
Aa fff
1 222
2 333
;

data set1 set2 set3 set4 set5;
set test2;
if anydigit(type)&amp;gt;0 and anyalpha(type)=0 then output set1 ;
else if anyalpha(type)&amp;gt;0 and anydigit(type)=0 and  anylower(type)=0 then output set2;
else if anyalpha(type)&amp;gt;0 and anydigit(type)=0 and  anyupper(type)=0 then output set3;
if anyupper(first(type))&amp;gt;0 and anylower(type)&amp;gt;0 then output set4;
else if anylower(first(type))&amp;gt;0 and anyupper(type)&amp;gt;0 then output set5;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 May 2018 18:49:52 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-05-10T18:49:52Z</dc:date>
    <item>
      <title>Data segregation based on condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-segregation-based-on-condition/m-p/461379#M117366</link>
      <description>I want to segregate the data into 5 datasets in following way. dataset1- All the data where type variable is numeric dataset2 - All the data where type variable is capital letter dataset3- All the data where type variable is small letter dataset4- All the data where type variable is both capital and small but starts with capital letter. dataset5- All the data where type variable is both capital and small but starts with small letter.</description>
      <pubDate>Thu, 10 May 2018 18:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-segregation-based-on-condition/m-p/461379#M117366</guid>
      <dc:creator>Naveen45</dc:creator>
      <dc:date>2018-05-10T18:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data segregation based on condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-segregation-based-on-condition/m-p/461398#M117368</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test2;
input type$ desp$;
datalines;
Dj dfg
jD dfg
DD dfg
dd dfg
J jam
v var
g gas
A apple
C cat
h hat
Aj rrr
Aa fff
1 222
2 333
;

data set1 set2 set3 set4 set5;
set test2;
if anydigit(type)&amp;gt;0 and anyalpha(type)=0 then output set1 ;
else if anyalpha(type)&amp;gt;0 and anydigit(type)=0 and  anylower(type)=0 then output set2;
else if anyalpha(type)&amp;gt;0 and anydigit(type)=0 and  anyupper(type)=0 then output set3;
if anyupper(first(type))&amp;gt;0 and anylower(type)&amp;gt;0 then output set4;
else if anylower(first(type))&amp;gt;0 and anyupper(type)&amp;gt;0 then output set5;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 May 2018 18:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-segregation-based-on-condition/m-p/461398#M117368</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-05-10T18:49:52Z</dc:date>
    </item>
  </channel>
</rss>

