<?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 create unix directory using sas EG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-unix-directory-using-sas-EG/m-p/433290#M260596</link>
    <description>Paul,&lt;BR /&gt;I know that this is an old post, but referencing Chris Hemedinger's blog post was a great idea. For those who can use the DLCREATEDIR option at their site, this is a really useful facility.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Downunder Dave</description>
    <pubDate>Thu, 01 Feb 2018 21:40:48 GMT</pubDate>
    <dc:creator>DaveShea</dc:creator>
    <dc:date>2018-02-01T21:40:48Z</dc:date>
    <item>
      <title>How to create unix directory using sas EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-unix-directory-using-sas-EG/m-p/130560#M260592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to create a directory in Unix using sas EG. I need help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 20:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-unix-directory-using-sas-EG/m-p/130560#M260592</guid>
      <dc:creator>LRN</dc:creator>
      <dc:date>2013-09-05T20:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create unix directory using sas EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-unix-directory-using-sas-EG/m-p/130561#M260593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that you mean programmatically.&lt;/P&gt;&lt;P&gt;First, if you are connected to a Remote Host, make sure that the workspace server is started in such manner that allows you to do stuff&amp;nbsp; "outside" SAS (ALLOWXCMD).&lt;/P&gt;&lt;P&gt;Then you could either use OS commands for this, which you can call by CALL SYSTEM, or the X-statement.&lt;/P&gt;&lt;P&gt;There are also a variety of function calls that handles external files (DCREATE for instance).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 20:38:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-unix-directory-using-sas-EG/m-p/130561#M260593</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-09-05T20:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create unix directory using sas EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-unix-directory-using-sas-EG/m-p/130562#M260594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to make sure the workspace server is started in such a way that allows to do stuff "outside" SAS (ALLOWXGMD)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following:&lt;/P&gt;&lt;P&gt;%if %sysfunc(fexist(/aaa/bbb/ccc/&amp;amp;yymm.)) eq 0 %then %do;&lt;/P&gt;&lt;P&gt;x mkdir /aaa/bbb/ccc/&amp;amp;yymm./work;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i have to make any changes in my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 21:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-unix-directory-using-sas-EG/m-p/130562#M260594</guid>
      <dc:creator>LRN</dc:creator>
      <dc:date>2013-09-05T21:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create unix directory using sas EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-unix-directory-using-sas-EG/m-p/130563#M260595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Linus mentions, if you want to use call system or x then you may need to talk to your administrator about enabling operating system commands for workspace server sessions (the default is they are disabled). I wrote a blog post about this a while back: &lt;A href="http://platformadmin.com/blogs/paul/2011/06/noxcmd/" title="http://platformadmin.com/blogs/paul/2011/06/noxcmd/"&gt;NOXCMD: NO eXternal CoMmanDs! - platformadmin.com&lt;/A&gt;. There's lots of handy links in the post and in the comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the DCREATE function instead then you won't need to get the admin to open up xcmd access - easier for both of you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using SAS 9.3 or above then I suggest you also take a look at Chris Hemedinger's blog post: &lt;A href="http://blogs.sas.com/content/sasdummy/2013/07/02/use-dlcreatedir-to-create-folders/" title="http://blogs.sas.com/content/sasdummy/2013/07/02/use-dlcreatedir-to-create-folders/"&gt;SAS trick: get the LIBNAME statement to create folders for you - The SAS Dummy&lt;/A&gt;. It's a neat new hassle-free technique for creating dirs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 01:11:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-unix-directory-using-sas-EG/m-p/130563#M260595</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2013-09-06T01:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create unix directory using sas EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-unix-directory-using-sas-EG/m-p/433290#M260596</link>
      <description>Paul,&lt;BR /&gt;I know that this is an old post, but referencing Chris Hemedinger's blog post was a great idea. For those who can use the DLCREATEDIR option at their site, this is a really useful facility.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Downunder Dave</description>
      <pubDate>Thu, 01 Feb 2018 21:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-unix-directory-using-sas-EG/m-p/433290#M260596</guid>
      <dc:creator>DaveShea</dc:creator>
      <dc:date>2018-02-01T21:40:48Z</dc:date>
    </item>
  </channel>
</rss>

