<?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: How does one output certain observations to certain data sets? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352024#M2334</link>
    <description>&lt;P&gt;FYI: output is a statement .. not a function. All functions are in the form functionname()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2017 04:14:08 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2017-04-21T04:14:08Z</dc:date>
    <item>
      <title>How does one output certain observations to certain data sets?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352015#M2331</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I had to make three temporary data sets in one data step as well as create a new variable named ShipDays (that is the number of days between when the order was placed and when the order was delivered). I got this part done no problem..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then it asks to : Output to ‘QUICK’ when the value of ShipDays is less than 3.&lt;/P&gt;&lt;P&gt;Output to ‘SLOW’ when the value of ShipDays is 3 to 5.&lt;/P&gt;&lt;P&gt;Output to ‘VERYSLOW’ when the value of ShipDays is greater than 5.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what i have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data quick&lt;BR /&gt;slow&lt;BR /&gt;veryslow;&lt;/P&gt;&lt;P&gt;set orders;&lt;/P&gt;&lt;P&gt;where Order_Type_Label in ("Web", "Catalogu");&lt;/P&gt;&lt;P&gt;ShipDays = Delivery_Date - Order_Date;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I do this? IF THEN statement? but I'm not sure what to put after THEN. thanks for any help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 04:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352015#M2331</guid>
      <dc:creator>sammydouglas</dc:creator>
      <dc:date>2017-04-21T04:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: How does one output certain observations to certain data sets?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352018#M2332</link>
      <description>&lt;PRE&gt;data quick
 slow
 veryslow;
  set orders;
  where Order_Type_Label in ("Web", "Catalogu");
  ShipDays = Delivery_Date - Order_Date;
  if ShipDays lt 3 then output quick;
  else if Shipdays le 5 then output slow;
  else if Shipdays gt 5 then output veryslow;
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 04:09:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352018#M2332</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-04-21T04:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: How does one output certain observations to certain data sets?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352020#M2333</link>
      <description>oh thank you! I did not know there was an output function. kinda embarrassing &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;</description>
      <pubDate>Fri, 21 Apr 2017 04:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352020#M2333</guid>
      <dc:creator>sammydouglas</dc:creator>
      <dc:date>2017-04-21T04:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: How does one output certain observations to certain data sets?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352024#M2334</link>
      <description>&lt;P&gt;FYI: output is a statement .. not a function. All functions are in the form functionname()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 04:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352024#M2334</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-04-21T04:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: How does one output certain observations to certain data sets?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352040#M2336</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/69779"&gt;@sammydouglas&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I had to make three temporary data sets in one data step as well as create a new variable named ShipDays (that is the number of days between when the order was placed and when the order was delivered). I got this part done no problem..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But then it asks to : Output to ‘QUICK’ when the value of ShipDays is less than 3.&lt;/P&gt;
&lt;P&gt;Output to ‘SLOW’ when the value of ShipDays is 3 to 5.&lt;/P&gt;
&lt;P&gt;Output to ‘VERYSLOW’ when the value of ShipDays is greater than 5.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is what i have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data quick&lt;BR /&gt;slow&lt;BR /&gt;veryslow;&lt;/P&gt;
&lt;P&gt;set orders;&lt;/P&gt;
&lt;P&gt;where Order_Type_Label in ("Web", "Catalogu");&lt;/P&gt;
&lt;P&gt;ShipDays = Delivery_Date - Order_Date;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I do this? IF THEN statement? but I'm not sure what to put after THEN. thanks for any help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 04:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352040#M2336</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-21T04:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: How does one output certain observations to certain data sets?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352132#M2337</link>
      <description>&lt;P&gt;data Quick1(where=(ShipDays&amp;lt;3)) Slow (where=(3&amp;lt;=ShipDays&amp;lt;5)) veryslow (where=(ShipDays&amp;gt;5));&lt;BR /&gt;set orders;&lt;BR /&gt;where Order_Type_Label in ("Web", "Catalogu");&lt;BR /&gt;ShipDays = Delivery_Date - Order_Date;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 12:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352132#M2337</guid>
      <dc:creator>atul_desh</dc:creator>
      <dc:date>2017-04-21T12:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: How does one output certain observations to certain data sets?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352263#M2338</link>
      <description>Also, remember to double check your data for the correct values of Order_Type_Label. "Catalogu" is an odd spelling for either Catalogue or Catalog.&lt;BR /&gt;&lt;BR /&gt;And, if you are using the ORDERS dataset from PROGRAMMING 2, there is an exercise very simliar to this one in Chapter 2, page  2-19/20 and the solution to the exercise is on page 2-50.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Fri, 21 Apr 2017 17:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-does-one-output-certain-observations-to-certain-data-sets/m-p/352263#M2338</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-04-21T17:46:32Z</dc:date>
    </item>
  </channel>
</rss>

