CL Command Reference - PRTTRGPGM
CL Command List > PRTTRGPGM Reference
Description:
The Print Trigger Program (PRTTRGPGM) command lists the programs which have been defined as a trigger program for the files in the specified library.
This command will print two reports for a library. The first report (Full Report) will contain all of the trigger programs associated with files in the specified library. The second report (Changed Report) will contain the trigger programs that now appear in the specified library and were not in the library when the PRTTRGPGM command was previously run for the library. If the PRTTRGPGM command was not previously run for the library, there will be no ¡¯Changed Report¡¯. If the command has been previously run for the library but no additional trigger programs are in the specified library, the ¡¯Changed Report¡¯ will be printed but there will be no objects listed. Changing the trigger time, trigger event or trigger update condition for a trigger program will not cause a ¡¯Changed Report¡¯ to be generated.
The file QSECTRGOLD in library QUSRSYS contains information from the last time the PRTTRGPGM command was run for a library. There is a member within the file, with the same name as the library specified, for each library previously specified on the command. System file QAFDTRG in library QSYS with format name of QWHFDTRG is the model file for the QSECTRGOLD file.
Restriction: You must have all object (*ALLOBJ) or audit (*AUDIT) special authority to run this command.
Examples:
PRTTRGPGM LIB(*ALL)
This command searches all files in all libraries and prints both full and changed trigger program reports.