#SAS Stack setting?
03-Jan-93 10:14:05
Sb: #31173-#SAS Stack setting?
Fm: Doug Walker 71165,2274
To: Harold Scadden 71401,3035
I think you misunderstand a little how the CLI works…
What normally happens, in the absence of setting __stack or anything
like that, is that each program run in the CLI inherits the CLI's
stack. You can set the size of the CLI's stack with the STACK
command.
If you set __stack, we will guarantee you a stack AT LEAST that
large. If the CLI's stack is large enough, we will use it; otherwise,
we allocate a new stack and use that instead.
If we were to always allocate you a 8k stack because you set __stack
to 8k, we would be wasting the 20k CLI stack that is already allocated.
There is no benefit to allocating the smaller stack.
To try out the option, set your CLI stack to 4k instead of 20k. Your
program will end up with an 8k stack even though the CLI has only 4k.
–Doug