<?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: sas data file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/830511#M328168</link>
    <description>&lt;P&gt;I got error message&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'utf-8' codec can't decpde byte 0xc0 in position 0: invalid start byte&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what encoding shall I be using ??&lt;/P&gt;
&lt;P&gt;also if instead I would love to get text file not excel, how to do it? is CSV same as text?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2022 09:07:16 GMT</pubDate>
    <dc:creator>HeatherNewton</dc:creator>
    <dc:date>2022-08-26T09:07:16Z</dc:date>
    <item>
      <title>Access SAS data file without SAS license</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807732#M318502</link>
      <description>&lt;P&gt;Hi if I have lots of sas data file but have no sas license, is it possible to convert sas data file using any other softwares and have it saved as text file or excel file etc? or store it in another database like the Oracle?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 10:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807732#M318502</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-08-16T10:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807734#M318503</link>
      <description>&lt;P&gt;You can use &lt;A href="https://www.worldprogramming.com/products/information/sas-language/" target="_blank"&gt;WPS&lt;/A&gt; or &lt;A href="https://www.cdata.com/drivers/sasdatasets/" target="_blank"&gt;CDATA Drivers for SAS Datasets&lt;/A&gt; for access SAS datasets.&lt;/P&gt;
&lt;P&gt;I don't know if you can access all data sets encrypted, compressed, passworded, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 08:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807734#M318503</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-04-14T08:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807743#M318510</link>
      <description>&lt;P&gt;I would not like to rely on third-party-tools that may or may not be able to read datasets. Before moving away from SAS - a strange idea - i would save all dataset to a database, if the required access module is licensed. If not, exporting to json is possible, if you have a recent release of sas. Or, as export to csv along with proc contents of the dataset.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 08:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807743#M318510</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-04-14T08:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807745#M318512</link>
      <description>&lt;P&gt;are these free software?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 08:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807745#M318512</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-04-14T08:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807748#M318515</link>
      <description>&lt;P&gt;Please check it yourself.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.worldprogramming.com/try-or-buy/editions/" target="_blank"&gt;https://www.worldprogramming.com/try-or-buy/editions/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cdata.com/jp/drivers/sasdatasets/order/" target="_blank"&gt;https://www.cdata.com/jp/drivers/sasdatasets/order/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Trial versions of both are available.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 08:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807748#M318515</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-04-14T08:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807749#M318516</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;are these free software?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Both supplied links mention prices, so I would say no.&lt;/P&gt;
&lt;P&gt;If it is not for commercial, but educational purposes, you can do the conversion on SAS On Demand for Academics.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 09:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807749#M318516</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-14T09:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807760#M318519</link>
      <description>&lt;P&gt;Upload the files to SAS On Demand, unless they are really big and do a conversion there to CSV or other file format, then download the converted files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some other programs can use/read SAS data sets. Tableau is one for example. SPSS might, been a long time since I used that program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There used to be some utility programs that were not free that did such conversions but the ones I am familiar with died about the time of SAS 8 was released.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 10:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807760#M318519</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-14T10:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807774#M318524</link>
      <description>You can read SAS dataset and save it as text or excel by Python .&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.marsja.se/how-to-read-sas-files-in-python-with-pandas/" target="_blank"&gt;https://www.marsja.se/how-to-read-sas-files-in-python-with-pandas/&lt;/A&gt;</description>
      <pubDate>Thu, 14 Apr 2022 11:46:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807774#M318524</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-14T11:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807787#M318528</link>
      <description>&lt;P&gt;I've just verified that the &lt;A href="https://support.sas.com/downloads/browse.htm?fil=&amp;amp;cat=74" target="_blank" rel="noopener"&gt;SAS Universal Viewer&lt;/A&gt; (I'm using release 1.42) can save SAS datasets as CSV or XML&amp;nbsp;files: There is a "Save as..." item in the "Table" menu. Of course, without third-party automation software this would be a tedious manual process if you have "lots of" SAS datasets. Also I would be skeptical about using this for really large datasets, but 100,000 observations with a few variables are no problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See partial example output from &lt;FONT face="courier new,courier"&gt;sashelp.class&lt;/FONT&gt;&amp;nbsp;below. The use of a comma as the decimal separator (which is disastrous in the CSV file) is certainly due to my German Windows regional settings and could be changed there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CSV:&lt;/P&gt;
&lt;PRE&gt;"Name","Sex","Age","Height","Weight"
"Alfred","M",14,69,112,5
"Alice","F",13,56,5,84&lt;/PRE&gt;
&lt;P&gt;XML:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;LIBRARY type="GENERIC" version="9.2"&amp;gt;
   &amp;lt;CLASS&amp;gt;
      &amp;lt;Name&amp;gt;Alfred&amp;lt;/Name&amp;gt;
      &amp;lt;Sex&amp;gt;M&amp;lt;/Sex&amp;gt;
      &amp;lt;Age&amp;gt;14&amp;lt;/Age&amp;gt;
      &amp;lt;Height&amp;gt;69&amp;lt;/Height&amp;gt;
      &amp;lt;Weight&amp;gt;112,5&amp;lt;/Weight&amp;gt;
   &amp;lt;/CLASS&amp;gt;
   &amp;lt;CLASS&amp;gt;
      &amp;lt;Name&amp;gt;Alice&amp;lt;/Name&amp;gt;
      &amp;lt;Sex&amp;gt;F&amp;lt;/Sex&amp;gt;
      &amp;lt;Age&amp;gt;13&amp;lt;/Age&amp;gt;
      &amp;lt;Height&amp;gt;56,5&amp;lt;/Height&amp;gt;
      &amp;lt;Weight&amp;gt;84&amp;lt;/Weight&amp;gt;
   &amp;lt;/CLASS&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Apr 2022 12:35:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807787#M318528</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-04-14T12:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807930#M318577</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;Python and R can be used to convert SAS datasets into other formats.&lt;BR /&gt;I am giving a sample code as follows. This should work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;import pandas as pd ;
