On Tuesday, 11/04/2008 at 12:00 EST, "Huegel, Thomas" <[EMAIL PROTECTED]> wrote: > But how can I determine if the CMS machine has enough virtual memory defined > to handle the variable before building it? > It's not good enough to just do a Q V STOR since that tells me > nothing regarding how much storage is available.
The easiest is to look at the output of the STORMAP command. There you will find the size of the largest unallocated chunk of memory above and below 16M. I would imagine that as you concatenate additional data on the variable that REXX is allocating new memory each time and moving the data to the new location. So depending on the size of the "current" value and the "new" value, you could use 32M to add 1 byte to a string 16M-1 bytes long. Alan Altmark z/VM Development IBM Endicott