<?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 excel to SAS dataset in UNIX in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86010#M1121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have an excel file, which columns having length around 500-600 chars. I have to convert this to SAS dataset, in UNIX.&lt;/P&gt;&lt;P&gt;I am trying to use the excel libname with PCFILES statement, but it has one more argument , ie SERVER. Now I am not very sure, what should be its value.&lt;/P&gt;&lt;P&gt;I am running the code using XTERM. But the SAS Code and excel file are on some other drive, say U drive. If the server name is of U drive , then how could I find out its server name. Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2012 00:27:21 GMT</pubDate>
    <dc:creator>maggi2410</dc:creator>
    <dc:date>2012-11-30T00:27:21Z</dc:date>
    <item>
      <title>excel to SAS dataset in UNIX</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86010#M1121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have an excel file, which columns having length around 500-600 chars. I have to convert this to SAS dataset, in UNIX.&lt;/P&gt;&lt;P&gt;I am trying to use the excel libname with PCFILES statement, but it has one more argument , ie SERVER. Now I am not very sure, what should be its value.&lt;/P&gt;&lt;P&gt;I am running the code using XTERM. But the SAS Code and excel file are on some other drive, say U drive. If the server name is of U drive , then how could I find out its server name. Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 00:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86010#M1121</guid>
      <dc:creator>maggi2410</dc:creator>
      <dc:date>2012-11-30T00:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: excel to SAS dataset in UNIX</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86011#M1122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My understanding if you are trying to read Excel from Unix is that you must also have a Windows computer running the SAS PC File Server software along with MS Office installed. It is this computer that handles the conversion of Excel spreadsheets into a form that SAS understands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are after a quick fix you could try saving the excel file into a CSV and then you should be able to import it without the above complications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 01:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86011#M1122</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2012-11-30T01:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: excel to SAS dataset in UNIX</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86012#M1123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should give a try with PROC IMPORT.&lt;/P&gt;&lt;P&gt;It supports Export/Import with XLS, XLSX files on Unix Platfrom, too.&lt;/P&gt;&lt;P&gt;(SAS OnlineDoc: PROC IMPORT, Supported Data Sources and Environments)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sándor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 08:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86012#M1123</guid>
      <dc:creator>SandorSzalma</dc:creator>
      <dc:date>2012-11-30T08:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: excel to SAS dataset in UNIX</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86013#M1124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with SASKiwi&lt;/P&gt;&lt;P&gt;server= is the name of the Windows server where the PC files server is running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 17:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86013#M1124</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-11-30T17:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: excel to SAS dataset in UNIX</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86014#M1125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I dont have PC SAS. SAS is installed on other servers, and I submit the code via XTERM. Now, everytime I submit the code, I guess, whichever server is free, the code is submitted on that. So its random. What do you think in this case, can I still use PCFILES?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, I am converting the sheet into dab delimited file and then reading it. It is still truncating the columns , maximum length being 201. The code I am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data temp.temp1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile '../test.txt' delimiter='09'x MISSOVER DSD lrecl=800 firstobs=3 ;&lt;/P&gt;&lt;P&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; length chg_ref&amp;nbsp;&amp;nbsp;&amp;nbsp; $800;&lt;/P&gt;&lt;P&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; format _all_;informat _all_;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chg_ref&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;Do you think there is any problem in this. This UNIX system is getting on my nerves now. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 19:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86014#M1125</guid>
      <dc:creator>maggi2410</dc:creator>
      <dc:date>2012-11-30T19:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: excel to SAS dataset in UNIX</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86015#M1126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does this U: drive point to a shared-filesystem on the Unix server, where SAS runs?&lt;/P&gt;&lt;P&gt;(Samba-Share?, U:\ -&amp;gt; SAS_Server:/xx/yy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, you can use PROC IMPORT without PC File Server, too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 08:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86015#M1126</guid>
      <dc:creator>SandorSzalma</dc:creator>
      <dc:date>2012-12-03T08:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: excel to SAS dataset in UNIX</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86016#M1127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also agree with SASKiwi; I cannot use proc import with Excel files on my AIX server.&lt;/P&gt;&lt;P&gt;If you are using a data step, you could try using the termstr=CRLF option on the infile statement - if your file was saved on a Windows platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SandorSzalma is correct that you can still use proc import on unix, as it can still be used to read text files (delimited).&lt;/P&gt;&lt;P&gt;HOWEVER, if you use proc import with a tab delimited file it only looks at the first 2 rows by default to guess variable lengths. You can change this by using the &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000312413.htm"&gt;GUESSINGROWS= option&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 14:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/excel-to-SAS-dataset-in-UNIX/m-p/86016#M1127</guid>
      <dc:creator>TimArm</dc:creator>
      <dc:date>2012-12-06T14:27:29Z</dc:date>
    </item>
  </channel>
</rss>

