Spooled files into documents, for IBM i.
Open output management.
Spooldoc turns IBM i spooled files into documents. It watches your output queues and reads each spooled file into JSON with a YAML definition. Lookups add what the page does not print from Db2 for i. Templates in HTML, Word or Excel make PDF, HTML, DOCX or XLSX files, sent by email, webhook or SFTP, or saved to the IFS. The agent proposes the first definition and template from a sample; you check every value. Nothing is installed on the IBM i.
Quick start, with Docker
git clone https://github.com/Strom-Capital/spooldoc.git
cd spooldoc
printf 'BETTER_AUTH_SECRET=%s\nSPOOLDOC_SECRET_KEY=%s\n' \
"$(openssl rand -base64 32)" \
"$(openssl rand -base64 32)" > .env
docker compose up -dThen open http://localhost:3000 and create the first account. See Getting started for the first job.
Spooldoc in 90 seconds
Transcript
Your IBM i programs print invoices, pick lists and reports. Spooldoc turns those spooled files into documents. Your programs don't change, and nothing is installed on the IBM i. Spooldoc connects over the host servers and watches your output queues.
A definition, written in YAML, reads each page into data. Fields by label or position, tables of lines, and one document per invoice. It reads plain text spooled files in any code page, and XML printed into a spooled file.
A template lays out that data. It never sees lines and columns. Write it in HTML, or make it in Word or Excel. Each one makes its own file, a PDF, or both, and you see the document as you edit.
From a sample spooled file, the agent proposes the definition and the template. You check every value next to the page.
Each new spooled file becomes a run. Spooldoc reads it, makes the documents, and delivers the files to a download or a folder in the IFS. Every run is in the job log.
Spooldoc. Spooled files into documents, for IBM i. Open source, MIT licensed. spooldoc.com.
Five more minutes: the walkthrough on YouTube.
Programs print as they always have
Your programs on the IBM i (AS/400, iSeries) print to output queues, unchanged. Spooldoc connects through jt400 and runs a job for every new spooled file, by polling or in real time through a data queue. A run reads the file, extracts the page groups, makes a document of each with every template, delivers the files, then holds, moves, deletes or leaves the spooled file. Nothing is installed on the IBM i.
From a sample page to a delivered document
Features
Servers and queues
Your programs print as they always have. You add the IBM i and pick its output queues.
Definitions in YAML
A definition reads each page into JSON: fields, tables, records and page groups.
Lookups from Db2 for i
The email address an invoice does not print comes from Db2 for i, with no program change.
Templates you already know
HTML, Word or Excel with Carbone tags, rendered to PDF, HTML, DOCX or XLSX.
The agent
The agent drafts the definition and the template from a sample. You decide.
Jobs as pipelines
Source, trigger, extract, lookups, render, destination, finish. Saved as versions.
Job log
Every run is on the record, with its steps, errors and files.
Download, IFS, email, webhooks and SFTP
Files go to a download in Spooldoc, a folder in the IFS, by email to the address printed in each document, to your URL as signed JSON, or to a folder on an SFTP server.
One Compose file
The web app, Postgres and Carbone, on amd64 and arm64.
Latest posts
Spooldoc 0.8.0: routes send each document by its fields
Routes send each document of a spooled file to a destination by its fields, so one job can email the invoices of customers with an address and write the rest to an IFS folder.Spooldoc 0.7.0: lookup tables kept in Spooldoc
Lookup tables keep values Db2 for i does not have, such as the text for each payment terms code, in Spooldoc, edited in a grid or imported from CSV, and a lookup reads them with no SQL.Spooldoc 0.6.0: lookups from Db2 for i, and email alerts
Lookups read what the printed page leaves out, such as the customer's email address, from Db2 for i, and email alerts say when a run fails or watching stops.









