There are times when you need to know what command is executed when you select an option from a menu generated by SDA. Consider the following scenario:
A user comes to you complaining, "The report you wrote for me is giving incorrect totals." To clarify this vague statement, you ask a few questions, finally getting the user to tell you that the misbehaving report is produced by taking Option 7 from menu OERPT1 in OELIB.
The next step is to figure out what the system does when that option is selected. The easiest way to find out is by using the Work with Message Descriptions (WRKMSGD) command, as follows:
WRKMSGD MSGID(*FIRST) + MSGF(OELIB/OERPT1)
In other words, you enter the name of the menu where WRKMSGD expects the name of the message file. This works because menus created by SDA contain the commands in the message descriptions of a message file which is given the same name as the menu.
WRKMSGD presents a typical "work with" panel. Option numbers are listed in the format USR00nn, so Option 7 is USR0007. The text of the message is the command string, so it may look something like this:
CALL PGM(OELIB/OE507)
Now you know where to begin! Look up program OE507 in library OELIB.
LATEST COMMENTS
MC Press Online