<?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: Referring eg table to transfer files in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134935#M10898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the actual question here?&lt;/P&gt;&lt;P&gt;Sounds to me like you have single folder that contains files that match a pattern of &amp;lt;username&amp;gt;_&amp;lt;some other text&amp;gt;.mdb.&lt;/P&gt;&lt;P&gt;You want to read the names of those files, parse out the username, merge the list with a table that says where to copy files for that user and then generate code that will copy the files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the source folder contains:&lt;/P&gt;&lt;P&gt;tom_db1.mdb&lt;/P&gt;&lt;P&gt;chris_db2.mdb&lt;/P&gt;&lt;P&gt;woo_db3.mdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the user table contains&lt;/P&gt;&lt;P&gt;USERNAME|PATH&lt;/P&gt;&lt;P&gt;tom|f:\home\tom&lt;/P&gt;&lt;P&gt;chris|g:\home\chris&lt;/P&gt;&lt;P&gt;woo|h:\home\woo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you want copy tom_db1.mdb from the source directory to the f:\home\tom directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you want to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jan 2014 19:34:43 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2014-01-08T19:34:43Z</dc:date>
    <item>
      <title>Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134932#M10895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all - i need little help on coding...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- i am using 9.1 sas with eg 4.1. &lt;/P&gt;&lt;P&gt;- we have 4 different share drives from where we pull in user efforts as mdb files into SAS server - weekly&lt;/P&gt;&lt;P&gt;- all these mdb files stored on sas server at one place, let's say "&lt;STRONG&gt;f:\woo&lt;/STRONG&gt;". all mdb files startd with particular "&lt;STRONG&gt;username_sales.mdb&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;- we have one control &lt;STRONG&gt;EG table&lt;/STRONG&gt; as sas dataset with users info. from all 4 share like "usename", "location" (here important variable is "username" and "location") and all...&lt;/P&gt;&lt;P&gt;- now we don't know how many mdb files will be pulled in into sas server every week but by referring/using &lt;STRONG&gt;EG table&lt;/STRONG&gt; - we have to transfer those mdb files to all 4 different share drives according to the "username" and "location" variables.&lt;/P&gt;&lt;P&gt;-&amp;nbsp; now i don't know how to embedding that EG table into sas code so that it could use "username" and or "location" from control EG tables and transfer mdb files to proper share drives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 18:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134932#M10895</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-08T18:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134933#M10896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a version of the Copy Files task that works with EG 4.1.&amp;nbsp; It might help you to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this blog post for details and download information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/" title="http://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/"&gt; There and back again: copying files in SAS Enterprise Guide - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 18:43:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134933#M10896</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-01-08T18:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134934#M10897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for sharing it Chris - love it. i read out almost all different issue on follow up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there are two things -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly - i am not sure how this will work for me because i have multiple mdb files and wants to copy to different share drive according to the "username" and "location"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; variables from EG table/dataset...i don't know how i can use this to write some macro or data/proc steps code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly - "download copy file task" not allowed to install/download due to company policy - which is not your problem &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;...and i cannot change it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's see if someone can help me to build code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again Chris...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 19:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134934#M10897</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-08T19:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134935#M10898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the actual question here?&lt;/P&gt;&lt;P&gt;Sounds to me like you have single folder that contains files that match a pattern of &amp;lt;username&amp;gt;_&amp;lt;some other text&amp;gt;.mdb.&lt;/P&gt;&lt;P&gt;You want to read the names of those files, parse out the username, merge the list with a table that says where to copy files for that user and then generate code that will copy the files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the source folder contains:&lt;/P&gt;&lt;P&gt;tom_db1.mdb&lt;/P&gt;&lt;P&gt;chris_db2.mdb&lt;/P&gt;&lt;P&gt;woo_db3.mdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the user table contains&lt;/P&gt;&lt;P&gt;USERNAME|PATH&lt;/P&gt;&lt;P&gt;tom|f:\home\tom&lt;/P&gt;&lt;P&gt;chris|g:\home\chris&lt;/P&gt;&lt;P&gt;woo|h:\home\woo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you want copy tom_db1.mdb from the source directory to the f:\home\tom directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you want to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 19:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134935#M10898</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-01-08T19:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134936#M10899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom - i think yes BUT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*we have "username" (Tom, Chris, Woo) and "location" (NY, OH, VA) variables in control table*/&lt;/P&gt;&lt;P&gt;/*we don't have path in control table for users */&lt;/P&gt;&lt;P&gt;/*for NY we have path //ny/shares*/&amp;nbsp; *let's say TOM;&lt;/P&gt;&lt;P&gt;/*for OH we have path //oh/shares*/&amp;nbsp; *for Chris;&lt;/P&gt;&lt;P&gt;/*for VA we have path //va/shares*/&amp;nbsp;&amp;nbsp; *for Woo;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so we have to match username from control table and associated share drives that we mention in code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also -&amp;nbsp; we have like more than 10 mdb created for different share drives...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Tom!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 20:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134936#M10899</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-08T20:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134937#M10900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i don't know if we can embed control EG table with path somehow OR logic would be,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Tom_db1.mdb exist in "f:\woo" then copy f:\woo\Tom_db1.mdb to \\ny\shares&lt;/P&gt;&lt;P&gt;if Chris_db2.mdb exist in "f:\woo" then copy f:\woo\Chris_db2.mdb to \\oh\shares&lt;/P&gt;&lt;P&gt;if woo_db3.mdb exist in "f:\woo" then copy f:\woo\woo.mdb to \\va\shares&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 21:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134937#M10900</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-08T21:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134938#M10901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no idea how Enterprise Guide makes this problem easier or harder.&amp;nbsp; I am also not sure if you want to copy the actual MDB files or if you want to convert them into SAS datasets.&amp;nbsp; Typically I would use SAS to generate the COPY command and then execute it.&amp;nbsp;&amp;nbsp; That might be a problem with EG as frequently the SAS process server has disabled the ability to shell out and run operating system commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds like your control file just has the information needed to generate the target directory name.&amp;nbsp; Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;username location&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;tom ny&lt;/P&gt;&lt;P&gt;chris oh&lt;/P&gt;&lt;P&gt;woo va&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let source=F:\ ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let control_file=MASTER.USERS ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data files ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; infile "dir /b &amp;amp;source\*.mdb" pipe ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; length username $32 file $256 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; input ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; file = _infile_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; username = upcase(scan(file,1,'_'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc sort data=files;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; by username;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data files ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; merge files (in=in1) &amp;amp;control_file;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; by username ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; length dir cmd $256 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; dir = cats('\\',location,'\shares');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; cmd = catx(' ',"copy &amp;amp;source"||file,dir);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; infile cmd pipe filevar=cmd ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; input ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; * Might put something here to capture any error messages from the operating system. ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; put _infile_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 22:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134938#M10901</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-01-08T22:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134939#M10902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your time Tom and sorry if you find question is not clear...BUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to copy actual mdb files created in'f:\woo to different share drives where they belongs, like Tom_db1.mdb file goes to "\\ny\shares" and Chris_db2.mdb files goes to "\\oh\shares")...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*i think we can avoid use of control table- but not sure*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*for me issue is we don't know how many mdb files will be created each wk but those mdb files creates according to the control table, whatever number of username are there - mdb files will be created - so lets say one wk - there are 20 mdb files created and for next week 45 mdb files will be created but all these mdb files need to be copied to appropriate share location/where it belongs to - and that is why i thought we can use control table to direct mdb files to appropriate location*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we don't use control table then i am thinking like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*define path according to "location" variable from control table*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let ny=\\ny\shares&lt;/P&gt;&lt;P&gt;%let oh=\\oh\shares&lt;/P&gt;&lt;P&gt;%let va=\\va\shares&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*then show something like that - &lt;STRONG&gt;just a thought&lt;/STRONG&gt; */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Tom_db1.mdb exist in folder "f:\woo" then copy "f:\woo\Tom_db1.mdb" to "&amp;amp;ny"&lt;/P&gt;&lt;P&gt;if Chris_db2.mdb exist in folder "f:\woo" then copy "f:\woo\Chris_db2.mdb" to "&amp;amp;oh"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Tom!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 01:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134939#M10902</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-09T01:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134940#M10903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please read the code I posted.&amp;nbsp; It will read the filenames into a dataset and use that dataset to generate the copy commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way to map usernames to locations is to use a format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value $userloc "TOM"="\\ny\shares"&amp;nbsp; "CHRIS"="\\oh\shares";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then instead of merging with the control dataset you can convert directly from username to target directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; background-color: #ffffff;"&gt;&amp;nbsp; dir = put(username,$userloc.);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 01:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134940#M10903</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-01-09T01:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134941#M10904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Tom!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 07:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134941#M10904</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-10T07:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134942#M10905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have created same test scenario in my environment as you suggested above and run only following code for test but i am getting an error message saying that &lt;/P&gt;&lt;P&gt;"Statement is not valid or it is used out of proper order" at below ares.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;%let source=F:\ ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;%let control_file=MASTER.USERS ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: 'courier new', courier;"&gt;data files ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; /*"Statement is not valid or it is used out of proper order.*/&lt;/EM&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; infile "dir /b &amp;amp;source\*.mdb" pipe ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;EM&gt;/*"Statement is not valid or it is used out of proper order.*/&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; length username $32 file $256 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;EM&gt;/*"Statement is not valid or it is used out of proper order.*/&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; input ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&amp;nbsp; /*"Statement is not valid or it is used out of proper order.*/&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; file = _infile_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&amp;nbsp; /*"Statement is not valid or it is used out of proper order.*/&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; username = upcase(scan(file,1,'_'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;proc sort data=files;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt; &lt;STRONG style="font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&amp;nbsp; /*work.files,data doesn't exist.*/&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; by username;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 18:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134942#M10905</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-14T18:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134943#M10906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like a case of missing semi-colon or miss-matched quotes.&amp;nbsp; It looks from the error message that SAS is not seeing the DATA statement and hence the INFILE and other statements are invalid outside of a data step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 18:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134943#M10906</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-01-14T18:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134944#M10907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes Tom - one semicolon was missing. but now i am getting error message saying that "insufficient authorization to access pipe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, i have got your point so far in your code logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have quick question - can you please enter comment to explain two line i mention below from your code...really appreciate your time....!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; cmd = catx(' ',"copy &amp;amp;source"||file,dir);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; infile cmd pipe filevar=cmd ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 19:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134944#M10907</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-14T19:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134945#M10908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i cannot do following since i am using 9.1 and i think following task is not available in 9.1 - i think have to edit config file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Expand Server Manager -&amp;gt; SASAPP - &amp;gt; SASAPP - Logical Workspace Server . Right click on SASAPP - Workspace Server. Go to Options Tab -&amp;gt; Advanced Options -&amp;gt; Launch Properties - &amp;gt; Check Allow XCMD.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 19:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134945#M10908</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-14T19:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134946#M10909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which file or files need to be updated in order to provide &lt;STRONG&gt;-allowxcmd&lt;/STRONG&gt; command - i think have to do that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 18:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134946#M10909</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-15T18:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Referring eg table to transfer files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134947#M10910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;never mind- i found it - have to edit "objectspawner.bat" file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 19:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Referring-eg-table-to-transfer-files/m-p/134947#M10910</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-15T19:15:43Z</dc:date>
    </item>
  </channel>
</rss>

