Q
Problem solve Get help with specific problems with your technologies, process and projects.

Command to find out who locked the file

I have several jobs producing a CPA4072 "Maximum number of spool file records reached in QSYSPRT in QSYS lib." When I do the CHGPRTF on QSYSPRT in QSYS, it always comes back that the file is in use. How can I identify what is using it to put the change in?
Use the WRKOBJLCK command to determine who has a lock on the print file. The command would be as follows:

WRKOBJLCK OBJ(QSYS/QSYSPRT) OBJTYPE( *FILE)

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: Tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

Read this Search400.com Featured Topic: Monitoring your iSeries system .

Ask the Experts yourself: Our systems management gurus are waiting to answer your technical questions.


Dig Deeper on Performance

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close