Thanks,
Nils Kilden-Pedersen
Good luck.
Of course, the other side of this equation is that the system doesn't
suffer the overhead of all the program init/termination and file opens
and closes. Designing your programs to be truly re-entrant is one of the
greatest performance wins available on an AS/400, whether in OPM or ILE.
There is no support for the FREE opcode in RPG IV. You could just
remove the line, but then there would be no guarantee that the
application worked as it did before. Check the application to
see why FREE was needed in the first place - if it's really
performing a useful function, then one option is to call the
program that was the target of the FREE request with a parameter
that requests it to set on LR and exit. There are many other
alternatives, including changing the FREEd program to control it's
own initailisation or using ILE activations groups (AGs) to allow
the selective clean up of groups of related programs.
Without knowing the circumstances of why FREE was used, it's hard to
make a recommendation.
Jon Paris - jo...@vnet.ibm.com - AS/400 AD