Solved

Getting CPF7007 error code while using QjoRetrieveJournalEntries api  - AS400

Posted on 2014-01-07
4
108 Views
Last Modified: 2016-06-13
Hi,

in AS400, currently we are using  QjoRetrieveJournalEntries api to retervie the journal entries form As400 Journals.

but currently i am getting the API exception CPF7007. some the API docs

http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fcl%2Frcvjrne.htm

Could you please let me know when will we get CPF7007 message code for the QjoRetrieveJournalEntries api?

Thanks,
Venkat
0
Comment
Question by:Vsomepalli
4 Comments
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 39772667
Cpf7007 is te result of an journal action on a file member that can nor be allocated, Because it is inexclusively locked on that moment.
0
 
LVL 34

Accepted Solution

by:
Gary Patterson earned 500 total points
ID: 39772674
Hi Venkat,

CPF7007 = Cannot allocate member __ in file __ in __.

If you look at the documentation for the QjoRetrieveJournalEntries API (the API behind the RCVJRNE command), at

http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapis%2FQJORJRNE.htm

you'll see that the following lock is required:

Authorities and Locks
...
Non-Integrated File System Object Lock (if specified) *SHRRD

This seems to mean that if you are retrieving journal entries for a file, the job running the QjoRetrieveJournalEntries API needs to be able to acquire a shared read lock on the underlying file.

I guessing that when this happens in your environment, another process has an exclusive lock on the file.  Exclusive locks cause lots of problems.  Find out what job is locking the file exclusively, and why.

If the exclusive lock is short, you may want to just pause journal processing for a bit until the exclusive lock is release.  If the exclusive lock is long, you may want to journal this file to a different journal receiver and process it seperately - and schedule around the job that is holding the exclusive lock.

When the error occurs, determine the name of the file/member that is being processed, and use the WRKOBJLCK command to find the job holding the conflicting lock.

- Gary Patterson
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows doesn't download updates 26 99
Currency Conversion? 1 83
BOSD APC_INDEX_MISMATCH - who's the culprit ? 4 43
Delphi: barcode reading on android platform 1 26
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now