IBM i RPG parts-inventory demo (rpg-demo) — ibmi-rpg pipeline + greenscreen behavior test
- Shell 81.3%
- RPGLE 18.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .vscode | ||
| QDDSSRC | ||
| QRPGLESRC | ||
| scripts | ||
| CHANGELOG.md | ||
| extract.sh | ||
| README.md | ||
| test-1-add.sh | ||
| test-2-update.sh | ||
| test-3-duplicate.sh | ||
| test-4-required.sh | ||
| VERSION | ||
rpg-demo
A small but deliberately "hard to import" IBM i / RPG application — a parts inventory — built to
exercise the ibmi-rpg pipeline taxonomy end-to-end: compile on a real IBM i (pub400) over zelnet's
Host Server client, and test greenscreen behavior headless via zelnet --play.
What it is
- Database:
QDDSSRC/PARTPF.pf(physical file, packed-decimal qty/price, keyed by part number) +QDDSSRC/PARTLF.lf(logical file, alternate key). - Greenscreen:
QDDSSRC/PARTSDF.dspf(the 5250 display). - Programs:
QRPGLESRC/PARTMNT.rpgle(maintenance — add/change/delete/inquire) +QRPGLESRC/PARTINQ.rpgle(read-only inquiry).
Build / test / extract
bash scripts/deploy.sh— compile thePF -> LF -> DSPF -> RPGDAG on pub400 + load sample data.for t in test-*.sh; do bash "$t"; done— drivePARTMNT's live panel headless and assert (the four behavior reels — add / update / duplicate / required — the behavior gate).bash extract.sh— pull the source members back off the box into Git (the import round-trip).
Run it interactively: zelnet term pub400.com -> CALL SOMEARA1/PARTMNT (F3 exits).
The pipeline compiles via the prebuilt-zelnet ibmi-builder image; compile-success and the
zelnet --play behavior test are the gates. The IBM i objects stay on the box — the release is a
provenance tag.