<?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: Concatenation Using the DATA Step: multiple WHERE expressions that are joined by logical operato in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856562#M10422</link>
    <description>&lt;P&gt;Using the value 0.0166666... instead of zero to represent the date 01JAN1960 was also a very strange choice.&lt;/P&gt;
&lt;PRE&gt;789  data _null_;
790    xx = 1/1/60 ;
791    put xx= xx= date9. ;
792  run;

xx=0.0166666667 xx=01JAN1960
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 23:13:50 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-01-31T23:13:50Z</dc:date>
    <item>
      <title>Concatenation Using the DATA Step: multiple WHERE expressions that are joined by logical operator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856527#M10417</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Need help with this class assignment for students which does not work properly.&lt;/P&gt;&lt;P&gt;Here is the SAS code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/* example 1 */

data merge1;
input ID $ SEX $ BDATE SALARY NAME $  ;
informat BDATE mmddyy8. ;
format BDATE mmddyy8. ;
datalines;
1 M 10/21/46 70000 ivan
2 F 11/01/55 68000 judy
7 M 01/27/59 47000 ralph
;
run;
data merge2;
input ID $ SEX $ BDATE SALARY TAXRATE WITHHOLD NAME $ ;
informat BDATE mmddyy8. ;
format BDATE mmddyy8. ;
datalines;
3 F 01/01/33 78000 .36 23000 zoe
5 M 03/07/29 37000 .25 9000 marco
;
run;
data merge3;
input ID $ SEX $ BDATE SALARY HEIGHT WEIGHT NAME $ ;
informat BDATE mmddyy8. ;
format BDATE mmddyy8. ;
datalines;
4 M 10/23/49 65000 68 158 roger
6 F 07/04/65 55000 74 202 clara
;
run;

data all (keep= ID BDATE SALARY NAME rename=(NAME=NAME1)) ;
set merge1 merge2 merge3 ;
where BDATE &amp;lt;= 01/01/60 and SALARY GE 50000 ; 
format BDATE mmddyy8. ;
run;
proc print ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is our output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS_output.JPG" style="width: 523px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79976i7170605762330CA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS_output.JPG" alt="SAS_output.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem is that it does not select ID 3 zoe from the dataset merge2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alen&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 19:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856527#M10417</guid>
      <dc:creator>saviour</dc:creator>
      <dc:date>2023-01-31T19:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation Using the DATA Step: multiple WHERE expressions that are joined by logical operato</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856541#M10418</link>
      <description>&lt;P&gt;What is the value of your YEARCUTOFF system option?&lt;/P&gt;
&lt;P&gt;2-digit year values are dangerous and&amp;nbsp;&lt;STRONG&gt;must not be used, period.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 21:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856541#M10418</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-31T21:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation Using the DATA Step: multiple WHERE expressions that are joined by logical operato</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856544#M10419</link>
      <description>&lt;P&gt;Dear Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alen&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 21:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856544#M10419</guid>
      <dc:creator>saviour</dc:creator>
      <dc:date>2023-01-31T21:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation Using the DATA Step: multiple WHERE expressions that are joined by logical operato</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856549#M10420</link>
      <description>&lt;P&gt;Dear Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The value of your YEARCUTOFF system option was 1940.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alen&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 21:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856549#M10420</guid>
      <dc:creator>saviour</dc:creator>
      <dc:date>2023-01-31T21:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation Using the DATA Step: multiple WHERE expressions that are joined by logical operato</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856551#M10421</link>
      <description>&lt;P&gt;No, the problem is the use of 2-digit years. After Y2K (but in fact, long before that), this should be a given.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working very hard to restrain myself from using the words that came to my mind, because then a moderator would have to delete my post for vulgar language.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 21:30:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856551#M10421</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-31T21:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation Using the DATA Step: multiple WHERE expressions that are joined by logical operato</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856562#M10422</link>
      <description>&lt;P&gt;Using the value 0.0166666... instead of zero to represent the date 01JAN1960 was also a very strange choice.&lt;/P&gt;
&lt;PRE&gt;789  data _null_;
790    xx = 1/1/60 ;
791    put xx= xx= date9. ;
792  run;

xx=0.0166666667 xx=01JAN1960
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 23:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Concatenation-Using-the-DATA-Step-multiple-WHERE-expressions/m-p/856562#M10422</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-01-31T23:13:50Z</dc:date>
    </item>
  </channel>
</rss>

