<?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: Proc Import in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-Import/m-p/835314#M35945</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do not need a semicolon after the datafile= portion in your code. That seems to be the issue. By adding in the extra semicolon, that creates an incomplete proc import statement that technically wouldn't have an out= option. Hopefully that makes sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See below for the basic syntax&amp;nbsp; :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brzcol_1-1664224365834.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75605iF1F5D8AFD71E65BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brzcol_1-1664224365834.png" alt="brzcol_1-1664224365834.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 20:35:11 GMT</pubDate>
    <dc:creator>brzcol</dc:creator>
    <dc:date>2022-09-26T20:35:11Z</dc:date>
    <item>
      <title>Proc Import</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Import/m-p/835302#M35943</link>
      <description>&lt;P&gt;I am learning the SAS Studio Programming 1 Essentials and I'm currently on lesson 2 practicing proc import statements. I was able to successfully run a few before, but when I logged in today and retried an exercise I received the error message below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 70         
 71         proc import datafile="~/EPG1V2/data/eu_sports_trade.xlsx" ;
 ERROR: Output SAS data set must be provided.
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE IMPORT used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              182.37k
       OS Memory           28072.00k
       Timestamp           09/26/2022 08:00:06 PM
       Step Count                        78  Switch Count  0
       Page Faults                       0
       Page Reclaims                     18
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 72         
 73         dbms=xlsx out=work.eu_sports_trade_import replace;
 74         sheet = eu_sports_trade;
 75         
 76         run;
 77         
 78         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 89         
 User: u60771588
&lt;/PRE&gt;
&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Import/m-p/835302#M35943</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-09-26T20:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Import/m-p/835309#M35944</link>
      <description>&lt;P&gt;You inserted a semi-colon into the middle of the PROC statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you get in the habit of placing the ending semi-colon for a multiple line statement on its own line you can reduce the number of times you will make this mistake.&amp;nbsp; Then it will be more obvious when you scan your code that all those options are part of the single PROC statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="~/EPG1V2/data/eu_sports_trade.xlsx"
       dbms=xlsx out=work.eu_sports_trade_import replace
;
       sheet = eu_sports_trade;
 run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Import/m-p/835309#M35944</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-26T20:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Import/m-p/835314#M35945</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do not need a semicolon after the datafile= portion in your code. That seems to be the issue. By adding in the extra semicolon, that creates an incomplete proc import statement that technically wouldn't have an out= option. Hopefully that makes sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See below for the basic syntax&amp;nbsp; :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brzcol_1-1664224365834.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75605iF1F5D8AFD71E65BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brzcol_1-1664224365834.png" alt="brzcol_1-1664224365834.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Import/m-p/835314#M35945</guid>
      <dc:creator>brzcol</dc:creator>
      <dc:date>2022-09-26T20:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Import/m-p/838741#M36257</link>
      <description>Ok thank you.</description>
      <pubDate>Fri, 14 Oct 2022 22:12:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Import/m-p/838741#M36257</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-10-14T22:12:06Z</dc:date>
    </item>
  </channel>
</rss>

