|
RPG isn't the only language that has initialize type functions that only execute the first time they are called. When I was programming Java Servlets awhile ago I used a init method to create a pool of iSeries connections. I only wanted that to execute when the Java class was first loaded by Tomcat and the init methods were my ticket. I am sure there are many other languages out there with the same thing. Constructors (in any language) would also be a comparable to *INZSR. . .
To put it short *INZSR adds functionality to RPG. If you need it you can use it, but make just make sure you understand how it works and you will be set (like Cozzi said).
Maybe *INZSR is the poor mans constructor ;-)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.