Ted Holt
Ted Holt is the senior technical editor at The Four Hundred and editor of the former Four Hundred Guru newsletter at Guild Companies. Holt is Senior Software Developer with Profound Logic, a maker of application development tools for the IBM i platform, and contributes to the development of new and existing products with a team that includes fellow IBM i luminaries Scott Klement and Brian May. In addition to developing products, Holt supports Profound Logic with customer training and technical documentation.
-
Compiler Directives for RPG Programs and Modules
November 13, 2002 Ted Holt
Hey, Ted:
I would like to define a standard set of H specs for my RPG source members so that all will compile with the same options. However, some RPG source members are compiled as modules and others are compiled as standalone programs. This means I can’t include the DFTACTGRP and ACTGRP keywords in the standard H specs because RPG doesn’t allow them when compiling modules. Do you have any tips that will help me solve the problem?
— Tony
In V5R1 IBM added some new predefined compiler conditions that will help you solve this problem. The new conditions are
-
Using APIs to Send Impromptu Messages
October 9, 2002 Ted Holt
Hey, Ted:
I would like to use the error message APIs QMHRMVPM and QMHSNDPM in an RPG IV program to send messages to an error-message subfile.
I do not want to have to define the messages in a message file. I would prefer to use constant definitions from within my RPG program. Is this possible?
I’ve searched written manuals and have not yet found a way to do this.
— Russell
Any message that is not sent as an *ESCAPE, *STATUS, or *NOTIFY message can be sent as an impromptu message, Russell. Here’s a short program you can play with. …
Read more