df=pd.read_sas(r"C:\Users\yourname\actors.sas7bdat",encoding="utf-8");
# saving the excel
df.to_excel(r'C:\Users\yourname\actors.xlsx');
print('DataFrame is written to Excel File successfully.');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Apr 2022 21:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/807930#M318577</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-04-14T21:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812524#M320603</link>
      <description>&lt;P&gt;does anyone know how I can&amp;nbsp; read sas dataset in Oracle database?&lt;/P&gt;
&lt;P&gt;I know I can use Python to read sas dataset into excel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there a direct way to convert sas dataset to be stored directly in Oracle database?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 02:38:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812524#M320603</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-05-11T02:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812528#M320605</link>
      <description>&lt;P&gt;if my sas file is really really large and excel has a limit of no of rows, what can i do?&lt;/P&gt;
&lt;P&gt;would converting to text also possible with python?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;actually we would like to store in Oracle&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 02:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812528#M320605</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-05-11T02:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812544#M320610</link>
      <description>&lt;P&gt;If you have Access To Oracle licensed than you can use tables in oracle nearly the same way you use sas datasets.&lt;/P&gt;
&lt;P&gt;As i already said earlier, exporting to csv is always possible, you should export the result of proc contents, too, so that all metadata of a dataset is available, so that using the csv files is easier.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 05:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812544#M320610</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-05-11T05:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812548#M320613</link>
      <description>&lt;P&gt;Exporting to text is done in SAS with a DATA step, no other tools needed. Have your Oracle people give you the preferred file format. If you need assistance with writing the step, post the format requirements (in a new question), and we can give you a "blueprint" DATA step.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 05:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812548#M320613</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-11T05:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812552#M320614</link>
      <description>&lt;P&gt;thanks all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the problem is we dont have SAS license, we have&amp;nbsp; 7G of SAS datasets that need to be converted to save in Oracle.&lt;/P&gt;
&lt;P&gt;how to convert sas dataset without SAS, I have Oracle license. I can use Python. any other means?&lt;/P&gt;
&lt;P&gt;if it is really large, can excel takes it or have to convert to text?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 06:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812552#M320614</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-05-11T06:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812554#M320616</link>
      <description>&lt;P&gt;Don't use Excel to transfer data. Just remove Excel for such task from the list of tools for ever. Using Excel will sooner then one can hope bring other fancy problems, caused by the nice number of "improvements" Excel uses to transform the data to what Excel things is what you may expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have a sas licence, you have to rely on third-party-tools. I recommend searching outside the sas community.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 07:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812554#M320616</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-05-11T07:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812555#M320617</link>
      <description>&lt;P&gt;&lt;STRONG&gt;NEVER, EVER&lt;/STRONG&gt; use Excel files to transfer data. &lt;STRONG&gt;NEVER&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Plain text files allow you to inspect them with a simple (but proper, like Notepad++) text editor, so you can easily check them for issues. Excel files have a size limit (1M rows), and looking at the data to know what's REALLY in there involves unpacking the zip archive and inspecting the contained XML files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you have SAS datasets, so somebody must have a SAS license. Ask &lt;EM&gt;them&lt;/EM&gt; to export the data.&lt;/P&gt;
&lt;P&gt;If it was actually your organization which has dropped the SAS license in the meantime, then I must say: using a proprietary format for long-time data storage where it is not sure that the necessary software will be available at some point in the future is not proper IT strategy (and I am being EXTREMELY polite here).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How large are your individual dataset files?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 07:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812555#M320617</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-11T07:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812569#M320620</link>
      <description>&lt;P&gt;we have a team who can do the conversion to text for us with SAS. however our concern is if the conversion gone wrong, we still have the sas dataset to work on with non SAS software like Python.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand using SAS to export to text is the easiest way. However, for convenience and flexibility, we would also want to explore the possiblities with using non sas method to convert sas dataset into text to be stored in Oracle.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 08:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812569#M320620</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-05-11T08:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812574#M320623</link>
      <description>&lt;P&gt;If you have a team who have SAS including SAS/ACCESS to ODBC or SAS/ACCESS to Oracle then they can load the data for you directly into Oracle minimising the possibility of any transcription errors.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 09:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812574#M320623</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-05-11T09:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: sas data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812605#M320636</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As already proposed by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;quite a bit earlier in this discussion you can use Python (Pandas) to read a SAS file directly into a Pandas dataframe and then export this dataframe to a text file in the format Oracle can read it.&lt;/P&gt;
&lt;P&gt;The Oracle guys need to tell you how they would like this text file to look like.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 11:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Access-SAS-data-file-without-SAS-license/m-p/812605#M320636</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-05-11T11:25:56Z</dc:date>
    </item>
  </channel>
</rss>

