Glossary

Integrated File System

IFS

The integrated file system is the part of IBM i that keeps files in folders the way a personal computer or a Linux box does, and it is where every piece of AI work on the platform lands: the Python interpreter, downloaded model files, JSON request and response text, and the open source packages IBM installs under /QOpenSys/pkgs. IBM says it supports stream input and output and storage management similar to personal computer and UNIX operating systems, and that it comprises 10 file systems, each with its own rules.

What it isThe part of IBM i that keeps files in folders, the way a personal computer or a Linux box does
How many file systems10, per IBM, each with its own rules for storing things
What it storesStream files, object type *STMF, a plain sequence of bytes with no structure added by the system
Where open source lands/QOpenSys/pkgs, the prefix IBM installs its open source packages into

What is the integrated file system?

Picture a hardware store. Behind the counter is a wall of small labeled drawers. Every drawer is the same shape, every label is short, and each one holds one kind of part. Out front are open shelves, where a box can be any size and the shelf runs as deep as you want. IBM i has both. The drawers are the old library system. The open shelves are the integrated file system, or IFS. A file on those shelves can be a Python script, a downloaded model file, a photo, or a block of JSON text, which is JavaScript Object Notation.

IBM puts it this way: the integrated file system is a part of the IBM i operating system that supports stream input and output and storage management similar to personal computer and UNIX operating systems, while providing an integrating structure over all information stored on your system. IBM also states that it comprises 10 file systems, each with its own set of logical structures and rules for interacting with information in storage. The thing it holds is a stream file, which IBM defines as a randomly accessible sequence of bytes, with no further structure imposed by the system. A stream file is a real IBM i object, and its object type is *STMF.

  • root (/), the main tree, which matches the UNIX root directory
  • QOpenSys, the open systems file system, which IBM says is compatible with open system standards based on UNIX, such as POSIX, the Portable Operating System Interface, and the X/Open Portability Guide
  • User-defined file systems, which you create and manage yourself on an auxiliary storage pool of your choice
  • QSYS.LIB, the library file system, which supports the record-based IBM i library structure
  • Independent ASP QSYS.LIB, the same library structure on an independent auxiliary storage pool
  • QDLS, the document library services file system
  • QOPT, the optical file system
  • QNTC, the IBM i NetClient file system
  • QFileSvr.400, the IBM i file server file system, which reaches file systems on other IBM i machines
  • NFS, the Network File System

Why does AI work on IBM i end up here?

Nearly every AI tool a shop would run on IBM i is open source software, and open source software on IBM i runs in PASE, the Portable Application Solutions Environment that IBM builds into the operating system. PASE programs read and write ordinary files, not library records. So the Python interpreter, the packages it pulls in, a downloaded model file, and the JSON a program hands to a model all sit in the IFS. If you have ever wondered where a model file would even go on an IBM i machine, this is the answer.

How an open source AI tool gets onto an IBM i machine

  1. Install the packageUse yum from a PASE shell, or the Open Source Package Management plugin in IBM i Access Client Solutions, which is the IBM workstation client for IBM i.
  2. The files land under /QOpenSys/pkgsIBM states that all software provided by the RPMs will install in to the /QOpenSys/pkgs prefix. RPM is the package format IBM uses to ship this software to IBM i.
  3. Point your shell at itThe IBM instructions set PATH=/QOpenSys/pkgs/bin:$PATH and export it, and say you can make that permanent by adding those lines to $HOME/.profile.
  4. Run itThe IBM support page shows python39 installed at /QOpenSys/pkgs/bin/python3.9, so the interpreter is simply a file in the IFS that PASE runs.

Steps taken from the IBM i open source documentation page RPM pile for IBM i releases in standard support, and from the IBM support page How to Determine where IBM i Open Source Packages are installed, both read November 22, 2026. The version number in that example is the one IBM shows; install whichever release your shop needs.

How is it different from the old library system?

The library file system, QSYS.LIB, is record based. A record file has set fields with set lengths, which is exactly right for a customer master file and no use at all for a model file. Names are short there too, and that alone rules it out for open source software, where one file can be named something like modeling_utils.py.

Longest name you can give one part of a path name, by file system

root (/)255 characters
QOpenSys255 characters
QSYS.LIB10 characters
QDLS8 characters

From the file system summary table in the IBM i 7.5 Integrated file system manual, read November 22, 2026. IBM notes that for certain CCSID values, which are coded character set identifiers, the 255 character limit can be less. For QSYS.LIB the value is up to 10 characters for the object name and up to 6 characters for the object type. For QDLS it is up to 8 characters for the name and 1 to 3 characters for the file type extension.

What the IBM file system comparison says

Capabilityroot (/)QOpenSysQSYS.LIB
Type of fileStreamStreamRecord
Case-sensitive name searchNoYesNo
File size limit*TYPE2 1 TB, *TYPE1 128 GB*TYPE2 1 TB, *TYPE1 128 GBDatabase file sizes
Maximum length of path name16 MB16 MB55 characters
Supports symbolic linksYesYesNo
Standard part of IBM iYesYesYes

