The Close File (CLOF) command closes a database file opened by the Open Query File (OPNQRYF) and Open Database File (OPNDBF) commands. Use the the CLOSE opcode for RPG.
At one time I think we discussed how to improve preformance of called programs by not setting *INLR on in the called programs. When you’re done with those pograms, you should call them one additional time passing a parameter value that the called program uses to determine that it’s time to set *INLR on.
You may also use RCLRSC and RCLACTGRP *ELIGIBLE
Avoid RCLACTGRP *ELIGIBLE. Even IBM is beginning to recommend against it. Note that as of V5R3, it no longer appears as an optional value when the parameter is prompted with <F4>. It does appear in the [help] text with some warnings related to ‘unpredictable results’.