Triton RPG compiles RPG source files - RPG II through ILE RPG IV - into JVM .class files that run anywhere Java 17 or later is installed: Linux, macOS, Windows, containers, or cloud VMs. The compiled programs use the same SQL databases and present the same screen layouts. Against Db2 for i they reproduce IBM i results; against another supported backend, see Database Backends for the semantics that are guaranteed and the caveats that bound them.
This guide covers everything you need to compile, run, and deploy RPG programs with Triton RPG.
This guide describes Triton RPG 2026.09.3. The compiler, the runtime library, and the current edition of this guide are all available from the client portal at portal.whitehorn.ltd.
Contents
- Getting Started - installation, licensing, hello world, display files, SQL, multi-program apps
- Compiling RPG Programs - include paths, ExtName, JDBC driver, build order, Makefile integration
- Running Compiled Programs - classpath layout, screen handlers, JDBC connection, exit codes
- Command-Line Reference - every option, its default and interactions; exit status; environment variables; getting support
- Diagnostic Reference - every TRNxxxx diagnostic: cause and remedy
- Display Files and Screen I/O - WORKSTN declaration, screen handlers, keyboard shift, INFDS, subfiles, headless bridge
- Calling Compiled Programs from Java - running a screen program headless and reading its data with RpgHost / RpgCapture
- Java Interoperability - procedure names, error handling, metadata annotations, conversational state, type mappings, CLASS/OBJECT interop
- Supported RPG Features - source formats, opcodes, BIFs, data types, CTL-OPT keywords, data structures, procedures, exception handling
- Calling External Programs (EXTPGM) - inter-program calls, parameter passing, BNDDIR
- JDBC Database Connectivity (EXEC SQL) - environment variables, host variables, cursors, stored procedures
- Disk File I/O - DDS physical files, keyed access, Open Access
- Fixed-Logic Program Cycle - RPG II/III cycle programs, control breaks, overflow
- Data Queues (*DTAQ) - QSNDDTAQ, QRCVDTAQ and QCLRDTAQ; keyed queues, waiting, queue scope
- XML-INTO - XML document parsing into RPG data structures
- XML-SAX - event-driven XML processing
- DATA-INTO - custom-format parsing via user-written parsers
- DATA-GEN - custom-format generation via user-written generators
- Deployment and Production - embedding in web apps, thread safety, Docker, connection pooling, activation groups, observability, security
- Troubleshooting - common errors, stack traces, getting support
- Editor Integration (Language Server) - connecting an editor to
rpg-lspfor live diagnostics - Third-Party Notices - licenses for third-party software included in Triton RPG
Support
Email support@whitehorn.ltd, use the client portal at portal.whitehorn.ltd, or contact your account representative. Response commitments and release support windows are governed by your contract; your account representative is the right contact for questions about them.
Whitehorn Ltd. Co. · 3963 S Highway 97 #214 · Sand Springs, OK 74063
Copyright © 2026 Whitehorn Ltd. Co. All rights reserved. Triton™ is a trademark of Whitehorn Ltd. Co.