Vanthrex for IBM i
One sidebar for everything you do on IBM i: connect, browse, edit, compile, query, monitor and fix — with checks while you type, an AI assistant, Git and a call graph built in. In VS Code, without a green screen.
Install from the Marketplace Get started Try the examples See what it doesWhat you can do
See what it does
Real examples: the code you write, what Vanthrex tells you and what it writes for you.
Bugs found while you type
More than 50 checks for RPG, CL, SQL and DDS run as you type and land in Problems: literals that are cut, array indexes out of range, numeric overflow, wrong argument counts, CHAIN without %FOUND, UPDATE without WHERE…
dcl-s custName char(10);dcl-s lines char(3) dim(5);custName = 'ACME CORPORATION';lines(6) = 'X';chain (custNo) custmast;
The fix is one click away
Press Ctrl+. on a warning: Vanthrex writes the missing code for you — an IF NOT %FOUND test, an SQLCODE test, CONST on a parameter, the missing CTL-OPT — or turns the check off.
chain (custNo) custmast;dsply custName;
chain (custNo) custmast;if not %found(custmast); // not foundendif;dsply custName;
Suggestions while you type
The next line an IBM i developer would write appears in grey: IF %FOUND after CHAIN, an SQLCODE test after embedded SQL, MONMSG after CHKOBJ. Press Tab to accept.
dcl-f custmast keyed;dcl-s custNo packed(7:0);chain (custNo) custmast;if %found(custmast);
Modernize in one command
Convert Fixed Format to Free turns H, F, D, P and C specs into free form; what needs a decision is kept as a // TODO. IF / ELSEIF becomes SELECT / WHEN just as fast.
FCUSTMAST IF E K DISKD custNo S 7P 0C custNo CHAIN CUSTMASTC IF %FOUND(CUSTMAST)C ADD 1 countC ENDIF
dcl-f CUSTMAST keyed;dcl-s custNo packed(7:0);chain custNo CUSTMAST;if %FOUND(CUSTMAST); count += 1;endif;
CL checked and formattedCL
Undeclared variables, labels that do not exist, values too long, hard-coded libraries — and Shift+Alt+F puts CL in the prompter layout.
DCL VAR(&MSG) TYPE(*CHAR) LEN(5)CHGVAR VAR(&MSG) VALUE('Nightly run started')CHKOBJ OBJ(PRODLIB/ORDERS) OBJTYPE(*FILE)IF COND(&COUNT *GT 0) THEN(DO) GOTO CMDLBL(FINISH)ENDDO
Format Document for CLNew in 3.1
Labels in column 1, commands in column 14, parameters from column 25 and long commands split with + before column 80.
PGM PARM(&LIB)DCL VAR(&LIB) TYPE(*CHAR) LEN(10)START: CHKOBJ OBJ(&LIB/ORDERS) OBJTYPE(*FILE)MONMSG MSGID(CPF9801) EXEC(GOTO CMDLBL(END))CPYF FROMFILE(&LIB/ORDERS) TOFILE(QTEMP/ORDERS) MBROPT(*REPLACE) CRTFILE(*YES)END: ENDPGM
PGM PARM(&LIB) DCL VAR(&LIB) TYPE(*CHAR) LEN(10)START: CHKOBJ OBJ(&LIB/ORDERS) OBJTYPE(*FILE) MONMSG MSGID(CPF9801) EXEC(GOTO CMDLBL(END)) CPYF FROMFILE(&LIB/ORDERS) TOFILE(QTEMP/ORDERS) + MBROPT(*REPLACE) CRTFILE(*YES)END: ENDPGM
Safe SQL scriptsSQL
DELETE or UPDATE without WHERE, = NULL that is never true and statements that cannot be undone are flagged before you run the script.
-- Monthly clean-upDELETE FROM ORDERS;UPDATE CUSTOMER SET REGION = 'EU' WHERE COUNTRY = NULL;DROP TABLE OLD_ORDERS;
DDS checked tooNew in 3.1
Physical, logical, display and printer files: names too long, decimals larger than the length, fields outside the screen, fields on top of each other, names declared twice.
A DSPSIZ(24 80 *DS3) A R CUSTSCREEN A CUSTNO 7Y 0B 3 20 A CUSTNAME 40A O 3 24 A AMOUNT 5Y 7O 5 20 A COMMENT 30A O 7 60
Share a line with a linkNew in 3.1
Copy a Link That Opens This Line: whoever clicks it opens the same member at the same line. In every terminal, members, message IDs and IFS paths are clickable.
vscode://gauravgupta0612.vanthrex-ibmi/open?system=DEV400&member=APPLIB%2FQRPGLESRC%2FORDERS&type=rpgle&line=19> CRTBNDRPG PGM(APPLIB/ORDERS) SRCFILE(APPLIB/QRPGLESRC(ORDERS)) RNF7030 The name or indicator CUSTNAM is not defined. See /home/dev/build/orders.log for details.
One set of rules for the teamTeam
Team coding standards in the workspace settings (or imported from your rpglint.json), checked while you type and in the code health report of a whole library.
"vanthrex.standards": { "qualifiedDs": true, "noGlobalsInProcedures": true, "noGlobalSubroutines": true, "procedureDescription": true}
Start in five minutes
- Install the extension from the Marketplace, or run
code --install-extension gauravgupta0612.vanthrex-ibmi. - Check the IBM i: usually only the SSH server is needed (
STRTCPSVR SERVER(*SSHD)). - Create your first connection with the guided form and Test connection.
- No IBM i at hand? Try it with examples: sample sources to see the checks and conversions offline.
- Coming from Code for IBM i? Import your setup in one step.
- Press Ctrl+Alt+A in any source to see every tool that fits it, and learn the keyboard shortcuts.
Something not working? See Troubleshooting and the FAQ.
Current version: 3.3.0 · What’s new · Changelog · Free and open source under the MIT License.