Read from Table 2, File system summary, in the IBM i 7.5 Integrated file system manual on November 22, 2026. *TYPE1 and *TYPE2 are the two directory formats IBM supports. IBM lists the independent ASP QSYS.LIB file system at a maximum path name length of 66 characters. Table rows are not linked because this site content blocks render as plain text.

Can SQL read and write these files?

Yes, and that is the bridge between a business program and an AI tool. Db2 for i ships services in the QSYS2 schema that work on IFS files directly, so a program can drop a question into a file, let a PASE script answer it, and read the answer back without ever leaving SQL. SQL is Structured Query Language, the language Db2 for i already speaks.

  • QSYS2.IFS_OBJECT_STATISTICS. IBM says it returns a table of objects contained in the starting path name or accessible from the starting path name. That is how you list a directory from SQL.
  • QSYS2.IFS_READ, IFS_READ_BINARY and IFS_READ_UTF8. IBM says they read an integrated file system stream file identified by path-name, and that the data is returned as character, binary, or UTF-8 data.
  • QSYS2.IFS_WRITE, IFS_WRITE_BINARY and IFS_WRITE_UTF8. IBM says they write data to an integrated file system stream file, and that up to 2 gigabytes of data can be written by one call to this procedure.

Check your own release before you design around these. The IBM support pages list the IFS_READ and IFS_WRITE families against IBM i 7.3 and 7.4, and IBM delivers this kind of function by database PTF group level, where PTF means program temporary fix. A machine that is behind on fixes can be missing one of them.

What should you watch out for?

  • Upper and lower case matter in QOpenSys and do not in root. IBM says the root file system preserves the same uppercase and lowercase form in which object names are entered, but no distinction is made between uppercase and lowercase when the system searches for names.
  • QOpenSys does distinguish, which IBM illustrates by noting you can have an object named Payroll, an object named PayRoll, and an object named PAYROLL in the same directory there.
  • Open source software expects case to matter, which is the reason IBM installs its packages under /QOpenSys and not under root.
  • QSYS.LIB does not support symbolic links, while root and QOpenSys do. A tool that unpacks itself with symbolic links has to land in the IFS.
  • One stream file tops out at 1 TB in a *TYPE2 directory and 128 GB in a *TYPE1 directory, per the IBM comparison table.

The IFS is not a free parking lot. Every file in it is a real IBM i object with an owner and authorities, it is saved and restored like any other object, and IBM i can scan it. Treat a directory full of downloaded model files the way you treat a library: decide who owns it, decide who can read it, and check that it is in your backup.

Related Terms

IBM i

IBM's operating system for Power servers running traditional AS/400-lineage business applications, with Db2 for i built directly into the OS.

IBM PASE for i

PASE for i is the AIX runtime built into IBM i, and it is where the open-source software behind most AI work on the platform actually runs. It ships as option 33 of 5770-SS1, has been a no-charge option since V5R2M0, and it hosts the yum-installed Node.js and Python builds under /QOpenSys/pkgs, including the Mapepire server that IBM's IBM i MCP Server connects through on port 8076.

Python for IBM i

Python for IBM i is the open source Python runtime IBM delivers as yum installable RPM packages that run inside PASE for i, under /QOpenSys/pkgs. It is the practical place to run AI client code on the box itself, because the pieces that job needs are already Python packages: Mapepire or ODBC for Db2 for i data, and itoolkit for calling RPG and CL programs.

Db2 for i

The relational database management system built into every IBM i operating system, tightly integrated with IBM i rather than a separately installed database product.

IBM i Services

IBM i Services are SQL views, table functions, procedures and functions that IBM ships inside the operating system, so you can read system information with a SELECT instead of coding to a system API. Most live in the QSYS2 schema, and they are how AI agents read an IBM i box: every tool in IBM's own IBM i MCP Server is a SQL statement against a service such as QSYS2.SYSTEM_STATUS or QSYS2.NETSTAT_INFO.

Code for IBM i

Code for IBM i is the free, open source Visual Studio Code extension that lets a developer browse libraries and edit and compile RPG, CL, COBOL and C source on an IBM i over SSH. It owns the connection to the system, so other extensions plug into it rather than building their own, and IBM Bob Premium Package for i installs it automatically, which makes it the layer AI coding help on IBM i actually runs on.

llama.cpp

llama.cpp is an open source C and C++ engine that runs a large language model on ordinary processors, with no graphics card and no cloud account. IBM packages it for IBM i as the llama-cpp RPM in the base repository that IBM i 7.3 and later systems already use, so a yum install puts llama-cli and llama-server inside the IBM i partition itself.

Db2 for i HTTP Functions

Db2 for i HTTP functions are SQL functions in the QSYS2 schema that call a web service straight from a SQL statement on IBM i, which is how an RPG or SQL program can reach an AI model's REST endpoint without installing anything extra. IBM ships GET, POST, PUT, PATCH and DELETE, each in text, binary and verbose forms, and says they give the same capabilities as the older SYSTOOLS HTTP functions without the overhead of creating a JVM.