<?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: Copy dataset from  unix to windows shared drive in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/581268#M34521</link>
    <description>&lt;P&gt;&amp;amp;cur_mon cannot be resolved in the SAS session.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2019 19:49:52 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-08-14T19:49:52Z</dc:date>
    <item>
      <title>Copy dataset from  unix to windows shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/581255#M34520</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset in the unix location by the name 'db_&amp;amp;cur_mon.' where cur_mon is a macro variable which gets the value MONYY. This dataset gets generated each month, and every month I need to copy the current months' dataset from its unix location to a windows shared drive location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the function that I'm using (attached), but I get this error:&lt;/P&gt;&lt;P&gt;ERROR: File /unix link/TEMP/YES/db_&amp;amp;cur_mon..sas7bdat not a valid file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming it's because I shouldn't be using a macro variable but am not sure how else can I perform this operation.&lt;/P&gt;&lt;P&gt;Appreciate all helping me understand this concept. Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let abc=/unix link/TEMP/YES;
%let win=\\shard drive windows location\PILOT;
%SYSRPUT win=&amp;amp;win.;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 487px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31753iD603D56B451C33E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 19:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/581255#M34520</guid>
      <dc:creator>AJ_Brien</dc:creator>
      <dc:date>2019-08-14T19:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dataset from  unix to windows shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/581268#M34521</link>
      <description>&lt;P&gt;&amp;amp;cur_mon cannot be resolved in the SAS session.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 19:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/581268#M34521</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-14T19:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dataset from  unix to windows shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/581273#M34522</link>
      <description>&lt;P&gt;What remote SAS/Connect session do you think the %SYSRPUT statement is going to execute in?&lt;/P&gt;
&lt;P&gt;Did you actually run those %LET statements in the current SAS session before trying to run the copy task?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 20:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/581273#M34522</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-14T20:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dataset from  unix to windows shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/582491#M34523</link>
      <description>&lt;P&gt;So I made some changes and this is what I did:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let path_unix=unix path;&lt;BR /&gt;%SYSRPUT path_unix=&amp;amp;path_unix.;&lt;BR /&gt;%let path_win = \\windows shared drive path;&lt;BR /&gt;%SYSRPUT path_win=&amp;amp;path_win.;&lt;BR /&gt;%let MON = %sysfunc(intnx(month, %sysfunc(today()),0), monyy5.);&lt;BR /&gt;%SYSRPUT MON=&amp;amp;MON.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when I use the copy task to move my dataset from &lt;STRONG&gt;&amp;amp;path_unix./ABC_&amp;amp;mon..sas7bdat to&amp;nbsp;&amp;amp;path_win.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it gives me the error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Object reference not set to an instance of an object.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 17:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/582491#M34523</guid>
      <dc:creator>AJ_Brien</dc:creator>
      <dc:date>2019-08-20T17:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dataset from  unix to windows shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/582492#M34524</link>
      <description>I made some changes and this is what I did:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%let path_unix=unix path;&lt;BR /&gt;%SYSRPUT path_unix=&amp;amp;path_unix.;&lt;BR /&gt;%let path_win = \\windows shared drive path;&lt;BR /&gt;%SYSRPUT path_win=&amp;amp;path_win.;&lt;BR /&gt;%let MON = %sysfunc(intnx(month, %sysfunc(today()),0), monyy5.);&lt;BR /&gt;%SYSRPUT MON=&amp;amp;MON.;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now when I use the copy task to move my dataset from &amp;amp;path_unix./ABC_&amp;amp;mon..sas7bdat to&amp;nbsp;&amp;amp;path_win.&lt;BR /&gt;&lt;BR /&gt;it gives me the error:&lt;BR /&gt;&lt;BR /&gt;ERROR: Object reference not set to an instance of an object.</description>
      <pubDate>Tue, 20 Aug 2019 17:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/582492#M34524</guid>
      <dc:creator>AJ_Brien</dc:creator>
      <dc:date>2019-08-20T17:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dataset from  unix to windows shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/582673#M34525</link>
      <description>&lt;P&gt;Since this now seems to be a .NET problem, I moved the post to the EG community. Maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;can help.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 06:14:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/582673#M34525</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-21T06:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Copy dataset from  unix to windows shared drive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/582752#M34539</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265086"&gt;@AJ_Brien&lt;/a&gt;&amp;nbsp;Do you have a log from the Copy Files task?&amp;nbsp; If not, you might need to enable Application Logging (Tools-&amp;gt;Options) to get a detailed log, and work with SAS Tech Support on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One other thing to try -- map a drive to your UNC path (\\server\path\file) and use the mapped drive instead of the "\\" notation.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 12:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-dataset-from-unix-to-windows-shared-drive/m-p/582752#M34539</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-08-21T12:32:05Z</dc:date>
    </item>
  </channel>
</rss>

