<?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 see remote server file size on EG client in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-remote-server-file-size-on-EG-client/m-p/18047#M3215</link>
    <description>I'm assuming your remote server is UNIX and you're allowed to run system commands, like X or %SYSEXEC, on it.  If this is true, then the code below will list all of your SAS data sets in SASUSER with their filesizes (in blocks, 1 block = 512 bytes) in the SAS Log:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;DATA _NULL_;&lt;BR /&gt;
  LENGTH path $200;&lt;BR /&gt;
  path = PATHNAME('SASUSER');&lt;BR /&gt;
  CALL SYSTEM('ls -l ' !! path !! ' &amp;gt; ~/sasuser.txt');&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
DATA _NULL_;&lt;BR /&gt;
  INFILE '~/sasuser.txt';&lt;BR /&gt;
  INPUT;&lt;BR /&gt;
  PUT _INFILE_;&lt;BR /&gt;
RUN;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
..............Phil</description>
    <pubDate>Wed, 21 May 2008 14:27:32 GMT</pubDate>
    <dc:creator>prholland</dc:creator>
    <dc:date>2008-05-21T14:27:32Z</dc:date>
    <item>
      <title>How to see remote server file size on EG client</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-remote-server-file-size-on-EG-client/m-p/18045#M3213</link>
      <description>Hi, I am a new user and need your help. &lt;BR /&gt;
&lt;BR /&gt;
On my computer there is only EG 2.05, no Base SAS. As an EG client, I store my files in remote server in a folder under 'libraries'. I can see only file names when I click "server list", but no file size and date information. &lt;BR /&gt;
&lt;BR /&gt;
Today I have to clean up the space, and wonder how I can know file sizes on the remote server, like we see local files in Windows?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Thu, 15 May 2008 17:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-remote-server-file-size-on-EG-client/m-p/18045#M3213</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-15T17:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to see remote server file size on EG client</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-remote-server-file-size-on-EG-client/m-p/18046#M3214</link>
      <description>My sympathies on your still on EG 2.05.&lt;BR /&gt;
&lt;BR /&gt;
two ways come to mind&lt;BR /&gt;
1)  with a login to the remote box ...&lt;BR /&gt;
2)  write a SAS program using a code task&lt;BR /&gt;
&lt;BR /&gt;
The SAS program will have to use dopen, dclose, and the other "d" (directory) functions to retrieve the information you want.&lt;BR /&gt;
&lt;BR /&gt;
This will require a lot of reading of the SAS documentation, which is available through the SAS website.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/" target="_blank"&gt;http://support.sas.com/documentation/&lt;/A&gt;</description>
      <pubDate>Fri, 16 May 2008 12:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-remote-server-file-size-on-EG-client/m-p/18046#M3214</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-16T12:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to see remote server file size on EG client</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-remote-server-file-size-on-EG-client/m-p/18047#M3215</link>
      <description>I'm assuming your remote server is UNIX and you're allowed to run system commands, like X or %SYSEXEC, on it.  If this is true, then the code below will list all of your SAS data sets in SASUSER with their filesizes (in blocks, 1 block = 512 bytes) in the SAS Log:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;DATA _NULL_;&lt;BR /&gt;
  LENGTH path $200;&lt;BR /&gt;
  path = PATHNAME('SASUSER');&lt;BR /&gt;
  CALL SYSTEM('ls -l ' !! path !! ' &amp;gt; ~/sasuser.txt');&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
DATA _NULL_;&lt;BR /&gt;
  INFILE '~/sasuser.txt';&lt;BR /&gt;
  INPUT;&lt;BR /&gt;
  PUT _INFILE_;&lt;BR /&gt;
RUN;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
..............Phil</description>
      <pubDate>Wed, 21 May 2008 14:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-see-remote-server-file-size-on-EG-client/m-p/18047#M3215</guid>
      <dc:creator>prholland</dc:creator>
      <dc:date>2008-05-21T14:27:32Z</dc:date>
    </item>
  </channel>
</rss>

