AREXX Stack
3 messages in this thread
Hello,
I am wondering how to pass a stack to a program launched from an AREXX
script.
Thanks
Mike uman
[]xxi, Inc. >>>
running under AutoPilot
Mike,
Try the following line:
address command "stack 8000" || '0a'x || "run foobar"
By stringing the two commands together with the linefeed separating them,
they will be run consecutively by the same CLI process, which would keep
the 'stack' command sticky to that process.
Hope this helps….
– BobR
(Motorola Inside!)
Mike,
There are a couple of ways to adjust the stack for DOS commands launched by
the ARexx address command instruction. You can pass a stack command
explicitly as part of the DOS command, using a '0A'x (newline) separator
character. In this case the background shell created by address command
will run the stack command first, setting a new stack value, and then run
the desired command.
The default stack for commands can also be set using the ARexx pragma()
function. The function can be called as
oldstack = pragma('Stack',newstack)
where newstack is the desired value. The new value for the default stack
remains in effect until changed again by the pragma() function.
-Bill Hawes