AS/400: Close open files problem

75 pts.
Tags:
AS/400 development
CLP
RCLRSC
Dear sirs, could you please help me with the following problem: I want to close all open files that are left open from previous different steps (pgms rpg , rpgle , clp) that were run. I have tried to use a CLP pgm using RCLRSC, RCLRSC *CALLER with no success. Could you please advise me how to close these file without SIGNOFF

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Phil

==============

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’.

Tom

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Splat
    A RCLACTGRP may be of some use.
    9,605 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: