<?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: is there a minimum file size for .sas7bdat files? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982458#M379336</link>
    <description>&lt;P&gt;Hi SASKiwi,&lt;/P&gt;&lt;P&gt;here it is&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas_filesize.png" style="width: 831px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112785iF79E3EBD7C5F9D74/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_filesize.png" alt="sas_filesize.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 22:07:46 GMT</pubDate>
    <dc:creator>cluelesssas</dc:creator>
    <dc:date>2026-01-26T22:07:46Z</dc:date>
    <item>
      <title>is there a minimum file size for .sas7bdat files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982450#M379330</link>
      <description>&lt;P&gt;I'm on SAS Studio, SAS on Demand in web browser. If I do&lt;/P&gt;&lt;PRE&gt;data mydat;
	j=1;
run;
proc contents data=mydat;
run;&lt;/PRE&gt;&lt;P&gt;it will say the File Size is ~256KB, even though the table is just 1 row, 1 column, storing the number 1.&lt;/P&gt;&lt;P&gt;That's also the file size if I try to download mydat as a .sas7bdat file.&lt;/P&gt;&lt;P&gt;I tried googling about minimum file sizes for .sas7bdat files but couldn't find anything useful. While 256KB isn't 'big' these days, it's still concerning to me that it takes even that much to store something so simple.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 21:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982450#M379330</guid>
      <dc:creator>cluelesssas</dc:creator>
      <dc:date>2026-01-26T21:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: is there a minimum file size for .sas7bdat files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982452#M379332</link>
      <description>&lt;P&gt;Since SAS7BAT files are BINARY files that are written in blocks the minimum size depends on the blocksize being used.&amp;nbsp; I am not sure exactly how SAS decides what blocksize to use but I suspect is is heavily influenced by the blocksized used by the device that you are writing the SAS file to. Check the settings of the device that you wrote the file on.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 21:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982452#M379332</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-01-26T21:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: is there a minimum file size for .sas7bdat files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982454#M379333</link>
      <description>&lt;P&gt;SAS data set files (sas7bdat) are structured with a header (fast to read, contains metadata like variable attributes, modified/created datetimes, etc) and then the data records, which are structured in "pages". The size of a page depends on the operating system and BUFSIZE option. These predictable page sizes allow for optimized reading and writing in the SAS I/O routines. This also means that your data set file size will be a multiple of the page size value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default BUFSIZE is set to 0, which lets SAS decide the best value based on the operating system and its I/O nuances.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 21:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982454#M379333</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2026-01-26T21:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: is there a minimum file size for .sas7bdat files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982455#M379334</link>
      <description>&lt;P&gt;Dataset file size is governed by the number of data pages and their size like so:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1769464363374.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112784i2B85173FCF98AEED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASKiwi_0-1769464363374.png" alt="SASKiwi_0-1769464363374.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the above there is one data set page and one data page for a total of two, hence the file size of 128K. Please post the same from your PROC CONTENTS.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 21:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982455#M379334</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2026-01-26T21:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: is there a minimum file size for .sas7bdat files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982458#M379336</link>
      <description>&lt;P&gt;Hi SASKiwi,&lt;/P&gt;&lt;P&gt;here it is&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas_filesize.png" style="width: 831px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112785iF79E3EBD7C5F9D74/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_filesize.png" alt="sas_filesize.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 22:07:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982458#M379336</guid>
      <dc:creator>cluelesssas</dc:creator>
      <dc:date>2026-01-26T22:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: is there a minimum file size for .sas7bdat files?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982460#M379337</link>
      <description>&lt;P&gt;Try telling SAS what BUFSIZE to use instead of accepting the default.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  call execute('data b000 ');
  do k=1,2,4,8,16,32,64,128,256,512;
    call execute(cats('b',put(k,z3.),'(bufsize=',k,'k)')||' ');
  end;
  call execute(';x=1;run;');
run;

proc contents data=work._all_ out=contents memtype=data; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt; NOTE: CALL EXECUTE generated line.
 1         + data b000
 2         + b001(bufsize=1k)
 3         + b002(bufsize=2k)
 4         + b004(bufsize=4k)
 5         + b008(bufsize=8k)
 6         + b016(bufsize=16k)
 7         + b032(bufsize=32k)
 8         + b064(bufsize=64k)
 9         + b128(bufsize=128k)
 10        + b256(bufsize=256k)
 11        + b512(bufsize=512k)
 12        + ;x=1;run;
 
 NOTE: The data set WORK.B000 has 1 observations and 1 variables.
 NOTE: The data set WORK.B001 has 1 observations and 1 variables.
 NOTE: The data set WORK.B002 has 1 observations and 1 variables.
 NOTE: The data set WORK.B004 has 1 observations and 1 variables.
 NOTE: The data set WORK.B008 has 1 observations and 1 variables.
 NOTE: The data set WORK.B016 has 1 observations and 1 variables.
 NOTE: The data set WORK.B032 has 1 observations and 1 variables.
 NOTE: The data set WORK.B064 has 1 observations and 1 variables.
 NOTE: The data set WORK.B128 has 1 observations and 1 variables.
 NOTE: The data set WORK.B256 has 1 observations and 1 variables.
 NOTE: The data set WORK.B512 has 1 observations and 1 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.01 seconds
       cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-01-26 at 5.09.39 PM.png" style="width: 524px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112786i563F5771ABB0C043/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-01-26 at 5.09.39 PM.png" alt="Screenshot 2026-01-26 at 5.09.39 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 22:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-a-minimum-file-size-for-sas7bdat-files/m-p/982460#M379337</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-01-26T22:12:21Z</dc:date>
    </item>
  </channel>
</rss>

