<?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: choosinig inputs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/choosinig-inputs/m-p/266505#M52539</link>
    <description>&lt;P&gt;Is this to create a new dataset that is a subset or to feed into a procedure?&lt;/P&gt;
&lt;P&gt;A new dataset cold be&lt;/P&gt;
&lt;P&gt;Data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; if shrcd in (10,11) and exchcd in (1,2,3);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;if the variables are character then the values should be in quotes : in ('10','11')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a data seth option where to feed records with selected values&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=have (where=(shrcd in (10,11) and exchcd in (1,2,3)));&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2016 19:25:39 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-04-26T19:25:39Z</dc:date>
    <item>
      <title>choosinig inputs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/choosinig-inputs/m-p/266500#M52536</link>
      <description>&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to choose only if share code(shrcd=10 or 11) and exchange code (exchcd=1,2,3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dataset looks like:&lt;/P&gt;&lt;P&gt;permno &amp;nbsp;namedt &amp;nbsp; shrcd &amp;nbsp;exchcd &amp;nbsp; &amp;nbsp;ncusip&amp;nbsp;&lt;/P&gt;&lt;P&gt;13391 &amp;nbsp; &amp;nbsp;5/4/2012 &amp;nbsp; &amp;nbsp;71 &amp;nbsp; &amp;nbsp; &amp;nbsp;13 &amp;nbsp; &amp;nbsp;68391610 &amp;nbsp; (not needed)&lt;/P&gt;&lt;P&gt;12120 &amp;nbsp; &amp;nbsp; 6/7/1993 &amp;nbsp; &amp;nbsp;11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp;04543330 &amp;nbsp; (needed)&lt;/P&gt;&lt;P&gt;12121 &amp;nbsp; &amp;nbsp; 9/24/1990 &amp;nbsp; 10 &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp;04890160 &amp;nbsp; (not needed)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;12120 &amp;nbsp; &amp;nbsp; &amp;nbsp;8/2/1993 &amp;nbsp; &amp;nbsp; 11 &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp;04543330 &amp;nbsp; &amp;nbsp;(needed)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any feedback is appreicated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 19:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/choosinig-inputs/m-p/266500#M52536</guid>
      <dc:creator>Daniel1027</dc:creator>
      <dc:date>2016-04-26T19:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: choosinig inputs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/choosinig-inputs/m-p/266505#M52539</link>
      <description>&lt;P&gt;Is this to create a new dataset that is a subset or to feed into a procedure?&lt;/P&gt;
&lt;P&gt;A new dataset cold be&lt;/P&gt;
&lt;P&gt;Data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; if shrcd in (10,11) and exchcd in (1,2,3);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;if the variables are character then the values should be in quotes : in ('10','11')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a data seth option where to feed records with selected values&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=have (where=(shrcd in (10,11) and exchcd in (1,2,3)));&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 19:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/choosinig-inputs/m-p/266505#M52539</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-26T19:25:39Z</dc:date>
    </item>
  </channel>
</rss>

