CompuServe Thread

AREXX Stack

3 messages in this thread
#30327From: Oxxi Tech SupportNov 23, 1992 12:06 PM
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
#30329From: Jim Nangano/SYSOPNov 23, 1992 3:24 PM
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!)
#30345From: Bill HawesNov 24, 1992 7:19 AM
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