<?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 Copy file from windows to linux without Modifying file timestamp using SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copy-file-from-windows-to-linux-without-Modifying-file-timestamp/m-p/674918#M203271</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I want to copy excel file file from windows to Linux system and need to capture last modified date of the file. Note : We cant take take last modified date of the file from windows. Since i am using below code to copy file from Windows to Linux, Code is able to transfer file to Linux system however once after running the code the timestamp of the file is changing. Is there any way to copy file from windows to Linux without modifying file timestamp. Please help&lt;/P&gt;&lt;P&gt;Code :-&lt;/P&gt;&lt;P&gt;%smb_init(username=**MYID**, password=%str(**password**), domain=**aa.aaa.com**); %smb_load();&lt;/P&gt;&lt;P&gt;%smb_pull(windows=//files/Load/Test/Folder1/PIC Alerts/ABC Alerts.xlsx, linux=/sasdata/test_files/folder2/ABC_Alerts.xlsx);&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 08:19:54 GMT</pubDate>
    <dc:creator>Vikas_Bairy</dc:creator>
    <dc:date>2020-08-06T08:19:54Z</dc:date>
    <item>
      <title>Copy file from windows to linux without Modifying file timestamp using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-file-from-windows-to-linux-without-Modifying-file-timestamp/m-p/674918#M203271</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I want to copy excel file file from windows to Linux system and need to capture last modified date of the file. Note : We cant take take last modified date of the file from windows. Since i am using below code to copy file from Windows to Linux, Code is able to transfer file to Linux system however once after running the code the timestamp of the file is changing. Is there any way to copy file from windows to Linux without modifying file timestamp. Please help&lt;/P&gt;&lt;P&gt;Code :-&lt;/P&gt;&lt;P&gt;%smb_init(username=**MYID**, password=%str(**password**), domain=**aa.aaa.com**); %smb_load();&lt;/P&gt;&lt;P&gt;%smb_pull(windows=//files/Load/Test/Folder1/PIC Alerts/ABC Alerts.xlsx, linux=/sasdata/test_files/folder2/ABC_Alerts.xlsx);&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 08:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-file-from-windows-to-linux-without-Modifying-file-timestamp/m-p/674918#M203271</guid>
      <dc:creator>Vikas_Bairy</dc:creator>
      <dc:date>2020-08-06T08:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from windows to linux without Modifying file timestamp using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-file-from-windows-to-linux-without-Modifying-file-timestamp/m-p/674921#M203274</link>
      <description>&lt;P&gt;You would have to retrieve the current timestamp first from the Windows file, so you can set it later on the Linux side. This would need to be done in the macro, anyway, so we will need to see the macro code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, instead of the SMB protocol, use sftp with the -p option; but this requires the necessary SSH server components on the Windows side.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 08:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-file-from-windows-to-linux-without-Modifying-file-timestamp/m-p/674921#M203274</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-06T08:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file from windows to linux without Modifying file timestamp using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-file-from-windows-to-linux-without-Modifying-file-timestamp/m-p/674930#M203280</link>
      <description>&lt;P&gt;This seems way more complicated than creating a network share from linux to the Windows server folder - is that not an option?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 09:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-file-from-windows-to-linux-without-Modifying-file-timestamp/m-p/674930#M203280</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-08-06T09:16:12Z</dc:date>
    </item>
  </channel>
</rss>

