On Sun, Apr 29, 2018 at 10:23 AM, Rony G. Flatscher <rony.flatsc...@wu.ac.at
> wrote:
> The following address-with program using arrays hangs on input using an
> input array:
>
> inArray=("first input.", "| second input. ", "| third input. ") -- input
> data
> outArray=.array~new
> errArray=.array~new
> say "inArray~items="inArray~items "outArray~items:" outArray~items
> "errArray~items:" errArray~items
> say "about to run address-with..."
> "rexx testAbit.rex" with input using (inArray) output using (outArray) error
> using (errArray)
>
>
Um, WITH is not an option on command instructions....you need to include
the ADDRESS command part. Alternatively, issue the
ADDRESS instruction first with all of the information, then issue the
command.
address command with input using (inArray) output using (outArray)
error using (errArray)
"rexx testAbit.rex"
Rick
> say "address-with done."
> say "inArray~items="inArray~items "outArray~items:" outArray~items
> "errArray~items:" errArray~items
>
> Here is the Rexx program serving as teh command "testAbit.rex":
>
> call lineout "stderr:", "0) testAbit.rex, START at:" pp(.dateTime~new)
> parse source . . fullName
> fileName=filespec('name',fullName)
>
> signal on notready
> sleepTime=.25
>
> do i=1
> parse linein val
> str="1) testAbit.rex: val~length="val~length "at" pp(.dateTime~new)
> call lineout "stderr:", "stderr-"str
> say "say -"str
> say "say <-".dateTime~new "|" fileName": 'parse linein val':" pp(val)"->"
> end
>
> notready:
> call lineout "stderr:", "9) testAbit.rex, END at:" pp(.dateTime~new)
>
> ::routine pp
> return "["arg(1)"]"
>
> While hanging, pressing the return key will supply an empty string and the
> output goes to the screen for both the statements either using 'call
> leneout "stderr:",..." or "say..." (not sure whether the output and error
> redirection to the supplied array objects gets honored out in this case).
>
> Shall I open a proper bug report or is it ok to post such short programs
> relating to sandbox observations here on the developer list?
>
> ---rony
>
>
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel