<?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 get the folder tree of the SASFolders? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730086#M38426</link>
    <description>Well I need to know where my files resist. Is there a short way to check that?&lt;BR /&gt;</description>
    <pubDate>Tue, 30 Mar 2021 13:33:21 GMT</pubDate>
    <dc:creator>AK100</dc:creator>
    <dc:date>2021-03-30T13:33:21Z</dc:date>
    <item>
      <title>How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/729973#M38416</link>
      <description>&lt;P&gt;Is there a way to get the folder tree of my SASFolders in my command prompt?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 06:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/729973#M38416</guid>
      <dc:creator>AK100</dc:creator>
      <dc:date>2021-03-30T06:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/729988#M38417</link>
      <description>&lt;P&gt;What exactly does SASFolders indicate?&lt;BR /&gt;Folders that the library refers to?&lt;/P&gt;
&lt;P&gt;What is the environment?&lt;BR /&gt;By command prompt, do you mean SAS for Windows?&lt;/P&gt;
&lt;P&gt;Do you mean you want to get it in SAS, or just a pure command prompt, without starting SAS?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 07:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/729988#M38417</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-03-30T07:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/729992#M38418</link>
      <description>With my SASFolders I literally mean all the SAS directories and files that I have. The environment is Windows. I just want the whole file tree weather that's in the windows command prompt or in SAS Enterprise guide.</description>
      <pubDate>Tue, 30 Mar 2021 07:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/729992#M38418</guid>
      <dc:creator>AK100</dc:creator>
      <dc:date>2021-03-30T07:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/729997#M38419</link>
      <description>&lt;P&gt;Be careful with your wording. SASFolders is usually associated with the internal folder structure of SAS metadata ("Folders" in Management Console).&lt;/P&gt;
&lt;P&gt;What you mean is the &lt;EM&gt;filesystem&lt;/EM&gt; structure.&lt;/P&gt;
&lt;P&gt;With Windows, I would use the dir command with the proper options in a FILENAME PIPE and read the results with a data step.&lt;/P&gt;
&lt;P&gt;If XCMD is not enabled, here's a piece of code by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;that recursively reads a directory tree with pure SAS means:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data filelist;
  length dname filename $256 dir level 8 lastmod size 8;
  format lastmod datetime20.;
  input dname;
  retain filename ' ' level 0 dir 1;
cards4;
/folders/myfolders
;;;;

data filelist;
  modify filelist;
  rc1=filename('tmp',catx('/',dname,filename));
  rc2=dopen('tmp');
  dir = not not rc2;
  if not dir then do;
    fid=fopen('tmp','i',0,'b');
    lastmod=input(finfo(fid,foptname(fid,5)),NLDATM100.);
    size=input(finfo(fid,foptname(fid,6)),32.);
    fid=fclose(fid);
  end;
  else do;
    dname=catx('/',dname,filename);
    filename=' ';
    lastmod=input(dinfo(rc2,doptname(rc2,5)),NLDATM100.);
  end;
  replace;
  if dir;
  level=level+1;
  do i=1 to dnum(rc2);
    filename=dread(rc2,i);
    output;
  end;
  rc3=dclose(rc2);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Mar 2021 08:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/729997#M38419</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-30T08:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/729998#M38420</link>
      <description>&lt;P&gt;The following code is a quick example.&lt;/P&gt;
&lt;PRE&gt;cd "C:\Program Files\SASHome2"&lt;BR /&gt;&lt;BR /&gt;rem all sasfiles&lt;BR /&gt;dir /s /b | findstr /i /R "\.sas" &amp;gt;c:\temp\sasdir.txt

rem all directories and sasfiles
tree /f | findstr /I /R "─ \.sas" &amp;gt;c:\temp\sastree.txt&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Mar 2021 08:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/729998#M38420</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-03-30T08:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730002#M38421</link>
      <description>Where do you want me to run this code? In the windows cmd? Or open a program file in Enterprise Guide?&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2021 08:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730002#M38421</guid>
      <dc:creator>AK100</dc:creator>
      <dc:date>2021-03-30T08:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730004#M38422</link>
      <description>&lt;P&gt;That is for command prompt.&lt;/P&gt;
&lt;P&gt;So save as .cmd or .bat and double click to start.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 08:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730004#M38422</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-03-30T08:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730016#M38423</link>
      <description>What do you mean?&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2021 09:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730016#M38423</guid>
      <dc:creator>AK100</dc:creator>
      <dc:date>2021-03-30T09:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730019#M38424</link>
      <description>you have folders/myfolders. What should I do to find my folders?</description>
      <pubDate>Tue, 30 Mar 2021 09:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730019#M38424</guid>
      <dc:creator>AK100</dc:creator>
      <dc:date>2021-03-30T09:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730021#M38425</link>
      <description>&lt;P&gt;Insert the path(s) to be searched in the datalines.&lt;/P&gt;
&lt;P&gt;The code as posted is for demonstration purposes so that it works in University Edition, but it can be applied to any environment that runs on a hierarchical filesystem (UNIX and Windows).&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 09:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730021#M38425</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-30T09:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730086#M38426</link>
      <description>Well I need to know where my files resist. Is there a short way to check that?&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2021 13:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730086#M38426</guid>
      <dc:creator>AK100</dc:creator>
      <dc:date>2021-03-30T13:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730110#M38429</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/310659"&gt;@AK100&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Well I need to know where my files resist. Is there a short way to check that?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which files?&lt;/P&gt;
&lt;P&gt;Data sets?&lt;/P&gt;
&lt;P&gt;Programs?&lt;/P&gt;
&lt;P&gt;Macros?&lt;/P&gt;
&lt;P&gt;Reports?&lt;/P&gt;
&lt;P&gt;Templates?&lt;/P&gt;
&lt;P&gt;Options?&lt;/P&gt;
&lt;P&gt;SAS Executable?&lt;/P&gt;
&lt;P&gt;SAS Configuration?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lots of different types of files and some of these are easy to get to in the metadata SAS maintains and others require using operating system tools. Specificity in need leads to better targeted responses.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 15:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730110#M38429</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-30T15:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the folder tree of the SASFolders?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730191#M38435</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/310659"&gt;@AK100&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Well I need to know where my files resist. Is there a short way to check that?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Most of your files will be on your harddisk.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;This is the kind of answer this kind of question usually gets. Please be more specific what you are looking for. Also see Maxim 42.&lt;/LI-SPOILER&gt;</description>
      <pubDate>Tue, 30 Mar 2021 19:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-folder-tree-of-the-SASFolders/m-p/730191#M38435</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-30T19:50:11Z</dc:date>
    </item>
  </channel>
</rss>

