Strovent SystemsSign in
Reference

IBM i objects, libraries and the IFS

What an object, a library and the library list are, and how IBM i names things.

IBM i stores everything as an object. Each has a name, a type (for example *FILE, *PGM, *DTAARA, *OUTQ) and lives in a library.

Libraries

  • A library (*LIB) is a container for objects. It is like a folder, but libraries do not nest. They are listed under the system library QSYS.
  • QSYS holds the system. QGPL is general purpose. QTEMP is private to the job and is cleared when the job ends.
  • A name is up to 10 characters. A full name is LIBRARY/OBJECT.

The library list

When you use a name without a library, IBM i looks through your library list (*LIBL) in order. DSPLIBL shows it. ADDLIBLE adds to it and CHGCURLIB sets your current library, where new objects go by default.

Files and members

  • A physical file (*FILE, type PF) holds data in rows. A logical file is a view of one.
  • A source file is a physical file that holds program source. It has a member per source program. Names are written LIB/QRPGLESRC(MYPGM).
  • Display files define 5250 screens.
  • Output queues (*OUTQ) hold spooled files for printing.

Jobs and subsystems

  • A job is a unit of work. An interactive job runs for each signed-on display.
  • Jobs run in subsystems (such as QINTER for interactive, QBATCH for batch).
  • A job has a name like 123456/JSMITH/QPADEV0001: number, user, job name.

The IFS

The Integrated File System adds a directory tree (/home/jsmith, /QSYS.LIB, ...) like Unix. SFTP and many tools use this view. Library objects are visible under /QSYS.LIB.

Spotted a mistake? Email [email protected].