<?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 Step merge in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Step-merge/m-p/167863#M1882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data want;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; merge vitals (in=a) dosing (in=b);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by PATIENT;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if a and b;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;where amt ne ' ';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 14:44:14 GMT</pubDate>
    <dc:creator>husseinmazaar</dc:creator>
    <dc:date>2014-10-01T14:44:14Z</dc:date>
    <item>
      <title>Data Step merge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Step-merge/m-p/167859#M1878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one tell me how we will write below SQL code in data step by using merge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;PROC SQL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;CREATE&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; merge &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;AS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; A.PATIENT,A.DATE , A.PULSE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;B.PATIENT, B.DOSES, B.AMT&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; VITALS &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; A , DOSING &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; A.PATIENT=B.PATIENT &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; B.AMT ne &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;" "&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="mso-fareast-language: EN-US; color: navy; background: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 10:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Step-merge/m-p/167859#M1878</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2014-10-01T10:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step merge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Step-merge/m-p/167860#M1879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; merge vitals (in=a) dosing (in=b where=(amt ne ""));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by ...;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if a and b then output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 10:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Step-merge/m-p/167860#M1879</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-10-01T10:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step merge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Step-merge/m-p/167861#M1880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for providing code for same however small change in code and tell me how we can aply condtion in both data sets as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; merge vitals (in=a where=(&lt;/P&gt;&lt;P&gt;A.pulse eq 'y') dosing (in=b where=(amt ne ""));&lt;/P&gt;&lt;P&gt; by ...;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if a and b then output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;PROC SQL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;CREATE&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; merge &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;AS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; A.PATIENT,A.DATE , A.PULSE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;B.PATIENT, B.DOSES, B.AMT&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; VITALS &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; A , DOSING &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; A.PATIENT=B.PATIENT &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; A.pulse eq &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;'Y'&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt; B.AMT ne &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;" "&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="mso-fareast-language: EN-US; color: navy; background: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; mso-fareast-language: EN-US;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 10:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Step-merge/m-p/167861#M1880</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2014-10-01T10:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step merge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Step-merge/m-p/167862#M1881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;helo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*prepare some data*/&lt;/P&gt;&lt;P&gt;data classwork;&lt;BR /&gt;set sashelp.class(where=(sex="M"));&lt;BR /&gt;if mod(_N_,2)=0 then call missing(height);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/*output*/&lt;BR /&gt;data want;&lt;BR /&gt;merge sashelp.class (in=a) classwork (in=b);&lt;BR /&gt;by name;&lt;BR /&gt;if a and b and height ne .;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 10:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Step-merge/m-p/167862#M1881</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2014-10-01T10:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Step merge</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Step-merge/m-p/167863#M1882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data want;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; merge vitals (in=a) dosing (in=b);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by PATIENT;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if a and b;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;where amt ne ' ';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 14:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Step-merge/m-p/167863#M1882</guid>
      <dc:creator>husseinmazaar</dc:creator>
      <dc:date>2014-10-01T14:44:14Z</dc:date>
    </item>
  </channel>
</rss>

