<?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: Importing a delimited file into cas in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444763#M4951</link>
    <description>But, Its a huge file of 120Gb. So, unable to do that.Thanks!!</description>
    <pubDate>Mon, 12 Mar 2018 14:27:14 GMT</pubDate>
    <dc:creator>AmitSri</dc:creator>
    <dc:date>2018-03-12T14:27:14Z</dc:date>
    <item>
      <title>Importing a delimited file into cas</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444715#M4946</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import a csv file which is seperated by "&lt;STRONG&gt;;&lt;/STRONG&gt;". When I run this query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc casutil;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; load casdata="20180226_all_markets_export.csv"&amp;nbsp;&amp;nbsp; incaslib="dbdata"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; importoptions=(filetype="csv" getnames="true")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; casout="20180226_all_markets_export" outcaslib="MYCASLIB" promote;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the error as:&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: Row data has too many columns.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: The action stopped due to errors.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Could anyone suggest on resolving this error.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also is there any option to specify dlm= option in cas? Many Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 12:35:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444715#M4946</guid>
      <dc:creator>AmitSri</dc:creator>
      <dc:date>2018-03-12T12:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a delimited file into cas</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444719#M4947</link>
      <description>&lt;P&gt;Then it is&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/U&gt; a CSV file.&amp;nbsp; Comma Separated Variable file = CSV.&amp;nbsp; Yours is a delimited file.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On your issue, what does the CSV look like?&amp;nbsp; How many columns does it have?&amp;nbsp; Does it have correct line ends - i.e. if the file is pulled off Unix then it might not have the correct termstr to read in correctly.&amp;nbsp; Can't really say without seeing the file.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 12:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444719#M4947</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-12T12:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a delimited file into cas</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444726#M4948</link>
      <description>Hi, It was actually a .rpt file. So, I just renamed it with .csv and trying to load it. The file is just seperated with a semicolon. However my script is now running when I placed a diletype argument delimiter=";". Since its a huge file of 120GB, I will post the status after its completion/failure.&lt;BR /&gt;&lt;BR /&gt;Thanks!!</description>
      <pubDate>Mon, 12 Mar 2018 13:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444726#M4948</guid>
      <dc:creator>AmitSri</dc:creator>
      <dc:date>2018-03-12T13:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a delimited file into cas</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444727#M4949</link>
      <description>Oops. Again same error. The file has 26 columns and the values are seperated by a ; and the observation ends with \n. Any other arguments to be passed ion the query? Thanks!!</description>
      <pubDate>Mon, 12 Mar 2018 13:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444727#M4949</guid>
      <dc:creator>AmitSri</dc:creator>
      <dc:date>2018-03-12T13:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a delimited file into cas</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444732#M4950</link>
      <description>&lt;P&gt;You would need to read it manually with a datastep as \n is not a valid termstr.&amp;nbsp; What is likely happening is that SAS cannot find the end of line, and so is reading the whole file as one string.&amp;nbsp; What is an rpt file?&amp;nbsp; Can you not get the original data, its far easier to work with real data than trying to convert output files back to data.&amp;nbsp; Alternatively you could open with notepad or some similar, and find / replace all occurences of "\n" with '0a'x which I think (you will need to check as am in training), en of line character, or '0a'x and '0d'x.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 13:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444732#M4950</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-12T13:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a delimited file into cas</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444763#M4951</link>
      <description>But, Its a huge file of 120Gb. So, unable to do that.Thanks!!</description>
      <pubDate>Mon, 12 Mar 2018 14:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444763#M4951</guid>
      <dc:creator>AmitSri</dc:creator>
      <dc:date>2018-03-12T14:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a delimited file into cas</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444769#M4952</link>
      <description>&lt;P&gt;Go back to source then and get actual data, don't use output files.&amp;nbsp; I am afraid there isn't an ad-hoc end of line character for \n:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/14/178.html" target="_blank"&gt;http://support.sas.com/kb/14/178.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The program which renders that file (e.g. Word) may know that \n is newline, but for files you would only have unix or windows end of line.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 14:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Importing-a-delimited-file-into-cas/m-p/444769#M4952</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-12T14:37:44Z</dc:date>
    </item>
  </channel>
</rss>

