This function retrieves the name of the next program in the list of programs analyzed by the project. It is intended to be called in the "END" input point in order to read and total the values of certain project-level program metrics.
It must be called iteratively after an initial call to QMQueryFirstProgram.
Context
Windows client,
Windows server.
Parameters
- ALPHA(n) |
ProgramName |
Name of the program, or *BLANK to read a metric at the global project level. |
- BOOL |
ReturnCode |
Return code for the operation: *TRUE if the operation was run successfully. *FALSE if the operation failed. |
Example
BEGIN_PROCEDURE END_PGM
...
CALL_DLL 'qualmgrtoolbx' 'QMQueryFirstProgram' PGMNAME ReturnCode
DO_WHILE ReturnCode
...
CALL_DLL 'qualmgrtoolbx' 'QMQueryNextProgram' PGMNAME ReturnCode
REDO
...