I am not a developer, but I found this note and thought it may be helpful, I hope it doesn't muddy the water:
Create a file in JDE F55CMDS that contains a userid,
description, the AS/400 command, and a sequence number. The file has an AS/400 trigger program, written in RPG/IV, that accepts records as they are changed and runs the commands. It also writes to a log file for each command executed. A custom interactive application presents the user with a list of commands they are authorized to use. When they select one, the application increments the sequence number, and the trigger program runs the command.
Daniel Bolland
Independent Consultant
Xe Update 3 / AS400