Can’t close or clear file in iSeries V5R3

20 pts.
Tags:
iSeries
Stored Procedures
V5R3
Generally we create a file in QTemp when returning data for a stored procedure. The cursor is left open so the data can be accessed. I neglected to copy the file to qtemp and now on our test system, I can't close the file, I can't clear the file. I've deleted each of the records in the file manually, however I am concerned the status of 'file in use' will cause problems. How can I get the file closed?

Software/Hardware used:
iSeries v5r3

Answer Wiki

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

End the job that has a lock on the file.
If it is an interactive job, then you can RCLRSC, and RCLACTGRP(*ELIGIBLE)

Discuss This Question: 4  Replies

 
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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • ItsHer
    Someone else was in the file that I didn't expect. Thanks!
    20 pointsBadges:
    report
  • CharlieBrowne
    I should have thought of that. DOing a WRKOBJLCK should have been my first suggestion.
    41,370 pointsBadges:
    report
  • TomLiotta
    Note that RCLACTGRP(*ELIGIBLE) probably should be run only as a last resort. It has shown to be so unpredictable that IBM actually removed "*ELIGIBLE" from the command's CHOICE() attribute in order to obscure it. And RCLRSC shouldn't be run outside of an OPM environment in the default activation group. Has ENDHOSTSVR *DATABASE ENDACTCNN(*DATABASE) been tried? Of course, STRHOSTSVR *DATABASE would need to be run afterwards. Tom
    125,585 pointsBadges:
    report
  • ItsHer
    [...] 9. CharlieBrowne and TomLiotta gave some options for closing or clearing a file in iSeries V5R3. [...]
    0 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following