<?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: Proc Export to UNIX Directory W/ PC Files Interface in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141487#M37751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Peter, while that does work better for the excelxp tagset, my customers prefer the .xls format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2014 18:23:13 GMT</pubDate>
    <dc:creator>WilliamD_</dc:creator>
    <dc:date>2014-03-06T18:23:13Z</dc:date>
    <item>
      <title>Proc Export to UNIX Directory W/ PC Files Interface</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141482#M37746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Hey everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Recently, my business decided to upgrade all windows machines to Microsoft Windows 7 (from XP).&amp;nbsp; I, and my team, develop our code using Base SAS 9.2 for UNIX.&amp;nbsp; Until the switch to WIN 7, XP would accept files generated via Proc Export DBMS = XLS.&amp;nbsp; Most of our programs are designed to export into .xls and then email as an attachment to either a hand full of people or a SharePoint site.&amp;nbsp; Because the XLS is no longer an option for WIN 7, we have started toying around with the SAS/Access Interface to PC Files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;SPAN style="color: #575757;"&gt;LIBNAME MYMDB PCFILES SERVER= &amp;amp;CGCPCIP. PATH='d:\sas\example.xls';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;SPAN style="color: #575757;"&gt; DATA MYMDB.CLASS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET SASHELP.CLASS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;SPAN style="color: #575757;"&gt; RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;SPAN style="color: #575757;"&gt; LIBNAME MYMDB CLEAR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-right: 0px; padding-top: 1pt;"&gt;&lt;SPAN style="color: #575757;"&gt;Or:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;SPAN style="color: #575757;"&gt;PROC EXPORT DATA = SASHELP.CLASS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp; DBMS = EXCELCS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp; OUTFILE = 'd:\sas\example.xls'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp; REPLACE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-bottom: 1pt; padding-left: 30px; padding-right: 0px; padding-top: 1pt;"&gt;&lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp; SERVER= &amp;amp;CGCPCIP.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #575757; font-size: 11pt;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #575757; font-size: 11pt;"&gt;Does anyone know of a way to save these files on the UNIX box versus being forced to save onto the machine designated as the "server"?&amp;nbsp; I don't believe there is a way to generate an email from UNIX using a file that doesn't exist on the machine, and if I can't email it without having to manually move the file back to UNIX - I can't batch it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #575757; font-size: 11pt;"&gt;Any ideas would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #575757; font-size: 11pt;"&gt;William&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 22:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141482#M37746</guid>
      <dc:creator>WilliamD_</dc:creator>
      <dc:date>2014-01-14T22:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to UNIX Directory W/ PC Files Interface</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141483#M37747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not clear to me how your whole environment looks like. Are you using SAS via some kind of&amp;nbsp; X server? If so, upgrading Windows shouldn't affect your SAS processing.&lt;/P&gt;&lt;P&gt;You should also consider upgrading SAS, from 9.3, at least PROC EXPORT offers the EXCEL data source which is compliant with current MS Office formats.&lt;/P&gt;&lt;P&gt;When using the PC Files Server, I think that the interaction only can take place on a file system available to that server. So if you want the files on UNIX, have the PC Files Server running on UNIX. Please describe a bit more about how, when and to whom you wish to email your files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 08:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141483#M37747</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-01-15T08:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to UNIX Directory W/ PC Files Interface</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141484#M37748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linus, I'm using a Xterm to remote into the UNIX server where I write and process my SAS programs.&amp;nbsp; All of my teams original code is written using the DBMS = XLS which works for people still using Windows XP, but everyone who's migrated to Windows 7 cannot.&amp;nbsp; This is a known issue due to the fact that the XLS output is designed for Microsoft Office 2003 and it commonly fails when trying to open in WIN 7 64bit running Office 32 bit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only work around to make an xls that is usable in WIN 7 is to either use DBMS tab - but I can't expect my customers to know how to import the data into a table properly and I can't cheat my naming the extension .xls.&amp;nbsp; The data I work with has numerical values that often times exceed 15 digits, so most of the exports that fail to include metadata are unusable to me.&amp;nbsp; As far as email - the data is usually emailed monthly as the programs finish collecting their data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, you cannot run the PC Files server on UNIX as it's designed to run on Windows as a way to make a Microsoft compliant file.&lt;/P&gt;&lt;P&gt;I work for a large Corp... Upgrading to Base SAS 9.3 for UNIX isn't an option: the server needs to be upgraded first and there is already development to upgrade to 9.4/9.5 in 2015.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 14:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141484#M37748</guid>
      <dc:creator>WilliamD_</dc:creator>
      <dc:date>2014-01-15T14:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to UNIX Directory W/ PC Files Interface</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141485#M37749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought I'd follow up with an update to this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PC Files Server running on the windows machine defaults to no user specific login credentials... The read/write permissions are inherited by the login credentials of the service, not the user logged into the machine itself.&amp;nbsp; Essentially, you need to either setup a new user profile with the appropriate drive read/write access for all directories you intend to write to or you input your own login credentials and manually run the service daily (delayed start doesn't always work depending on network setup). Because of the security risks involved in this, unfortunately I've had to abandon this method.&lt;/P&gt;&lt;P&gt;I've since started using ODS tagset.excelxp and then declaring my var / style = {tagattr='FORMAT:TEXT'}; to prevent truncation of numerical data upon opening in excel.&amp;nbsp; This method will allow Windows 7 Office 2010 to open the .xls extension files but not .xlsx extension files. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 17:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141485#M37749</guid>
      <dc:creator>WilliamD_</dc:creator>
      <dc:date>2014-03-06T17:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to UNIX Directory W/ PC Files Interface</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141486#M37750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;WilliamD. wrote:&lt;/P&gt;
