Have a look at the Selective Prompting for CL commands in the manual
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rbam6/rbam6pdf.pdf?view=kc
Page 355.
Your example of the call where you want to only control the library may
not be possible unless you write your own command but as you have not said
what commands you are wanting to control you may find these options
assist.
Don Brown
From: "Justin Taylor" <JUSTIN@xxxxxxxxxxxxx>
To: "MIDRANGE-L (midrange-l@xxxxxxxxxxxx)" <midrange-l@xxxxxxxxxxxx>
Date: 01/05/2018 01:50 AM
Subject: Newsletter / Marketing: Menu prompt object only
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
I have a 5250 menu with a command that references a qualified object
(MYLIB/MYOBJECT). We'd like for the user to be able to specify the object
but not the library. I can get the command to prompt for the qualified
object, but not just the object itself.
Is there a way to do that on the menu? Alternatively, doesn't the OS now
have ways to create command aliases? I checked Google for both. DDS
menus are so old it's hard to find a lot of specifics, and I came up with
nothing about command aliases.
Here's what I have so far, just using CALL as an example:
CALL ??PGM(MYLIB/MYOBJECT)
TIA
As an Amazon Associate we earn from qualifying purchases.