<?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: Binary variable... in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191101#M36048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Art's code doesn't return what you want then please post some representative sample data (a data step creating such data) and then show us exactly how the desired result should look like (if different to what you've already posted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way we will be able to provide you code which is tested against your actual data structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Nov 2014 20:54:00 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2014-11-30T20:54:00Z</dc:date>
    <item>
      <title>Binary variable...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191098#M36045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, (again).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having some trouble with SAS, and since I don't know what I'm looking for searching for a solution seems impossible.&lt;/P&gt;&lt;P&gt;I tried to illustrate some of the information available for a better understanding: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="178" style="border: 1px solid rgb(0, 0, 0); width: 583px; height: 180px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Order_ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Item_ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;XXX&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;212913&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;5577-RE&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;212888&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;5877-MA&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;212888&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;9780&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;212790&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;855-140-CP&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="text-align: center;"&gt;212790&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;SPAN style="text-align: center;"&gt;5877-MA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to search for the specific Item_ID (9780), and whenever this Item_ID appears go to Order_ID list and look for all products attachted to this order. Further this information should be used to create a binary variable (Illustrated by the XXX) telling me if the Item_ID is a part of an order with the 9780 Item_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To sum up I would like a binary variable telling me if a product is a part of an order containing Item_ID 9780. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 15:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191098#M36045</guid>
      <dc:creator>DDaugaard</dc:creator>
      <dc:date>2014-11-30T15:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Binary variable...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191099#M36046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it fairly easily using proc sql. e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case when count(item_id-'0780') ge 1 then 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else 0 end as XXX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by order_id&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 16:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191099#M36046</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-11-30T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Binary variable...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191100#M36047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somehow that didn't quite do it. Might have done something wrong.&lt;/P&gt;&lt;P&gt;I changed: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;case when count(item_id-'0780') ge 1 then 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;case when count(item_id&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;'0780') ge 1 then 1 (the "=" after item_ID).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Before i changed it, it was subtracting 0780 from all item_ID, which resulted in an error.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Now that I have changed it, I'm getting the new XXX variable but it's counting 1 in every single observation.. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 20:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191100#M36047</guid>
      <dc:creator>DDaugaard</dc:creator>
      <dc:date>2014-11-30T20:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Binary variable...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191101#M36048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Art's code doesn't return what you want then please post some representative sample data (a data step creating such data) and then show us exactly how the desired result should look like (if different to what you've already posted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way we will be able to provide you code which is tested against your actual data structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 20:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191101#M36048</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-11-30T20:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Binary variable...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191102#M36049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, the code I posted had two errors. Try this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat item_id $10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile cards dlm='09'x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input Order_ID Item_ID;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;212913 5577-RE&lt;/P&gt;&lt;P&gt;212888 5877-MA&lt;/P&gt;&lt;P&gt;212888 9780&lt;/P&gt;&lt;P&gt;212790 855-140-CP&lt;/P&gt;&lt;P&gt;212790 5877-MA&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case when sum(strip(item_id)='9780') ge 1 then 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else 0 end as XXX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by order_id&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 22:32:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191102#M36049</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-11-30T22:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Binary variable...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191103#M36050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry if I am being a bit unclear in my actual needs.&lt;/P&gt;&lt;P&gt;I took a screenshot of the actual data. Some of the variables are in Danish, but I will give a translation to each of them&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item_ID / Order date / shipping date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Supplier&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Data.PNG" class="jive-image-thumbnail jive-image" height="414" src="https://communities.sas.com/legacyfs/online/8111_Data.PNG" style="width: 817.727047146402px; height: 414px;" width="818" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help Arthur, but in the actual data set we have 800.000 observations, can I somehow use the code you mentioned above for the entire data set?&lt;/P&gt;&lt;P&gt;Im thinking of the part you mention after "Card;", this will be impossible to do for 800.000 observations. (I tried to highlight it with bold)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data have;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; informat item_id $10.;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; infile cards dlm='09'x;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; input Order_ID Item_ID;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;212913 5577-RE&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;212888 5877-MA&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;212888 9780&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;212790 855-140-CP&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;212790 5877-MA&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 12:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191103#M36050</guid>
      <dc:creator>DDaugaard</dc:creator>
      <dc:date>2014-12-01T12:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Binary variable...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191104#M36051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I would like to do is to look for "9780" for the varenr(Item_ID) variable, and whenever this specific code appear I would like it to go to the Ordrennr_(Order_ID) look for how many products are a part of this Order_ID and mark those with a 1, otherwise I would like the rest to have a 0, telling me that they are not a part of an order with the Item_ID 9780 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 12:40:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191104#M36051</guid>
      <dc:creator>DDaugaard</dc:creator>
      <dc:date>2014-12-01T12:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Binary variable...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191105#M36052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.*,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case when t2.order_id is null then 0 else 1 end as xxx&lt;/P&gt;&lt;P&gt;from &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; have t1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left outer join (select order_id from have where item_id='9780') t2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on t1.order_id=t2.order_id;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191105#M36052</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-12-01T14:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Binary variable...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191106#M36053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What form is the data in? The entire datastep (with the cards; statement) was only to provide some data for testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your file an excel workbook, a text file, a SAS dataset, or what?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The proc sql step statement "from have" is the only line that might have to be changed once your data is in the form of a SAS dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191106#M36053</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-12-01T14:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Binary variable...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191107#M36054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a SAS dataset. The proc sql step you supplied seems to do the job &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help, it's much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:54:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Binary-variable/m-p/191107#M36054</guid>
      <dc:creator>DDaugaard</dc:creator>
      <dc:date>2014-12-01T14:54:43Z</dc:date>
    </item>
  </channel>
</rss>

