<?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 use SAS to transfer an Excel file (xlsx) from a windows server (source) to unix server (d in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779924#M39849</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;That exactly what we are using. But for some reason we don't know, the field that contains a date and time format value is converted to a date field only during the transfer. We don't know why.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This cannot be an FTP issue. Xlsx files are zip-compressed archives, so ftp would have to unpack, change the value, and re-compress the file. Which it can't do. If ftp changed anything, the whole file would be corrupted and unusable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you check the file on the UNIX side after the transfer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS the "change" might come from the guessing of PROC IMPORT. That's why you should not use Excel files when consistency in a process is expected.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 06:28:43 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-11-12T06:28:43Z</dc:date>
    <item>
      <title>how to use SAS to transfer an Excel file (xlsx) from a windows server (source) to unix server (dest)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779860#M39837</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before, we were using IBM Control-M to transfer an excel file from a windows server (the source) to a Unix server (destination) and for some reason&amp;nbsp; we don't know the file is being corrupted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I wonder if there is a nice way, not to read , just transfer an excel file from a windows server to unix server using SAS EG:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Original site validation data&lt;BR /&gt;Current version: 9.04.01M7P080520&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CPU A: Model name='' model number='' serial=''.&lt;BR /&gt;Expiration: 29JUN2022.&lt;BR /&gt;Grace Period: 15 days (ending 14JUL2022).&lt;BR /&gt;Warning Period: 19 days (ending 02AUG2022).&lt;BR /&gt;System birthday: 22JUL2021.&lt;BR /&gt;Operating System: LIN X64 .&lt;BR /&gt;Product expiration dates:&lt;BR /&gt;---Base SAS Software 29JUN2022 (CPU A) &lt;BR /&gt;---SAS/STAT 29JUN2022 (CPU A) &lt;BR /&gt;---SAS/GRAPH 29JUN2022 (CPU A) &lt;BR /&gt;---SAS Integration Technologies 29JUN2022 (CPU A) &lt;BR /&gt;---SAS/Secure 168-bit 29JUN2022 (CPU A) &lt;BR /&gt;---SAS Enterprise Guide 29JUN2022 (CPU A) &lt;BR /&gt;---SAS/ACCESS Interface to Oracle 29JUN2022 (CPU A) &lt;BR /&gt;---SAS/ACCESS Interface to PC Files 29JUN2022 (CPU A) &lt;BR /&gt;---SAS/ACCESS Interface to ODBC 29JUN2022 (CPU A) &lt;BR /&gt;---SAS Workspace Server for Local Access 29JUN2022 (CPU A) &lt;BR /&gt;---High Performance Suite 29JUN2022 (CPU A) &lt;BR /&gt;2 The SAS System 08:52 Thursday, November 11, 2021&lt;/P&gt;
&lt;P&gt;---SAS Add-in for Microsoft Excel 29JUN2022 (CPU A) &lt;BR /&gt;---SAS Add-in for Microsoft Outlook 29JUN2022 (CPU A) &lt;BR /&gt;---SAS Add-in for Microsoft PowerPoint 29JUN2022 (CPU A) &lt;BR /&gt;---SAS Add-in for Microsoft Word&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 21:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779860#M39837</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-11-11T21:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SAS to transfer an Excel file (xlsx) from a windows server (source) to unix server (d</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779887#M39839</link>
      <description>&lt;A href="https://blogs.sas.com/content/sasdummy/2020/05/19/copy-files-in-sas-eg/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2020/05/19/copy-files-in-sas-eg/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Is the Copy Files task an option?</description>
      <pubDate>Fri, 12 Nov 2021 01:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779887#M39839</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-12T01:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SAS to transfer an Excel file (xlsx) from a windows server (source) to unix server (d</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779893#M39840</link>
      <description>&lt;P&gt;EG isn't a good tool for scheduling file transfers between servers. How is Control-M doing the transfers? FTP perhaps? If you ensure FTP is using a binary transfer then it is unlikely your spreadsheet will be corrupted.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 01:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779893#M39840</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-11-12T01:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SAS to transfer an Excel file (xlsx) from a windows server (source) to unix server (d</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779897#M39842</link>
      <description>That exactly what we are using.  But for some reason we don't know, the field that contains a date and time format value is converted to a date field only during the transfer.  We don't know why.</description>
      <pubDate>Fri, 12 Nov 2021 02:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779897#M39842</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-11-12T02:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SAS to transfer an Excel file (xlsx) from a windows server (source) to unix server (d</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779898#M39843</link>
      <description>yes copy files task could be an option just one time just to see the code generated.  However, I would like to develop a SAS program that will do the job.  I wonder if a Unix command could also be usefull.&lt;BR /&gt;&lt;BR /&gt;My file is located on P:\transfert  .  How can I know, what's the real address of that.  What's about using a Unix command.  Could someone provide an example if my windows server is P:\temp\transfer</description>
      <pubDate>Fri, 12 Nov 2021 02:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779898#M39843</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-11-12T02:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SAS to transfer an Excel file (xlsx) from a windows server (source) to unix server (d</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779905#M39845</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;yes copy files task could be an option just one time just to see the code generated. However, I would like to develop a SAS program that will do the job. I wonder if a Unix command could also be usefull.&lt;BR /&gt;&lt;BR /&gt;My file is located on P:\transfert . How can I know, what's the real address of that. What's about using a Unix command. Could someone provide an example if my windows server is P:\temp\transfer&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well I doubt that your Windows PC has a physical drive that is using drive letter P:.&amp;nbsp; So most likely that drive letter is mapped to some network share.&amp;nbsp; Have your computer support mount that shared drive on the Unix host somewhere.&amp;nbsp; Then just read the file directly using the path on the Unix host that points to the same place that your Windows machine is using as the P: drive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if P: is mapped to \\hostname\sharename then have them mount \\hostname\sharename somewhere in the Unix filesystem.&amp;nbsp; Let's say they mounted it at /data/hostname/sharename/.&amp;nbsp; Then your SAS program can just be something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myfile xlsx '/data/hostname/sharename/transfert/myfile.xlsx';
proc&amp;nbsp;copy&amp;nbsp;inlib=myfile&amp;nbsp;outlib=work;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Nov 2021 02:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779905#M39845</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-12T02:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SAS to transfer an Excel file (xlsx) from a windows server (source) to unix server (d</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779916#M39846</link>
      <description>&lt;P&gt;I have use the file transfer task which works&lt;/P&gt;
&lt;P&gt;Now, I can I convert that into a sas code to make it work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let _egcopySource = \\...\test.xlsx;&lt;BR /&gt;%let _egcopyTarget =/folder1/Temp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember that I am trying to transfer an xlsx file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 03:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779916#M39846</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-11-12T03:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SAS to transfer an Excel file (xlsx) from a windows server (source) to unix server (d</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779920#M39847</link>
      <description>&lt;P&gt;That doesn't make a lot of sense.&amp;nbsp; How are you reading the file back in? It doesn't sound like an issue with the file transfer but the way the file is being read on the dest side.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 04:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779920#M39847</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2021-11-12T04:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SAS to transfer an Excel file (xlsx) from a windows server (source) to unix server (d</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779924#M39849</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;That exactly what we are using. But for some reason we don't know, the field that contains a date and time format value is converted to a date field only during the transfer. We don't know why.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This cannot be an FTP issue. Xlsx files are zip-compressed archives, so ftp would have to unpack, change the value, and re-compress the file. Which it can't do. If ftp changed anything, the whole file would be corrupted and unusable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you check the file on the UNIX side after the transfer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS the "change" might come from the guessing of PROC IMPORT. That's why you should not use Excel files when consistency in a process is expected.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 06:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/779924#M39849</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-12T06:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SAS to transfer an Excel file (xlsx) from a windows server (source) to unix server (d</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/780264#M39853</link>
      <description>&lt;P&gt;We have made some change into Control-M, i.e. changing append for overwrite and the issue seems to be solve.&lt;/P&gt;
&lt;P&gt;Thanks everyone for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, it will be nice to get some SAS code to transfer a file from a Windows server to a Unix server, it could be interesting.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 15:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-use-SAS-to-transfer-an-Excel-file-xlsx-from-a-windows/m-p/780264#M39853</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-11-15T15:57:54Z</dc:date>
    </item>
  </channel>
</rss>

