Lindy Mayfield wrote:
Do I need getmain any storage I need, or is it the same if I define it in my program? I seem to see it done both ways in some examples I have. I didn't really find anything in the docs (yet) that say one way or another. If it is either/or, are there pros and cons to each way?
Yes. Generally, storage must be obtained and released if you want your functions to be reentrant/refreshable (along with other considerations). Static storage (generally) makes your program reusable, at best. In a typical REXX function environment, reentrancy is not required, but reusability is. Dynamic storage comes with overhead, and should be avoided in heavily used functions. Also if the amount of storage you use is small, you might be able to use a word or two in the save area, and not alter the corresponding registers.
Gerhard Postpischil Bradford, VT ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

