<?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 minimize the size of an integer table in numeric format? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459172#M70415</link>
    <description>&lt;P&gt;I made a file with the GUI, set the column to numeric(1) and used the red triangle to request compression on disk. Then I grabbed the script.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Untitled",
    Add Rows( 0 ),
    Compress File When Saved( 1 ),
    New Column( "Column 1", Numeric( 1 ), "Continuous", Set Selected )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 Feb 2022 13:59:16 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2022-02-08T13:59:16Z</dc:date>
    <item>
      <title>How to minimize the size of an integer table in numeric format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459084#M70404</link>
      <description>&lt;P&gt;The tables need to save are all integer numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; delete columns( 1 :: 3 );
New Column( "A" );
Column( "A" ) &amp;lt;&amp;lt; Formula( 1000 + Row() );
dt &amp;lt;&amp;lt; run formulas;
Column( "A" ) &amp;lt;&amp;lt; deleteFormula;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:10:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459084#M70404</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2023-06-09T18:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize the size of an integer table in numeric format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459125#M70406</link>
      <description>&lt;P&gt;Minimize in memory, or on disk?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In memory: use a short numeric format, numeric(1), numeric(2), or numeric(4).&amp;nbsp; These specify a signed integer of the same number of bytes with some reserved values for missing. They are all smaller than a double (8 bytes) which can represent integers up to ~50 bits...a much larger range than the 8/16/32 bit range. Also saves space on disk. (I don't think it is required, but a recent comment in the community said the pref for short numerics has to be on to use them. After turn on pref, look at the available numeric types when creating columns and look at the JSL that gets saved. The ranges are roughly +/-126, +/-32000, +/-2e9.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On disk: use compression. Two approaches, either use the red triangle to do a zip-like compression of all columns, or use the compress-columns utility that looks to see if the column has a limited number of values that could be represented as a lookup. The zip approach is slow when saving, faster when decompressing, but not as fast as loading the uncompressed data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a numeric(1 or 2 or 4) &lt;EM&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/EM&gt; zip the file to good effect if there is still some redundancy in the data that zip can squeeze out. But it is unzipped in memory so doesn't help there.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 12:59:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459125#M70406</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-02-08T12:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize the size of an integer table in numeric format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459148#M70409</link>
      <description>&lt;P&gt;Thank Craige!&lt;/P&gt;&lt;P&gt;I need to reduce the size of the file stored on the hard disk.But I don't know how to do that with JSL.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 13:40:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459148#M70409</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2022-02-08T13:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize the size of an integer table in numeric format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459172#M70415</link>
      <description>&lt;P&gt;I made a file with the GUI, set the column to numeric(1) and used the red triangle to request compression on disk. Then I grabbed the script.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Untitled",
    Add Rows( 0 ),
    Compress File When Saved( 1 ),
    New Column( "Column 1", Numeric( 1 ), "Continuous", Set Selected )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Feb 2022 13:59:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459172#M70415</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-02-08T13:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize the size of an integer table in numeric format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459179#M70416</link>
      <description>&lt;P&gt;Thanks Experts!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-02-08_223233.png" style="width: 703px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39769i70960EC4501AC739/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-02-08_223233.png" alt="2022-02-08_223233.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 14:33:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459179#M70416</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2022-02-08T14:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize the size of an integer table in numeric format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459250#M70425</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can set this preference and after by default all tables will be compressed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="guillaumebugnon_0-1644336775379.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39775i2E4CEE82F99E56B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="guillaumebugnon_0-1644336775379.png" alt="guillaumebugnon_0-1644336775379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;or by scripting as mentioned by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Compress File When Saved( 1 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You also could compress Column by using&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Compress Selected Columns( );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Feb 2022 16:17:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459250#M70425</guid>
      <dc:creator>guillaumebugnon</dc:creator>
      <dc:date>2022-02-08T16:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize the size of an integer table in numeric format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459438#M70454</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;It's amazing how much the file size is reduced.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-02-09_120210.png" style="width: 506px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39797i422DC6EE4924BC9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-02-09_120210.png" alt="2022-02-09_120210.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 09 Feb 2022 07:58:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-minimize-the-size-of-an-integer-table-in-numeric-format/m-p/459438#M70454</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2022-02-09T07:58:29Z</dc:date>
    </item>
  </channel>
</rss>

