Skip to content

Instantly share code, notes, and snippets.

@bobcozzi
Created June 27, 2026 17:26
Show Gist options
  • Select an option

  • Save bobcozzi/1f31770c67462b264815e399cd120090 to your computer and use it in GitHub Desktop.

Select an option

Save bobcozzi/1f31770c67462b264815e399cd120090 to your computer and use it in GitHub Desktop.
IBM i CL program to start Mapepire server mode for faster Code for IBM i connectivity

This CL program is helpful to start the Mapepire server mode job on an IBM i host for faster Code for IBM i connectivity.

Update these values for your environment:

  • &PATH: Set this to the folder where your mapepire-server JAR is stored.
  • &MAPEPIRE: Set this to the exact JAR filename/version you installed.
PGM
/* Mapepire launcher and location */
DCL VAR(&PATH) TYPE(*CHAR) LEN(128) +
VALUE('/home/cozzi/.vscode/')
DCL VAR(&MAPEPIRE) TYPE(*CHAR) LEN(64) +
VALUE('mapepire-server-2.3.5.jar')
DCL VAR(&STRMAP) TYPE(*CHAR) LEN(256)
CHGVAR VAR(&STRMAP) VALUE('java -jar' *BCAT &PATH +
*TCAT &MAPEPIRE)
/* Start SSH for port 22 access via VS CODE */
STRTCPSVR SERVER(*SSHD)
SNDPGMMSG MSGID(CPF9897) MSGF(QCPFMSG) MSGDTA(&STRMAP) +
MSGTYPE(*INFO)
/* Start Mapepire in server mode for VS CODE Users (PORT 8076) */
SBMJOB CMD(QSH CMD(&STRMAP)) JOB(MAPEPIRE) +
JOBQ(QUSRNOMAX) USER(*CURRENT)
ENDPGM
@bobcozzi

bobcozzi commented Jul 6, 2026

Copy link
Copy Markdown
Author

Classic Open Source Software Installation Procedures:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment