|
So to clarify about initialization - and I did look at the reference and
programmer's guide just now - when using MAIN, the extra initialization
for the cycle doesn't happen. You can't even HAVE an *INZSR, as I
understand.
I assume that data declared in the MAIN subprocedure is initialized
every time it is called, unless declared as STATIC.
So what happens with global data? If running in *DFTACTGRP? Or is that
not possible with a linear-main module? I did see the section on module
initialization, with the subtopic on global data. But it wasn't clear
what happens with global data when there is no cycle initialization.
Maybe, too, this is a stimulus to avoiding global data and passing it
along in parameters from the MAIN subprocedure, eh?
I have to find a few minutes to try out some stuff, I can see that!
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.