×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Not LR=*ON! (Unless he's coding DFTACTGRP(*YES), I suppose)
Assuming he's using an ILE activation group, and not OPM compatibility
mode, the storage will remain allocated until the activation group ends.
(Same as would happen with %ALLOC, except there's no way to deallocate
it.) RPG uses static storage for global variables, not automatic storage.
But I agree that it's a bad idea. And not just for that reason --
you've also created code thats not reentrant. what happens if you have
3 programs in the same job calling this same "PGM2" program?
It's just a bad idea.
Charles Wilt wrote:
This is probably not a good idea. In fact, if PGM2 ends with LR=*ON,
you've got a real good possibility of corrupting memory.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.