Darryl, I don'
Darryl, I don't think prompts won't work in batch.  They're more for an interactive process, like using F4.

On 4/14/2020 7:53 AM, a4g atl wrote:
Thanks all. I will check out the 2 solutions, Carsten's and program call to
get the values.

To clarify my need. The use is all back office that is it only happens on
the IBMi environment. There is no interactive part so web options, etc are
not an option.

The reason I am asking how to here is that using a display file requires
interactive use, which is not what I need. I need to get away from the
interactive part. So purely batch.

Thanks, Darryl.


On Tue, Apr 14, 2020 at 7:32 AM Rob Berendt <rob@xxxxxxxxx> wrote:

Joel,
I think BRMS makes extensive use of this with some of their commands.
Some of their commands can be quite slow by typing in the command name and
hitting F4 as there must be some rather intense prompting programming going
on.

Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com


-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Joep Beckeringh via MIDRANGE-L
Sent: Tuesday, April 14, 2020 12:40 AM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: Joep Beckeringh <joep.beckeringh@xxxxxxxxxx>
Subject: Re: 1 of 10 Is it possible to create a command that will present
different options based on the value entered initially?

CAUTION: This email originated from outside of the organization. Do not
click links or open attachments unless you recognize the sender and know
the content is safe.


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
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.