<?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 what is wrong to import my code? :/ in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396171#M66502</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to import my&amp;nbsp;.sas7bdat file and make some temporary data with only where it is CURRENT_BALANCE &amp;lt; 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i attached the result of picture about proc print as well.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="캡처.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15194iAFAAC09073BDB982/image-size/large?v=v2&amp;amp;px=999" role="button" title="캡처.JPG" alt="캡처.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* This is the STATS301 start up file */
*Set up title on line 1;
TITLE1 "STATS 301 / 749750841 / glee217 : &amp;amp;sysuserid";
*Specify SAS library for storing permanent SAS datasets;
LIBNAME stats301 "C:\Users\olivi\Desktop\301assn3";

**import .sas7bdat;
proc print data="C:\Users\olivi\Desktop\301assn3\account_level_ds.sas7bdat";
run;


data nonnegative;
set temp(where=current_balance&amp;gt;0);
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And here's error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;82 /* This is the STATS301 start up file */&lt;BR /&gt;83 *Set up title on line 1;&lt;BR /&gt;84 TITLE1 "STATS 301 / 749750841 / glee217 : &amp;amp;sysuserid";&lt;BR /&gt;85 *Specify SAS library for storing permanent SAS datasets;&lt;BR /&gt;86 LIBNAME stats301 "C:\Users\olivi\Desktop\301assn3";&lt;BR /&gt;NOTE: Libref STATS301 was successfully assigned as follows:&lt;BR /&gt;Engine: V9&lt;BR /&gt;Physical Name: C:\Users\olivi\Desktop\301assn3&lt;BR /&gt;87&lt;BR /&gt;88 **import .sas7bdat;&lt;BR /&gt;89 proc print data="C:\Users\olivi\Desktop\301assn3\account_level_ds.sas7bdat";&lt;BR /&gt;90 run;&lt;/P&gt;&lt;P&gt;NOTE: No observations in data set C:\Users\olivi\Desktop\301assn3\account_level_ds.sas7bdat.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;91&lt;BR /&gt;92&lt;BR /&gt;93 data nonnegative;&lt;BR /&gt;94 set temp(where=current_balance&amp;gt;0);&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2017 06:31:24 GMT</pubDate>
    <dc:creator>glee217</dc:creator>
    <dc:date>2017-09-15T06:31:24Z</dc:date>
    <item>
      <title>what is wrong to import my code? :/</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396171#M66502</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to import my&amp;nbsp;.sas7bdat file and make some temporary data with only where it is CURRENT_BALANCE &amp;lt; 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i attached the result of picture about proc print as well.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="캡처.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15194iAFAAC09073BDB982/image-size/large?v=v2&amp;amp;px=999" role="button" title="캡처.JPG" alt="캡처.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* This is the STATS301 start up file */
*Set up title on line 1;
TITLE1 "STATS 301 / 749750841 / glee217 : &amp;amp;sysuserid";
*Specify SAS library for storing permanent SAS datasets;
LIBNAME stats301 "C:\Users\olivi\Desktop\301assn3";

**import .sas7bdat;
proc print data="C:\Users\olivi\Desktop\301assn3\account_level_ds.sas7bdat";
run;


data nonnegative;
set temp(where=current_balance&amp;gt;0);
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And here's error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;82 /* This is the STATS301 start up file */&lt;BR /&gt;83 *Set up title on line 1;&lt;BR /&gt;84 TITLE1 "STATS 301 / 749750841 / glee217 : &amp;amp;sysuserid";&lt;BR /&gt;85 *Specify SAS library for storing permanent SAS datasets;&lt;BR /&gt;86 LIBNAME stats301 "C:\Users\olivi\Desktop\301assn3";&lt;BR /&gt;NOTE: Libref STATS301 was successfully assigned as follows:&lt;BR /&gt;Engine: V9&lt;BR /&gt;Physical Name: C:\Users\olivi\Desktop\301assn3&lt;BR /&gt;87&lt;BR /&gt;88 **import .sas7bdat;&lt;BR /&gt;89 proc print data="C:\Users\olivi\Desktop\301assn3\account_level_ds.sas7bdat";&lt;BR /&gt;90 run;&lt;/P&gt;&lt;P&gt;NOTE: No observations in data set C:\Users\olivi\Desktop\301assn3\account_level_ds.sas7bdat.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;91&lt;BR /&gt;92&lt;BR /&gt;93 data nonnegative;&lt;BR /&gt;94 set temp(where=current_balance&amp;gt;0);&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 06:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396171#M66502</guid>
      <dc:creator>glee217</dc:creator>
      <dc:date>2017-09-15T06:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong to import my code? :/</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396172#M66503</link>
      <description>&lt;P&gt;PROC PRINT does not import your dataset. Do like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname stats301 "C:\Users\olivi\Desktop\301assn3\";

data nonnegative;
   set stats301.account_level_ds(where=(current_balance&amp;gt;0));
run;

proc print data=nonnegative;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Sep 2017 06:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396172#M66503</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-09-15T06:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong to import my code? :/</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396201#M66504</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token comment"&gt;/* This is the STATS301 start up file */&lt;/SPAN&gt;
&lt;SPAN class="token comment"&gt;*Set up title on line 1;&lt;/SPAN&gt;
TITLE1 &lt;SPAN class="token string"&gt;"STATS 301 / 749750841 / glee217 : &amp;amp;sysuserid"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token comment"&gt;*Specify SAS library for storing permanent SAS datasets;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;LIBNAME&lt;/SPAN&gt; stats301 &lt;SPAN class="token string"&gt;"C:\Users\olivi\Desktop\301assn3"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token comment"&gt;**import .sas7bdat;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;print&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"C:\Users\olivi\Desktop\301assn3\account_level_ds.sas7bdat"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;


&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; nonnegative&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt; set temp;&lt;BR /&gt;  where current_balance&amp;gt;0;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same effect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 08:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396201#M66504</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2017-09-15T08:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong to import my code? :/</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396203#M66505</link>
      <description>&lt;P&gt;Sorry,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;, and OP, there is no "import" going on here. &amp;nbsp;You have a SAS dataset which is in the Windows folder:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token string"&gt;C:\Users\olivi\Desktop\301assn3&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Therefore to access this datafile you just need the libname to create the reference the area and then use the data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;libname stats301 &lt;SPAN class="token string"&gt;"C:\Users\olivi\Desktop\301assn3"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; nonnegative&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;  set&lt;/SPAN&gt; stats301.account_level_ds &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=(&lt;/SPAN&gt;current_balance &lt;SPAN class="token operator"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;))&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 08:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396203#M66505</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-15T08:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong to import my code? :/</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396207#M66506</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;, I am aware that no import is going on. I did not mean to imply so &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps I am missing something here but don't you have to reference the stats301 library in your data step?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 08:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396207#M66506</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-09-15T08:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong to import my code? :/</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396208#M66507</link>
      <description>&lt;P&gt;Quite true, too early in the morning&amp;nbsp;&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;</description>
      <pubDate>Fri, 15 Sep 2017 08:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-wrong-to-import-my-code/m-p/396208#M66507</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-15T08:24:55Z</dc:date>
    </item>
  </channel>
</rss>