&lt;P&gt;I've since started using ODS tagset.excelxp and then declaring my var / style = {tagattr='FORMAT:TEXT'}; to prevent truncation of numerical data upon opening in excel.&amp;nbsp; This method will allow Windows 7 Office 2010 to open the .xls extension files but not .xlsx extension files.&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;For the files you create with tagsets.excelxp, try a filename with a .XML extension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 18:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141486#M37750</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-03-06T18:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to UNIX Directory W/ PC Files Interface</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141487#M37751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Peter, while that does work better for the excelxp tagset, my customers prefer the .xls format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 18:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/141487#M37751</guid>
      <dc:creator>WilliamD_</dc:creator>
      <dc:date>2014-03-06T18:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to UNIX Directory W/ PC Files Interface</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/438767#M69108</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do something similar. It works fine with a local path on the PC where PC files serer is Installed. We have Base SAS on a UNIX server and I am trying to run the code below fro SAS EG. The below will run fine if I also specify username and password, but I dont want to hard code my credentials in the code. Wanted to ask if there are any workarounds . I need to export to both excel and access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC EXPORT data=sashelp.cars&lt;BR /&gt;dbms=excelcs&lt;BR /&gt;outfile="\sharepoint Location\test_cars.xls" replace;&lt;BR /&gt;sheet = Data;&lt;BR /&gt;server="10.47.87.96" ;&lt;BR /&gt;port=9621;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=sashelp.cars&lt;BR /&gt;OUTTABLE="cars1"&lt;BR /&gt;DBMS=ACCESSCS REPLACE ;&lt;BR /&gt;DATABASE="\SharePoint location\test_cars.MDB";&lt;BR /&gt;SERVER="10.47.87.96";&lt;BR /&gt;PORT=9621;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Praveena&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 19:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-to-UNIX-Directory-W-PC-Files-Interface/m-p/438767#M69108</guid>
      <dc:creator>pparpati11</dc:creator>
      <dc:date>2018-02-20T19:45:33Z</dc:date>
    </item>
  </channel>
</rss>

