<?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: Convert CSV file to SAS Table (sas7bdat) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184026#M265416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response! The next challenge is to call a R function from Java/C++, for example.&lt;/P&gt;&lt;P&gt;If anyone know a library to C++ or Java, it will be amazing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2014 14:11:11 GMT</pubDate>
    <dc:creator>pedromagalhaes</dc:creator>
    <dc:date>2014-10-14T14:11:11Z</dc:date>
    <item>
      <title>Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184024#M265414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have a huge CSV file, and i want to convert it to a SAS Table. I know that i can use SAS to make an import, but i am interested in create the SAS table using, for example, C++, python or any available library.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;For example, in SPSS i can easily create a SAS Table using the command "Save as type" to SAS v9+ Windows (*.sas7bdat). And it not necessary to have the SAS installed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any library to make this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 13:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184024#M265414</guid>
      <dc:creator>pedromagalhaes</dc:creator>
      <dc:date>2014-10-14T13:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184025#M265415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use R to write a SAS export file. See: &lt;A href="http://stackoverflow.com/questions/5476826/can-anyone-help-me-write-a-r-data-frame-as-a-sas-data-set" title="http://stackoverflow.com/questions/5476826/can-anyone-help-me-write-a-r-data-frame-as-a-sas-data-set"&gt;Can anyone help me write a R data frame as a SAS data set? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 14:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184025#M265415</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-10-14T14:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184026#M265416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response! The next challenge is to call a R function from Java/C++, for example.&lt;/P&gt;&lt;P&gt;If anyone know a library to C++ or Java, it will be amazing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 14:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184026#M265416</guid>
      <dc:creator>pedromagalhaes</dc:creator>
      <dc:date>2014-10-14T14:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184027#M265417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you need SAS to import the export file, why would it be better to just import the original CSV-file?&lt;/P&gt;&lt;P&gt;What's the application, why do you want to create SAS data files if you don't have SAS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 14:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184027#M265417</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-10-14T14:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184028#M265418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;R isn't a function, it's a program. Here is an example of calling it from Java: &lt;A href="http://stackoverflow.com/questions/16019654/call-r-from-java-to-get-chi-squared-statistic-and-p-value" title="http://stackoverflow.com/questions/16019654/call-r-from-java-to-get-chi-squared-statistic-and-p-value"&gt;Call R from JAVA to get Chi-squared statistic and p-value - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 14:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184028#M265418</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-10-14T14:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184029#M265419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a ETL process. The ouput of the process is a csv file, in different formats. &lt;/P&gt;&lt;P&gt;The user always get this file and import using SAS. I would like to import it for him generating a SAS Table, using a library/DLL. That's the use case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 14:16:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184029#M265419</guid>
      <dc:creator>pedromagalhaes</dc:creator>
      <dc:date>2014-10-14T14:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184030#M265420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know that R is language. But what i actually need to do is to call this function (something like this):&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;write.xport&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;df &lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; test.df&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; datafile &lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000; background: transparent;"&gt;'test.sas7bdat'&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; codefile &lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000; background: transparent;"&gt;'test.txt'&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; package &lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000; background: transparent;"&gt;"SAS"&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;Or i call the function, or execute a R Script for load the SAS table.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 14:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184030#M265420</guid>
      <dc:creator>pedromagalhaes</dc:creator>
      <dc:date>2014-10-14T14:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184031#M265421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still, by using R, you don't get a SAS table, you'll end up with a SAS transport file. The process to import that is very similar to import a csv-file...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 15:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184031#M265421</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-10-14T15:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184032#M265422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I dont have a way to create a sas7bdat ?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I will have another file (similiar to CSV) that i need to import to SAS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why SAS dont give, for example, a DLL to create the sas7bdat? i really doesnt understand..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 18:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184032#M265422</guid>
      <dc:creator>pedromagalhaes</dc:creator>
      <dc:date>2014-10-14T18:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184033#M265423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because they want to sell SAS software?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python can call R functions/libraries fairly easily, but that's a question that's best posted on a python/java/C forums rather than here if you think about it &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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 19:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184033#M265423</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-14T19:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184034#M265424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conversely, for $300 you can purchase a program that can be called from your code. Take a look at: &lt;A href="https://www.stattransfer.com/stattransfer/command.html" title="https://www.stattransfer.com/stattransfer/command.html"&gt;StatTransfer.com | The Command Processor&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 20:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184034#M265424</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-10-14T20:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184035#M265425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If SAS make possible to generate a &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A _jive_internal="true" class="font-color-meta-light" href="https://communities.sas.com/message/232823#232823" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;"&gt;(sas7bdat)&lt;/A&gt;&lt;/STRONG&gt; i will give him a FREE user... I translate my CSV fil to &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A _jive_internal="true" class="font-color-meta-light" href="https://communities.sas.com/message/232823#232823" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;"&gt;(sas7bdat)&lt;/A&gt;&lt;/STRONG&gt; and now only a user with SAS can read it. So the user has to buy SAS license. So i think this argument is invalid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 21:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184035#M265425</guid>
      <dc:creator>pedromagalhaes</dc:creator>
      <dc:date>2014-10-14T21:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184036#M265426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I kinda agree. It's not the data sets themselves that is the big thing with SAS, it's everything you can do with the data within them.&lt;/P&gt;&lt;P&gt;So, when we awaits SAS to change their policy, tell us more about your SAS user(s),What kind are they, what SAS software/platform do they use? Chances are that yo can up with alternative ways to make your csv easily available to them. One way (if you csv-files have the same structure) is to create a data step view for the customer. Then they can change the csv-file, and the new data will be available instantly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 21:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184036#M265426</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-10-14T21:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184037#M265427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not dump it to a SQLite database and install a the SQLite ODBC driver on your users computer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The end user can access it as a database no different than any other SAS dataset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 22:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184037#M265427</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-14T22:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184038#M265428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While I, too, have always wished that SAS would change their policy, one could easily rebut your argument. SAS already has your customer and (it sounds like) you could lose your customer if you can't provide what they want. That is why I suggested alternatives.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 22:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184038#M265428</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-10-14T22:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CSV file to SAS Table (sas7bdat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184039#M265429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you're converting it to accommodate a SAS user. You'd have to buy a license to do so, providing SAS another customer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't agree with this policy, but I sort of understand. And at any respects some people have reverse engineered it, otherwise WPS wouldn't exist, just not really open source.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I thought R could but not willing to look into it now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's also the free SAS analytics U edition you could use, which would violate the license I'm sure. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 22:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/m-p/184039#M265429</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-14T22:26:17Z</dc:date>
    </item>
  </channel>
</rss>

