TechTalk: Reveal Menu Options

General
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

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.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: