<?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 to Import xlsx file into SAS. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Import-xlsx-file-into-SAS/m-p/342300#M78487</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;I find it useful to run this first

libname des "F:\Kaggle\Titanic.xlsx";
proc contents data=des._all_;
run;quit;
libname des clear;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 18 Mar 2017 23:59:30 GMT</pubDate>
    <dc:creator>rogerjdeangelis</dc:creator>
    <dc:date>2017-03-18T23:59:30Z</dc:date>
    <item>
      <title>How to Import xlsx file into SAS.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Import-xlsx-file-into-SAS/m-p/342261#M78462</link>
      <description>&lt;P&gt;I wrote this code but its not running its showing some errors which is mentioned below the written code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc Import datafile="F:\Kaggle\Titanic.xlsx" out=Titatnic_Worksheet DBMS= excel Replace Getnames=Yes; &lt;BR /&gt;Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ERROR 22-322: Syntax error, expecting one of the following: ;, DATAFILE, DATATABLE, DBMS, FILE, OUT, REPLACE, TABLE. ERROR 76-322: Syntax error, statement will be ignored. 242 Run;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 21:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Import-xlsx-file-into-SAS/m-p/342261#M78462</guid>
      <dc:creator>Harpal_09</dc:creator>
      <dc:date>2017-03-18T21:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import xlsx file into SAS.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Import-xlsx-file-into-SAS/m-p/342267#M78467</link>
      <description>&lt;P&gt;You're missing a semi-colon after the option REPLACE. Also, DBMS=excel may or may not work for you. You may want to use DBMS=XLSX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 19:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Import-xlsx-file-into-SAS/m-p/342267#M78467</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-18T19:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import xlsx file into SAS.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Import-xlsx-file-into-SAS/m-p/342300#M78487</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;I find it useful to run this first

libname des "F:\Kaggle\Titanic.xlsx";
proc contents data=des._all_;
run;quit;
libname des clear;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Mar 2017 23:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Import-xlsx-file-into-SAS/m-p/342300#M78487</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-03-18T23:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import xlsx file into SAS.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Import-xlsx-file-into-SAS/m-p/342640#M78564</link>
      <description>&lt;P&gt;When posting an error message to the forum there are two things you can do that will help provide answers. First is to include the code that generated the error along with the actual error. Best is the entire procedure or data step. Second is to paste it into a code box opened with the forum {i} menu item.&lt;/P&gt;
&lt;P&gt;Error messages often include an _ indicating the position of the reported error. When you paste the&amp;nbsp; log into the main message window then the forum reformats the message losing some of the diagnostic informations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compare:&lt;/P&gt;
&lt;P&gt;126 data exp;&lt;/P&gt;
&lt;P&gt;127 a='i will try to removie spl char @ and another spl $'&lt;/P&gt;
&lt;P&gt;128 a1=translate (a,'','@$' );&lt;/P&gt;
&lt;P&gt;--&lt;/P&gt;
&lt;P&gt;22&lt;/P&gt;
&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, ;, &amp;lt;, &amp;lt;=,&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=,&lt;/P&gt;
&lt;P&gt;|, ||, ~=.&lt;/P&gt;
&lt;P&gt;129 run;&lt;/P&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;PRE&gt;126  data exp;
127     a='i will try to removie spl char @ and another spl $'
128     a1=translate (a,'','@$' );
        --
        22
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, ;, &amp;lt;, &amp;lt;=,
              &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=,
              |, ||, ~=.

129  run;
&lt;/PRE&gt;
&lt;P&gt;In the code box you can see that the undescores appear under the a1 which is not obvious from the previos. In this case I would look at ther previous line and note a missing semicolon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 15:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Import-xlsx-file-into-SAS/m-p/342640#M78564</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-20T15:24:43Z</dc:date>
    </item>
  </channel>
</rss>

