From: Jeff H. <Je...@Je...> - 2021-12-07 20:50:29
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <p>This is from the sort.nrx source. Ed's note at the bottom gives some context. The (uncommented) <b>size</b> option might help you. It is sortRexx.nrx that uses that number for an array size, and is throwing the error messages. (I did not touch the internals of sortRexx, except to add the SINGLEOK.)</p> <p><font face="monospace">/** sort<br> NetRexx<br> <br> >>--SORT--+-----------------------------+--+------------+--><br> | +-REXX-----+ +-10000-+ | +-inputRange-+<br> +-(-+----------+--+-------+-)-+<br> +-class-(2)+ +-size--+<br> <br> +-Ascending-(1)-+<br> >--+---------------+--+-------------+--><<br> +-Descending-(1)+ +-SINGLEOK-(3)+<br> <br> Note:<br> (1) May come before range, for backwards compatability.<br> (2) Requires that you implement another sortClass with a name begining with 'sort'<br> (3) Suppresses error message if only one record to sort for Rexx objects.<br> <br> <br> CMS<br> +-NOPAD----+<br> >>--SORT-+--------+--+----------+--+---------+---><br> +-COUNT--+ +-PAD-xorc-+ +-ANYcase-+<br> +-UNIQue-+<br> <br> +-Ascending------------------------------------+<br> >--+----------------------------------------------+---><<br> +-Descending-----------------------------------+<br> | +-----------------------------------------+ |<br> | | +-Ascending--+ | |<br> +-v-inputRange-+------------+--+----------+-+--+<br> +-Descending-+ +-NOPAD----+<br> +-PAD-xorc-+<br> <br> This sort routine is very basic. It uses sortRexx class, which implements<br> the sortClass interface. To sort objects of classes other than Rexx requires<br> that you implement another sortClass with a name begining with 'sort'.<br> <br> I implemented this class using an Java array for the objects to be sorted as<br> opposed to a Rexx stem. Using an array is about 50% faster. I choose a quick/<br> Bose Norman sort since I had the code, in Rexx, for it from a time before I<br> had pipes on CMS! EJT<br> <br> */</font><br> <br> </p> <div class="moz-cite-prefix">On 12/7/2021 3:06 PM, René Jansen wrote:<br> </div> <blockquote type="cite" cite="mid:DF4...@xs..."> <pre class="moz-quote-pre" wrap="">Jeff, I am sorting a file of 8M records. I see this: ➜ src git:(master) ✗ pipe '< facts.pl | sort | cons' pebbb789_sortRexx_2 Error - Array for sort to small rc=11 pebbb789_sortRexx_2 Error - Array for sort to small rc=11 RC=11 RC=11 Would you happen to know which array that is? Best regards, René. _______________________________________________ netrexx-pipelines mailing list <a class="moz-txt-link-abbreviated" href="mailto:net...@li...">net...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/netrexx-pipelines">https://lists.sourceforge.net/lists/listinfo/netrexx-pipelines</a> </pre> </blockquote> </body> </html> |