Object locks on display files

520 pts.
Tags:
Hello, I have never seen this eror before. DPHRBATFM is a display file for inputting hourly timesheets, & RPHRBATFM is the RPGLE program. When program RPHRBATFM is called, I get this error. This is an intermittent problem as well, which is making it more difficult to track down. Unforutnately, whenever this error occurs, the user's session goes back to a sign on screen. The error code is CPF4128. To module . . . . . . . . . : RPHRBATFM To procedure . . . . . . . : RPHRBATFM Statement . . . . . . . . . : 1000001 Message . . . . : Not able to allocate objects needed for file DPHRBATFM in library UBPAYMODS member or program device JBM_01A1C1. Thanks,

Software/Hardware used:
RPGLE,

Answer Wiki

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

Discuss This Question: 2  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
  • philpl1jb
    Typically a CPF4128 would indicate that you cannot establish the required lock on a file .. and programs do have to put a lock on the display file but for this to be the issue it seems like some process is placing an exclusive lock on the file or library.  And if this is a locking issue the WRKOBJLCK should help you find the process that is locking it.  But I think it's something else ..So is RPHRBATFM designed to be an only one user process?  Perhaps your process issues an exclusive lock on the display file and then a second user will get this error.  
    50,205 pointsBadges:
    report
  • TomLiotta
    It won't necessarily be the file, but rather some "objects needed for" the file. It can indeed be a component of the file, though. For a DSPF, I'd be more interested in the *DEVD first.   If possible, an ALCOBJ on the *DEVD before opening the file might interesting. Perhaps QSYSARB or the subsystem monitor job or some other system process is not able to handle device transitions quite fast enough. For any more thoughts, the file description that is opened (i.e., including any overrides, etc.) would be the first thing needed. File DDS would be next.   Tom
    125,585 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