<?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: my code is wrong  temp data set where country is this and mode is that...why? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/my-code-is-wrong-temp-data-set-where-country-is-this-and-mode-is/m-p/837727#M331251</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/435824"&gt;@MarySasbegginer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you have code that isn't working, SHOW US the log (we need to see the &lt;FONT color="#FF0000"&gt;ENTIRE&lt;/FONT&gt; log for this DATA step, not parts of the log).&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 18:56:01 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-10-10T18:56:01Z</dc:date>
    <item>
      <title>my code is wrong  temp data set where country is this and mode is that...why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-code-is-wrong-temp-data-set-where-country-is-this-and-mode-is/m-p/837715#M331244</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Using the SAS data set Bicycles, create two temporary SAS data sets as follows: Mountain_USA consists of all observations from Bicycles where Country is&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;USA&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and Model is&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Mountain Bike&lt;/STRONG&gt;&lt;SPAN&gt;. Road_France consists of all observations from Bicycles where Country is&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;France&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and Model is&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Road Bike&lt;/STRONG&gt;&lt;SPAN&gt;. Print these two data sets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;here is my code what am i doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data Mountain_USA;&lt;BR /&gt;set '/home/u62245181/Today/bicycles.sas7bdat';&lt;BR /&gt;where Country = "USA" and Model = "Mountain_Bike";&lt;BR /&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 17:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-code-is-wrong-temp-data-set-where-country-is-this-and-mode-is/m-p/837715#M331244</guid>
      <dc:creator>MarySasbegginer</dc:creator>
      <dc:date>2022-10-10T17:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: my code is wrong  temp data set where country is this and mode is that...why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-code-is-wrong-temp-data-set-where-country-is-this-and-mode-is/m-p/837726#M331250</link>
      <description>&lt;P&gt;And what happens when you run it?&amp;nbsp; Do you get error messages?&amp;nbsp; If it works how is the result different than you expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the value of MODEL include the underscore you used in the code? Or the space you used in your description?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 18:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-code-is-wrong-temp-data-set-where-country-is-this-and-mode-is/m-p/837726#M331250</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-10T18:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: my code is wrong  temp data set where country is this and mode is that...why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-code-is-wrong-temp-data-set-where-country-is-this-and-mode-is/m-p/837727#M331251</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/435824"&gt;@MarySasbegginer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you have code that isn't working, SHOW US the log (we need to see the &lt;FONT color="#FF0000"&gt;ENTIRE&lt;/FONT&gt; log for this DATA step, not parts of the log).&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 18:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-code-is-wrong-temp-data-set-where-country-is-this-and-mode-is/m-p/837727#M331251</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-10T18:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: my code is wrong  temp data set where country is this and mode is that...why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-code-is-wrong-temp-data-set-where-country-is-this-and-mode-is/m-p/837736#M331255</link>
      <description>&lt;DIV class=""&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class=""&gt;68&lt;/DIV&gt;&lt;DIV class=""&gt;69 data Mountain_USA;&lt;/DIV&gt;&lt;DIV class=""&gt;70 set clean.'/home/u62245181/Today/bicycles.sas7bdat';&lt;/DIV&gt;&lt;DIV class=""&gt;______&lt;/DIV&gt;&lt;DIV class=""&gt;22&lt;/DIV&gt;&lt;DIV class=""&gt;201&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, ;, CUROBS, END, INDSNAME, KEY, KEYRESET, KEYS,&lt;/DIV&gt;&lt;DIV class=""&gt;NOBS, OPEN, POINT, _DATA_, _LAST_, _NULL_.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR 201-322: The option is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;71 run;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: The data set WORK.MOUNTAIN_USA may be incomplete. When this step was stopped there were 0 observations and 6 variables.&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: Data set WORK.MOUNTAIN_USA was not replaced because this step was stopped.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class=""&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;user cpu time 0.01 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;system cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;memory 902.09k&lt;/DIV&gt;&lt;DIV class=""&gt;OS Memory 24488.00k&lt;/DIV&gt;&lt;DIV class=""&gt;Timestamp 10/10/2022 10:05:40 PM&lt;/DIV&gt;&lt;DIV class=""&gt;Step Count 30 Switch Count 1&lt;/DIV&gt;&lt;DIV class=""&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class=""&gt;Page Reclaims 120&lt;/DIV&gt;&lt;DIV class=""&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class=""&gt;Voluntary Context Switches 8&lt;/DIV&gt;&lt;DIV class=""&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class=""&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class=""&gt;Block Output Operations 16&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;72 where Country = "USA" and Model = "Mountain_Bike";&lt;/DIV&gt;&lt;DIV class=""&gt;_____&lt;/DIV&gt;&lt;DIV class=""&gt;180&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;73 run;&lt;/DIV&gt;&lt;DIV class=""&gt;74&lt;/DIV&gt;&lt;DIV class=""&gt;75 title "USA models";&lt;/DIV&gt;&lt;DIV class=""&gt;76 proc print data=Mountain_USA noobs;&lt;/DIV&gt;&lt;DIV class=""&gt;77 run;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Oct 2022 22:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-code-is-wrong-temp-data-set-where-country-is-this-and-mode-is/m-p/837736#M331255</guid>
      <dc:creator>MarySasbegginer</dc:creator>
      <dc:date>2022-10-10T22:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: my code is wrong  temp data set where country is this and mode is that...why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/my-code-is-wrong-temp-data-set-where-country-is-this-and-mode-is/m-p/837748#M331258</link>
      <description>&lt;P&gt;That is NOT the code you originally posted.&amp;nbsp; Can you see the difference?&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;set clean.'/home/u62245181/Today/bicycles.sas7bdat';
set '/home/u62245181/Today/bicycles.sas7bdat';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;You can either reference the data with a quoted physical filename such as one of these :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;set '/home/u62245181/Today/bicycles.sas7bdat';
set '/home/u62245181/Today/bicycles';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you can create a libref pointing to the directory and use normal SAS syntax instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname clean '/home/u62245181/Today' ;
....
set clean.bicycles;
...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 00:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/my-code-is-wrong-temp-data-set-where-country-is-this-and-mode-is/m-p/837748#M331258</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-11T00:16:47Z</dc:date>
    </item>
  </channel>
</rss>

