<?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: Measure disk usage in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31503#M7502</link>
    <description>It also depends on the proc statement / datastep used.  For example; a proc sort in some cases requires at least 3 times the dataset size in space.</description>
    <pubDate>Thu, 25 Nov 2010 11:38:42 GMT</pubDate>
    <dc:creator>CameronLawson</dc:creator>
    <dc:date>2010-11-25T11:38:42Z</dc:date>
    <item>
      <title>Measure disk usage</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31498#M7497</link>
      <description>All,&lt;BR /&gt;
&lt;BR /&gt;
I would like to know whether it exists a mean to measure the maximum (peak) usage of the disk space used by my work library during the execution of one of my programs (knowing that in this program we try to delete the maximum of datasets during execution in order to free the maximum disk space as possible).&lt;BR /&gt;
&lt;BR /&gt;
The aim is to predict the possible lack of space in case of big data processing.&lt;BR /&gt;
&lt;BR /&gt;
Note: I'm using a remote connection to a windows NT server with SAS 9.1. The pc used to remotely connect to this server has SAS 8.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
Florent</description>
      <pubDate>Wed, 10 Nov 2010 10:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31498#M7497</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2010-11-10T10:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Measure disk usage</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31499#M7498</link>
      <description>might be easier if you have rights to invoke perfmon on the server, or know an administrator who has.&lt;BR /&gt;
 &lt;BR /&gt;
Of course between steps you can get the total space used by objects in your work library&lt;BR /&gt;
proc datasets details; run;&lt;BR /&gt;
reveals the data, but I find no sashelp.vxxxxxx providing the info so you would need to trap the table through ODS OUTPUT&lt;BR /&gt;
 &lt;BR /&gt;
However, it won't reveal the peak usage that happens during a step - e.g. when &lt;BR /&gt;
proc sql performs a cartesian join before grouping results &lt;BR /&gt;
or proc means needs to summarise on disk</description>
      <pubDate>Wed, 10 Nov 2010 17:58:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31499#M7498</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-11-10T17:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Measure disk usage</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31500#M7499</link>
      <description>Maybe i am missing something, but sashelp.vtable seems to contain the required data:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql print;&lt;BR /&gt;
	select sum(filesize) as SpaceUsed&lt;BR /&gt;
		from sashelp.vtable&lt;BR /&gt;
		where Libname = 'WORK' and MemType = 'DATA' &lt;BR /&gt;
	;&lt;BR /&gt;
quit;[/pre]

pre-tags added&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: andreas_lds</description>
      <pubDate>Thu, 11 Nov 2010 08:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31500#M7499</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2010-11-11T08:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Measure disk usage</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31501#M7500</link>
      <description>Andreas&lt;BR /&gt;
sashep.vtable doesn't reveal the sizes for members of the library of types other than tables : &lt;BR /&gt;
work is used not only for tables but also for catalogs, and significantly in SAS9, item stores e.g. for ODS. Also stored in work are utility files created when running steps like proc sort. Other utility files created in work hold content of display manager list and log screens. There are many other objects of types relevant to SAS solutions of which I'm aware but know little. That is why I didn't think sashelp.vtable enough to report the maximum disk-space usage of a library.&lt;BR /&gt;
Even the details report from proc datasets might not be enough as it does not report the utility files. &lt;BR /&gt;
Reporting sizes even from proc datasets would not catch the balooning usage of space in the work library during a proc sql step that requires an unrestricted cartesian join - space that might be released before the sql processing completes.&lt;BR /&gt;
 &lt;BR /&gt;
Hence my proposal of perfmon monitoring the server. &lt;BR /&gt;
peter</description>
      <pubDate>Thu, 11 Nov 2010 12:20:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31501#M7500</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-11-11T12:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Measure disk usage</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31502#M7501</link>
      <description>Thanks to both of you for the feedback !&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Florent</description>
      <pubDate>Mon, 15 Nov 2010 16:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31502#M7501</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2010-11-15T16:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Measure disk usage</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31503#M7502</link>
      <description>It also depends on the proc statement / datastep used.  For example; a proc sort in some cases requires at least 3 times the dataset size in space.</description>
      <pubDate>Thu, 25 Nov 2010 11:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Measure-disk-usage/m-p/31503#M7502</guid>
      <dc:creator>CameronLawson</dc:creator>
      <dc:date>2010-11-25T11:38:42Z</dc:date>
    </item>
  </channel>
</rss>

