<?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: Error using PIPE to create directory in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1871#M615</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
PIPE, SYSTASK and XCMD are among the features disabled by default when running a SAS server configured with SAS Integration Technologies.  These features can present a risk to use on a central server that is accessed by lots of users with Enterprise Guide.&lt;BR /&gt;
&lt;BR /&gt;
By default, the Object Spawner starts the SAS session with the -NOXCMD option which does not allow SYSTASK commands to be run.&lt;BR /&gt;
&lt;BR /&gt;
I'd suggest opening a track with tech support and explaining your situation; they can advise you as to the best workaround for what you're trying to do.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
    <pubDate>Fri, 01 Dec 2006 21:11:30 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2006-12-01T21:11:30Z</dc:date>
    <item>
      <title>Error using PIPE to create directory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1869#M613</link>
      <description>Hi,&lt;BR /&gt;
My company has just moved from SAS v.8 on Windows to Enterprise Guide on a Unix server.&lt;BR /&gt;
On the old version and platform I used to run code to create directories on a file server using PIPE, however, since moving to the new version and platform I get the following error messages when I run the code:&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Insufficient authorization to access PIPE.&lt;BR /&gt;
ERROR: Error in the FILENAME statement.&lt;BR /&gt;
ERROR: No logical assign for filename FILEREF.&lt;BR /&gt;
&lt;BR /&gt;
My code (simplified) is :&lt;BR /&gt;
&lt;BR /&gt;
filename fileref PIPE 'mkdir "\\AUNSW0170020\DATA\A\B\C"';&lt;BR /&gt;
data _null_;&lt;BR /&gt;
infile fileref;&lt;BR /&gt;
Input;&lt;BR /&gt;
	put _infile_;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Is this a permissions issue or something else ? Are there any work-arounds ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Tim</description>
      <pubDate>Fri, 01 Dec 2006 06:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1869#M613</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-12-01T06:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error using PIPE to create directory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1870#M614</link>
      <description>Silly question : has the user used thru Enterprise Guide to connect to the server ability to create directories ?</description>
      <pubDate>Fri, 01 Dec 2006 09:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1870#M614</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2006-12-01T09:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error using PIPE to create directory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1871#M615</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
PIPE, SYSTASK and XCMD are among the features disabled by default when running a SAS server configured with SAS Integration Technologies.  These features can present a risk to use on a central server that is accessed by lots of users with Enterprise Guide.&lt;BR /&gt;
&lt;BR /&gt;
By default, the Object Spawner starts the SAS session with the -NOXCMD option which does not allow SYSTASK commands to be run.&lt;BR /&gt;
&lt;BR /&gt;
I'd suggest opening a track with tech support and explaining your situation; they can advise you as to the best workaround for what you're trying to do.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Fri, 01 Dec 2006 21:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1871#M615</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2006-12-01T21:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error using PIPE to create directory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1872#M616</link>
      <description>Although NOXCMD is in effect, SAS can still make use of the operating system. This works for EG running a workspace server on MS Server2003:&lt;BR /&gt;
&lt;BR /&gt;
data _null_ ;&lt;BR /&gt;
   NewDir = dcreate('AnotherNewDir','c:\temp') ;&lt;BR /&gt;
run ;</description>
      <pubDate>Tue, 05 Dec 2006 19:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1872#M616</guid>
      <dc:creator>Andrew_F</dc:creator>
      <dc:date>2006-12-05T19:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error using PIPE to create directory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1873#M617</link>
      <description>Thanks, everyone for your replies.&lt;BR /&gt;
&lt;BR /&gt;
The last bit of code works a treat !&lt;BR /&gt;
&lt;BR /&gt;
Thanks again and best regards&lt;BR /&gt;
&lt;BR /&gt;
Tim</description>
      <pubDate>Wed, 06 Dec 2006 22:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1873#M617</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-12-06T22:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error using PIPE to create directory</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1874#M618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies for opening a track from old thread. But my issue looks similar. When i run the below code, i got the error as mentioned in subject. I applied workarnd suggested by AndrewF, but still couldn't succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running this code in SAS EG 5.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%global month tdcut infle inpth inpth2 cnt cnt2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let month&amp;nbsp; = 201411&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; ;*** current monthly processing date;&lt;/P&gt;&lt;P&gt;%let tdcut&amp;nbsp; = 31oct2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;*** the cut off date for daily csv trigger dates, matches the last&lt;/P&gt;&lt;P&gt;&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;&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;&amp;nbsp; date in the current application fi;&lt;/P&gt;&lt;P&gt;%let clint&amp;nbsp; = resfcu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;*** client;&lt;/P&gt;&lt;P&gt;%let fi&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = ResourcesFCU ;*** fi name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*filename indat1 pipe 'ls -d /data_PPM/ResourcesFCU/Shopper/daily_files/*'&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;*filename indat2 pipe 'ls -d /data_PPM/ResourcesFCU/Shopper/daily_files2/*' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data null ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; NewDir1 = dcreate('indat1','ls -d /data_PPM/ResourcesFCU/Shopper/daily_files/*') ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data null ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; NewDir2 = dcreate('indat2','ls -d /data_PPM/ResourcesFCU/Shopper/daily_files2/*') ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data file_list1 ;&lt;/P&gt;&lt;P&gt;length fname $250&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; ;&lt;/P&gt;&lt;P&gt;infile indat1 truncover&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; /* infile statement for file names */&lt;/P&gt;&lt;P&gt;input fname $250.&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; ; /* read the file names from the directory */&lt;/P&gt;&lt;P&gt;call symput ('num_files1',_n_) ; /* store the record number in a macro variable */&lt;/P&gt;&lt;P&gt;If scan(fname,-1,'.') = 'txt' then delete&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;If scan(fname,-1,'/') = 'dupes' then delete ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error messages from my log&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;47&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data file_list1 ;&lt;/P&gt;&lt;P&gt;48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length fname $250&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; ;&lt;/P&gt;&lt;P&gt;49&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile indat1 truncover&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; /* infile statement for file names */&lt;/P&gt;&lt;P&gt;50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input fname $250.&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; ; /* read the file names from the directory */&lt;/P&gt;&lt;P&gt;51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput ('num_files1',_n_) ; /* store the record number in a macro variable */&lt;/P&gt;&lt;P&gt;52&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If scan(fname,-1,'.') = 'txt' then delete&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;53&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If scan(fname,-1,'/') = 'dupes' then delete ;&lt;/P&gt;&lt;P&gt;54&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Numeric values have been converted to character values at the places given by: (Line):(Column).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 51:27&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ERROR: No logical assign for filename INDAT1.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.FILE_LIST1 may be incomplete.&amp;nbsp; When this step was stopped there were 0 observations and 1 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 07:25:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-using-PIPE-to-create-directory/m-p/1874#M618</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2014-11-20T07:25:28Z</dc:date>
    </item>
  </channel>
</rss>

