The short description of the wrtmsg.savf contents. wrtmsg.savf is a save file for OS/400 V4R4M0. It includes the source code as well as compiled objects. WRTMSG is the command with two parameters. The first is the text you want to place in a stream file. The second is the name of the stream file. WRTMSGR is an ILE RPG program, which actually does the job. TESTB is an example of using WRTMSG and CGSENDMAIL. You may want to modify something and recompile. For that reason I should mention that you must compile WRTMSGR using CRTRPGMOD command (or option 15 in PDM) and then bind the module with QP0LLIB1 service program(*SRVPGM) using CTRPGM. It should look like: CRTPGM PGM(SOMELIB/WRTMSGR) MODULE(SOMELIB/WRTMSGR) BNDSRVPGM(*LIBL/QP0LLIB1)