<?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 - Learn Size of Data Set By Using SAS Code? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/315979#M68976</link>
    <description>&lt;P&gt;Just to add you can also look at SASHELP.VTABLES.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2016 15:43:09 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-12-01T15:43:09Z</dc:date>
    <item>
      <title>How to - Learn Size of Data Set By Using SAS Code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/315974#M68973</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to learn the size of specific data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example;&amp;nbsp;after I wrote the following code, I went to C:\Test path and learnt the size of data set is 192 KB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Libname Test "C:\Test";
Data Test.Cars; 
Set Sashelp.Cars;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But my question is how can I learn the size of Sas data set by using SAS code? Is it possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 15:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/315974#M68973</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2016-12-01T15:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to - Learn Size of Data Set By Using SAS Code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/315976#M68974</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select filesize from dictionary.tables where libname = 'TEST' and memname = 'CARS';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2016 15:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/315976#M68974</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-01T15:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to - Learn Size of Data Set By Using SAS Code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/315977#M68975</link>
      <description>&lt;P&gt;You can also run &lt;FONT face="courier new,courier"&gt;proc contents&lt;/FONT&gt;, the file size is found in the Engine/Host Dependent Information.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 15:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/315977#M68975</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-01T15:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to - Learn Size of Data Set By Using SAS Code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/315979#M68976</link>
      <description>&lt;P&gt;Just to add you can also look at SASHELP.VTABLES.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 15:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/315979#M68976</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-12-01T15:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to - Learn Size of Data Set By Using SAS Code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/316165#M69053</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your responses,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to use the following code it brings the following output&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select filesize from dictionary.tables where libname = 'SASHELP' and memname = 'CARS';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6189i0103DA455EE3D720/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="SizeOfFile.png" title="SizeOfFile.png" /&gt;&lt;/P&gt;
&lt;P&gt;When I try to use Contents it brings following output but when I check the&amp;nbsp;&lt;SPAN&gt;Engine/Host Dependent Information part, I cannot see any information about size of data set, can you lead me?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6190i2E60F392E7F0E3B7/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="EngineHost.png" title="EngineHost.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;About the Sashelp.VTables subject can you give me a detailed information, maybe you can share sample code?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 08:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/316165#M69053</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2016-12-02T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to - Learn Size of Data Set By Using SAS Code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/316170#M69057</link>
      <description>&lt;P&gt;Oh, you're on a toybox aka Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On UNIX, SAS reports the size:&lt;/P&gt;
&lt;PRE&gt;                        Engine/Host Dependent Information

Data Set Page Size          16384                                                 
Number of Data Set Pages    5                                                     
First Data Page             1                                                     
Max Obs per Page            107                                                   
Obs in First Data Page      82                                                    
Number of Data Set Repairs  0                                                     
Filename                    /usr/local/SAS/SASFoundation/9.2/sashelp/cars.sas7bdat
Release Created             9.0202M0                                              
Host Created                AIX                                                   
Inode Number                423566                                                
Access Permission           rw-r--r--                                             
Owner Name                  sas                                                   
File Size (bytes)           90112                                                 
&lt;/PRE&gt;
&lt;P&gt;So you may have to rely on the data from dictionary.tables or sashelp.vtable (which is a view on dictionary.columns), or you use a directory listing of the library.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 09:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/316170#M69057</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-02T09:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to - Learn Size of Data Set By Using SAS Code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/316171#M69058</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SASHELP is a library with various datasets and view within. &amp;nbsp;VTABLE is one of the SAS system metadata views (a view being code which pulls data from other datasets). &amp;nbsp;You can use this in any way you would another view (more or less like a dataset), so you could do:&lt;/P&gt;
&lt;PRE&gt;data want;
  set sashelp.vtable (where=(libname="WORK" and memname="MYDATA"));
run;&lt;/PRE&gt;
&lt;P&gt;You can open it from the eplorer window in SAS to see what is contained. &amp;nbsp;You also have VCOLUMN which has the structure of each dataset, and various other Vxxx views which all contain useful metadata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why exactly do you need this information by the way? &amp;nbsp;Generally speaking know how many bytes a file takes isn't particularly useful for anyone above system level, for us, observation and column numbers are important.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 09:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/316171#M69058</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-12-02T09:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to - Learn Size of Data Set By Using SAS Code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/316210#M69070</link>
      <description>&lt;P&gt;Thank you both of you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you told me number of observations&amp;amp;columns are more important but sometimes I need to know the size of the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for these useful information and codes &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 11:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Learn-Size-of-Data-Set-By-Using-SAS-Code/m-p/316210#M69070</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2016-12-02T11:13:28Z</dc:date>
    </item>
  </channel>
</rss>

