Strovent SystemsSign in
Reference

IBM i "not found" messages, CPF9801, CPF2105 and CPF9810

What the IBM i messages CPF9801, CPF2105 and CPF9810 mean, why the library list matters, and how to find which library an object is really in.

CPF9801  Object &2 in library &3 not found.
CPF2105  Object &1 in &2 type *&3 not found.
CPF9810  Library &1 not found.

These are IBM's message texts. The & parts are replaced by the real names when the message appears. The system looked for an object or a library with the name you gave and did not find it. If the message says you are not authorized, see IBM i "not authorized" messages.

Read the message

  • CPF9801 and CPF2105 name an object, and the library and type it was looked for in.
  • CPF9810 names a library. IBM's command pages also list CPF2209 and CPF2110 with the text "Library &1 not found".

Check three things in what the message shows: the name (a typing mistake is the simplest cause), the library, and the type, such as *FILE or *PGM. An object name can exist with a different type.

The library list

When a command gives the library as *LIBL, IBM documents that all libraries in the library list for the current thread are searched. An object in a library that is not on the list is not found. Show the list:

DSPLIBL

Add a library to the user part of the list:

ADDLIBLE LIB(MYLIB) POSITION(*LAST)

ADDLIBLE adds the library to the user portion of the library list for the current job thread. Naming the library on the command, for example MYLIB/MYPGM, avoids the list.

Find where the object is

WRKOBJ shows a list of objects from one or more libraries. To search many libraries for a name:

WRKOBJ OBJ(*ALL/MYPGM) OBJTYPE(*ALL)

*ALL for the library means all libraries in the system, including QSYS. IBM documents two limits that can hide an object:

  • Only the libraries to which you have use (*USE) authority are searched.
  • Only the objects to which you have some authority are shown.

So an object missing from the list may still exist. If the name should exist, ask the administrator to look, and give them the message text.

Sources

Spotted a mistake? Email [email protected].