From: Jeff H. <Je...@Je...> - 2022-06-17 22:33:49
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <p>Leslie,</p> <p>Thank you for your input.</p> <p>One small consideration is it is in NetRexx, not ooRexx, but that is doable.</p> <p>The way the NetRexx Pipelines scheduler is implemented is the stages are directly called as classes.</p> <p>The "stub" classes are simple boilerplate like this sample from strfrlab.nrx for <b>strfrlab</b> -> the full <b>strfrlabel</b>:</p> <p> <blockquote type="cite">options nostrictcase nostrictargs nostrictsignal<br> package org.netrexx.njpipes.stages<br> import org.netrexx.njpipes.pipes.<br> class strfrlab extends strfrlabel</blockquote> </p> <p>The fact that LOCATE did not get the stubs was my hasty misreading the IBM documentation. (And there could be a few others yet.)</p> <p>Jeff<br> </p> <div class="moz-cite-prefix">On 6/17/2022 4:39 PM, J Leslie Turriff wrote:<br> </div> <blockquote type="cite" cite="mid:202...@ma..."> <pre class="moz-quote-pre" wrap=""> Would it not be possible to use something more Rexxish, like this abbrev() function? | #include <locale> | #include <string> | | using namespace std; | // ------------------------------------------------------------------------------- // | inline const bool abbrev(const string pattern, | const string candidate, | const unsigned int minLength = pattern.length()) | {return candidate.length() <= pattern.length() & | candidate.length() >= minLength & | candidate.toupper() == pattern.substr(1,candidate.length()).toupper(); | } so e.g. | : | if (abbrev("locate",stagename,1) | call LOCATEstage | : and abbrev() could be used for other components as well. Leslie On 2022-06-17 13:44:27 Jeff Hennick wrote: </pre> <blockquote type="cite"> <pre class="moz-quote-pre" wrap="">From: Jeff Hennick <a class="moz-txt-link-rfc2396E" href="mailto:Je...@je..."><Je...@je...></a> To: <a class="moz-txt-link-abbreviated" href="mailto:net...@li...">net...@li...</a> My ERROR! I apologize. In getting NetRexx Pipelines stages updated last year, I did not look at the working LOCATE stage, and did not inspect the IBM documentation to see it could be abbreviated to just L. I will supply the needed short class files (one is needed for each "word": L, LO, LOC, etc. to call the LOCATE stage) to do this. When I have time, I'll scan the IBM documentation to see if there are other such stages I have missed. Jeff Hennick </pre> </blockquote> <pre class="moz-quote-pre" wrap=""> </pre> </blockquote> </body> </html> |