How bezouwenr/qshoni works
QshOni is an IBM i library of CL wrappers that lets CL, RPG, and COBOL job streams invoke QShell/PASE programs and consume their output. The main workflow is a caller invoking a wrapper, the wrapper running a command or script, and stdout or an exit status returning for the caller to use. Other documented branches cover SQL, file transfer, save/restore, IFS browsing, and logging. Source excerpts are limited to sample scripts; links for other command families rely on README statements, not inspected implementations.
Main entry points: QSHCALL.CMD QSHCALL · QSHPYCALL.CMD Python calls · RUNSQLPRM.CMD Parameterized SQL · RUNSQLSRC.CMD SQL source commands
Components 17
Command execution
- QSH execution
QSHEXEC.CMD - QSHCALL
QSHCALL.CMD - Python calls
QSHPYCALL.CMD - PHP runner
QSHPHPRUN.CMD - Python runner
QSHPYRUN.CMD - Stdout results
QSHGETPR2.CMD
SQL and data
- Parameterized SQL
RUNSQLPRM.CMD - SQL source commands
RUNSQLSRC.CMD - Query commands
QSHQRYTMP.CMD - IBM i Db2
System operations
- File transfer
QSHSSH.CMD - Save and restore
QSHSAVIFS.CMD - IFS browsing
WRKIFSLIST.CMD - Job logging
QSHWRTLOG.CMD
Runtime samples
- Python call sample
qshpython/pycallparm1.py - PHP call sample
qshphp/phpcallparm1.php
Other components
- IBM i caller
Connections 19
- IBM i caller → QSH execution: invokes
README.md - IBM i caller → QSHCALL: invokes
README.md - IBM i caller → Python calls: invokes
README.md - IBM i caller → PHP runner: invokes
README.md - IBM i caller → Python runner: invokes
README.md - QSHCALL → PHP call sample: runs script
qshphp/phpcallparm1.php - Python calls → Python call sample: runs script
qshpython/pycallparm1.py - Python call sample → Stdout results: writes parameters
qshpython/pycallparm1.py - PHP call sample → Stdout results: writes parameters
qshphp/phpcallparm1.php - IBM i caller → Parameterized SQL: invokes
README.md - IBM i caller → SQL source commands: invokes
README.md - IBM i caller → Query commands: invokes
README.md - Parameterized SQL → IBM i Db2: executes SQL
README.md - SQL source commands → IBM i Db2: executes SQL
README.md - Query commands → IBM i Db2: queries
README.md - IBM i caller → File transfer: invokes
README.md - IBM i caller → Save and restore: invokes
README.md - IBM i caller → IFS browsing: invokes
README.md - IBM i caller → Job logging: invokes
README.md