|
> From: Vernon Hamberg > > Just wondering - what ARE people doing with activation groups? They DO put > boundaries around file cursors, so you can process the same file in > different procedures without stepping on your own toes. But what else is > going on? The biggest thing I like about activation groups is for subprograms. I write a driver program that uses ACTGRP(*NEW), then write subprograms that use ACTGRP(*CALLER) and don't set on LR. These subprograms use *INZSR to do setup, and then all information is carried through for the life of the driver program. However, once the driver program ends, all the subprograms are magically "reset" and the next time they are called, they go straight to their *INZSR routine. For caching information and sharing data between subprograms, this is absolutely the best thing since sliced bread. Joe
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.