From: Jeff H. <Je...@Je...> - 2022-06-17 22:56:59
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <p>Leslie and Mike and All,</p> <p>The WORDS option of the SPECs stage is supported in NetRexx Pipelines. FIELDS, and the SEPERATORs are not yet. (WORDS uses a simple PARSE, but using a non-SPACE separator will require more code, probably PARSE in a loop.)</p> <p>These stages are in the test files (specs_tests2.njp) and work:</p> <p>-- specs words space range</p> <p>specs words 2-4 1 | </p> <p>-- specs words no-space range</p> <p>specs words2-4 1 |</p> <p>Jeff<br> </p> <div class="moz-cite-prefix">On 6/13/2022 7:45 AM, J Leslie Turriff wrote:<br> </div> <blockquote type="cite" cite="mid:202...@ma..."> <pre class="moz-quote-pre" wrap=""> I too was disappointed that specs field- and word-ranges aren't yet supported in NetRexx Pipelines; I always found it so very useful for rearranging fields of records, and there's no equivalent to that in the Unixish world. Leslie On 2022-06-13 05:04:49 <a class="moz-txt-link-abbreviated" href="mailto:hp...@we...">hp...@we...</a> wrote: </pre> <blockquote type="cite"> <pre class="moz-quote-pre" wrap="">Am 13.06.2022 um 02:27 schrieb ((ich)): </pre> <blockquote type="cite"> <pre class="moz-quote-pre" wrap="">[...] Hmm... no, that looks quite similar like the first case, so this one too I will not convert to NetRexx Pipelines. But the third pipe is worth it: </pre> <blockquote type="cite"> <pre class="moz-quote-pre" wrap="">call RxPipe '< "' || fn || '"!l fs ; f1!stem loc.!spec fs 09 f1 1!stem n.' </pre> </blockquote> </blockquote> <pre class="moz-quote-pre" wrap=""> No-no-no-no: </pre> <blockquote type="cite"> <pre class="moz-quote-pre" wrap="">Error (specs) - fs 09 f1 1 write - Unrecognized option: fs </pre> </blockquote> <pre class="moz-quote-pre" wrap=""> A quick glance into the documentation reveals: </pre> <blockquote type="cite"> <pre class="moz-quote-pre" wrap="">(3) CMS only. Not yet implemented in NetRexx Pipelines </pre> </blockquote> <pre class="moz-quote-pre" wrap=""> Therefore this OS/2 pipe is converted to plain ooRexx without support from NetRexx Pipelines. Same for next one: </pre> <blockquote type="cite"> <pre class="moz-quote-pre" wrap="">if syswinver() = 'WindowsNT 6.01' then, /* Win7 only */ gehon = '< C:\Windows\System32\drivers\etc\hosts', /* mappings of dotIP to host names */ '!spec fs # f1!strip!l!spec w2!' /* keep name only */ else gehon = '' call RxPipe gehon 'literal localhost!stem honam.' /* no sort as ComboBox will do so */ </pre> </blockquote> <pre class="moz-quote-pre" wrap=""> Again spec fs char is the show-stopper. Next one? </pre> <blockquote type="cite"> <pre class="moz-quote-pre" wrap="">selni = ctlcbx~selected call RxPipe '(end ?) var selni!a:lookup f1 master!spec f2', '!spec fs ; f1!strip!var fid!reverse!spec fs . f1!reverse!xlate!var sfx', '?stem loc.!a:' </pre> </blockquote> <pre class="moz-quote-pre" wrap=""> Forget it, no way! Two times spec fs ... Next one is: </pre> <blockquote type="cite"> <pre class="moz-quote-pre" wrap=""> call RxPipe '(end ?) var fid!strip /"/!get asis BIN', '!a:take 16 bytes!spec *-* c2x!var sig', '?a:!b:take 4 bytes!reverse!spec *-* c2x!var kml', '?b:!stem rst.' </pre> </blockquote> <pre class="moz-quote-pre" wrap=""> Finally, the perfect candidate for NetRexx Pipelines, read a file binary, sip off two strings from the beginning, convert and deliver them to ooRexx, also the untouched remnant of the file for further investigation. New thereby, maybe a challenge, are the two strings and an unknown number of records returned. But first I'll "rexxify" all skipped before I attack this one. /M. _______________________________________________ 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> <pre class="moz-quote-pre" wrap=""> -- _______________________________________________ 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> |