<?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 create a sas7bdat file from C# in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-create-a-sas7bdat-file-from-C/m-p/165803#M12755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not a C# guy, but one of my friends at Statistics Canada is!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings12/017-2012.pdf"&gt;http://support.sas.com/resources/papers/proceedings12/017-2012.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Dec 2013 00:54:09 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2013-12-07T00:54:09Z</dc:date>
    <item>
      <title>how to create a sas7bdat file from C#</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-create-a-sas7bdat-file-from-C/m-p/165801#M12753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I apologize if this is not the correct discussion group for this question; it seemed like the best choice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have an application written in C# that has a requirement to create sas data files, specifically the sas7bdat format.&amp;nbsp; I'm trying to figure out what SAS integration options are available for doing so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Notes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="padding: 0 0 0 2em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;LI&gt;We do not own any SAS products but are not averse to buying them in order to satisfy our needs to produce sas7bdat files.&lt;/LI&gt;&lt;LI&gt;If it is helpful, the data to be converted can be written to an intermediate format (e.g. a CSV file) prior to the conversion to the sas7bdat format.&lt;/LI&gt;&lt;LI&gt;We'd prefer not to have generate/write SAS code to create the sas7bdat file.&amp;nbsp; In other words, ideally, through the purchase of some SAS product, we gain access to a C# DLL that is capable of taking some in-memory data structure or a reference to a data file (e.g. CSV) and creating a sas7bdat file.&lt;/LI&gt;&lt;LI&gt;We currently have a working integration with StatTransfer but we are evaluating other options. &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thank you for your time.&amp;nbsp; If our needs are unclear, please ask us to clarify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 16:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-create-a-sas7bdat-file-from-C/m-p/165801#M12753</guid>
      <dc:creator>fs_sas_newbie</dc:creator>
      <dc:date>2013-12-06T16:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a sas7bdat file from C#</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-create-a-sas7bdat-file-from-C/m-p/165802#M12754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See some references here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2010/11/03/peek-at-your-data-using-vbscript-ole-db-and-the-sas-local-data-provider/" title="http://blogs.sas.com/content/sasdummy/2010/11/03/peek-at-your-data-using-vbscript-ole-db-and-the-sas-local-data-provider/"&gt; Peek at your data using VBScript, OLE DB, and the SAS local data provider - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/05/09/powershell-read-sas-data-files/" title="http://blogs.sas.com/content/sasdummy/2012/05/09/powershell-read-sas-data-files/"&gt;Using Windows PowerShell to view your SAS data dictionary&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These both use the SAS OLE DB data providers, which are available from support.sas.com.&amp;nbsp; However, their primary purpose is for reading and perhaps updates, not as much for creating new SAS7BDAT files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 16:23:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-create-a-sas7bdat-file-from-C/m-p/165802#M12754</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-12-06T16:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a sas7bdat file from C#</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-create-a-sas7bdat-file-from-C/m-p/165803#M12755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not a C# guy, but one of my friends at Statistics Canada is!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings12/017-2012.pdf"&gt;http://support.sas.com/resources/papers/proceedings12/017-2012.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Dec 2013 00:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-create-a-sas7bdat-file-from-C/m-p/165803#M12755</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2013-12-07T00:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a sas7bdat file from C#</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-create-a-sas7bdat-file-from-C/m-p/165804#M12756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the aversion to writing SAS code, or really writing a SAS code generating module in your C program?&lt;/P&gt;&lt;P&gt;Code to create a SAS dataset from a CSV file is trivial to write, especially if you limit the types of inputs that you need to support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Dec 2013 01:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-create-a-sas7bdat-file-from-C/m-p/165804#M12756</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-12-07T01:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a sas7bdat file from C#</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-create-a-sas7bdat-file-from-C/m-p/165805#M12757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is unclear in its goal.&lt;/P&gt;&lt;P&gt;If you want just to deliver a file that easily can be read by users running SAS.....&lt;/P&gt;&lt;P&gt;- The csv file approach could be sufficient. But do not use comma as delimeters&amp;nbsp; with a european relation using the decimal separators different.&lt;/P&gt;&lt;P&gt;- the transport-file could be sufficient although it is based on SAS-V6 .&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A href="http://support.sas.com/techsup/technote/ts140.html" title="http://support.sas.com/techsup/technote/ts140.html"&gt;TS-DOC: TS-140 - THE RECORD LAYOUT OF A DATA SET IN SAS TRANSPORT (XPORT) FORMAT &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is the only public available description of a typical SAS data-structure. The internal sas7bdat structure is only open to dedicated partners like syncsort&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is pushing some pressure on release management of the SAS middleware (SAS system) as the structure of a sas7bdat is changing with SAS releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way,&lt;/P&gt;&lt;P&gt;-&amp;nbsp; you could involve your C# code from a running SAS-session&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;A href="http://support.sas.com/kb/40/562.html" title="http://support.sas.com/kb/40/562.html"&gt;40562 - Defining a C function and calling it from the SAS® System&lt;/A&gt;&lt;/P&gt;&lt;P&gt;SAS has stopped with their C-offering, but you can still find a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A href="http://support.sas.com/documentation/onlinedoc/sasc/doc750/html/cpp/z0103943.htm" title="http://support.sas.com/documentation/onlinedoc/sasc/doc750/html/cpp/z0103943.htm"&gt;Introduction to the SAS/C C++ Development System : Overview of the SAS/C C++ Development System &lt;/A&gt;&lt;/P&gt;&lt;P&gt; The SAS/toolkit software is still mentioned. but I have not seen any updates since SAS v6&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Dec 2013 16:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-create-a-sas7bdat-file-from-C/m-p/165805#M12757</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-12-07T16:55:06Z</dc:date>
    </item>
  </channel>
</rss>

