×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Darryl,
What you need is a prompt overriding program:
<
https://www.ibm.com/support/knowledgecenter/nl/ssw_ibm_i_74/rbam6/promptoverpgm.htm
<
https://www.ibm.com/support/knowledgecenter/nl/ssw_ibm_i_74/rbam6/promptoverpgm.htm>>.
Basically, you define the reference number as key parameter. When the
user enters the reference number, the prompt override program gets
called and can build the command parameter string.
You can see it in action with IBM command CHGOBJD:
- Enter 'CHGOBJD QSYS *LIB' and press F4. You can see that the actual
value of the description is already filled in, based on the key
parameters (OBJ and OBJTYPE).
- Enter 'CHGOBJD' and press Enter (or F4). You can see that you now are
prompted to fill in the key parameters. As soon as you enter the values
and press Enter, the actual value of the description is supplied.
Joep Beckeringh
Op 13-4-2020 om 21:05 schreef a4g atl:
I would like to create a command for 1 of my applications.
What I would like to achieve:
I enter a reference number and press enter. The command should then call
the validity checker or something similar which would look up the reference
number and then display to the user, the library name, Lib_A or Lib_B
which is stored on the file and it retrieved by the validity checker. Then
the user would press enter again and the command would process.
At this time I have to have multiple commands, 1 for each type.
Is this possible or do I need to create a display file and CL/RPG program
to do this?
TIA
--
Darryl Freinkel
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.