<?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: Merged on two variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573848#M162066</link>
    <description>ERROR: BY variables are not properly sorted on data set WORK.MERGED5.&lt;BR /&gt;in1=0 Date=. Govt_Yield=. GT=30 Cusip=915217WX7 Yield=. FIRST.GT=0 LAST.GT=0 FIRST.Date=0&lt;BR /&gt;LAST.Date=0 _ERROR_=1 _N_=42&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 6 observations read from the data set WORK.GTS_7.&lt;BR /&gt;NOTE: There were 38 observations read from the data set WORK.MERGED5.&lt;BR /&gt;WARNING: The data set WORK.FINAL may be incomplete. When this step was stopped there were 5&lt;BR /&gt;observations and 5 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;BR /&gt;</description>
    <pubDate>Tue, 16 Jul 2019 14:31:25 GMT</pubDate>
    <dc:creator>NickA1</dc:creator>
    <dc:date>2019-07-16T14:31:25Z</dc:date>
    <item>
      <title>Merged on two variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573845#M162063</link>
      <description>&lt;P&gt;I am looking to merge on two variables, rather than just one. I want to match on both and ID number and a Date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data Final;
	merge Gts_7 (in=in1) 
		  Merged5;
	by ID Date;
	if in1;
	run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573845#M162063</guid>
      <dc:creator>NickA1</dc:creator>
      <dc:date>2019-07-16T14:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Merged on two variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573846#M162064</link>
      <description>&lt;P&gt;What problems are you having?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573846#M162064</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-16T14:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Merged on two variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573848#M162066</link>
      <description>ERROR: BY variables are not properly sorted on data set WORK.MERGED5.&lt;BR /&gt;in1=0 Date=. Govt_Yield=. GT=30 Cusip=915217WX7 Yield=. FIRST.GT=0 LAST.GT=0 FIRST.Date=0&lt;BR /&gt;LAST.Date=0 _ERROR_=1 _N_=42&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 6 observations read from the data set WORK.GTS_7.&lt;BR /&gt;NOTE: There were 38 observations read from the data set WORK.MERGED5.&lt;BR /&gt;WARNING: The data set WORK.FINAL may be incomplete. When this step was stopped there were 5&lt;BR /&gt;observations and 5 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573848#M162066</guid>
      <dc:creator>NickA1</dc:creator>
      <dc:date>2019-07-16T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merged on two variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573849#M162067</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/281094"&gt;@NickA1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: BY variables are not properly sorted on data set WORK.MERGED5.&lt;/FONT&gt;&lt;BR /&gt;in1=0 Date=. Govt_Yield=. GT=30 Cusip=915217WX7 Yield=. FIRST.GT=0 LAST.GT=0 FIRST.Date=0&lt;BR /&gt;LAST.Date=0 _ERROR_=1 _N_=42&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 6 observations read from the data set WORK.GTS_7.&lt;BR /&gt;NOTE: There were 38 observations read from the data set WORK.MERGED5.&lt;BR /&gt;WARNING: The data set WORK.FINAL may be incomplete. When this step was stopped there were 5&lt;BR /&gt;observations and 5 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Seems like the error message (which I have highlighted in red) is relatively clear.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573849#M162067</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-16T14:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Merged on two variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573850#M162068</link>
      <description>&lt;P&gt;You have to sort your data first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=Merged5;
   by ID Date;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573850#M162068</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-07-16T14:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Merged on two variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573851#M162069</link>
      <description>proc sort data=Gts_7; by Date; run;&lt;BR /&gt;proc sort data=Merged5; by Date; run;&lt;BR /&gt;&lt;BR /&gt;They were already sorted prior to that first code being run. Thanks.</description>
      <pubDate>Tue, 16 Jul 2019 14:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merged-on-two-variables/m-p/573851#M162069</guid>
      <dc:creator>NickA1</dc:creator>
      <dc:date>2019-07-16T14:34:44Z</dc:date>
    </item>
  </channel>
</rss>

