|
At the bottom of the command, put prompt control commands like this: PASSTHRU: PMTCTL CTL(FUNCTION) COND((*EQ P)) NBRTRUE(*EQ 1) This means that any parms conditioned with the PASSTHRU prompt control will be shown if the value of FUNCTION is P Here's an example of a parm: PARM KWD(OPTION) TYPE(*CHAR) LEN(1) RSTD(*YES) VALUES('S' 'R') PROMPT('Option: S=Send, R=Receive') PMTCTL(PASSTHRU) HTH Art Tostaine, Jr. On 12/17/05, Shannon ODonnell <sodonnell@xxxxxxxxxxxxxxxxx> wrote: > > Ah... amazing how once you ask someone a question the answer pops out at > you. > > I just discovered the PMTCTL(*PMTRQS) parameter. Which hides the extra > parms until the users presses the F10 function key. Woo-hoo! > > I'm still trying to figure out how to trigger a set of parms showing up > based on a certain value entered in another parm. If anyone has an idea > on > that one, I'd appreciate suggestions. > > Or, I guess if you wait long enough to answer, I'll probably figure it out > myself in the meantime. :-) > > TIA > > Shannon O'Donnell > > -----Original Message----- > From: midrange-l-bounces@xxxxxxxxxxxx > [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Shannon ODonnell > Sent: Saturday, December 17, 2005 1:08 PM > To: 'Midrange Systems Technical Discussion' > Subject: Creating Commands > > Hi, > > > > One of the features of OS/400 commands that I really like is how a > command, > like CPYTOIMPF for example, only displays part of the command parameters > until you press F9 (All Parameters). Another cool feature is a command > like DSPOBJD. When you enter *OUTFILE in the Output parameter and press > the > Enter key, you are automatically prompted to enter an OUTFILE name and > library. If you don't enter *OUTFILE in the OUTPUT parameter, you never > see > those additional parms. > > > > > > Is there a way to duplicate this functionality in user created commands? > I've been playing around with it a little bit today and so far have not > figured out the right combination of parameters on the PARM keyword in my > command source. > > > > Can anyone tell me how this functionality is achieved? > > > > Thank you, > > > > Shannon O'Donnell > > > > -- > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing > list > To post a message email: MIDRANGE-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/midrange-l > or email: MIDRANGE-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. > > > > > > -- > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing > list > To post a message email: MIDRANGE-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/midrange-l > or email: MIDRANGE-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. > > -- Art Tostaine (GMAIL) CCA, Inc. Jackson, NJ 08527
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.