Actually, in order to do what the OP is requesting he needs to use the Prompt Control (PMTCTL) parameter on the PARM statement in conjunction with the Prompt Control (PMTCTL) statement. The Dependency (DEP) statement is not related to prompt control.


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Wednesday, July 18, 2012 22:22
To: Midrange Systems Technical Discussion
Subject: Re: How To Create A Command With Different Options

Information Center
Programming
CL Programming
Defining and documenting commands
Defining commands
Command definition statements

Look for DEP


________________________________
From: w 4038 <window4038@xxxxxxxx>
To: midrange-l@xxxxxxxxxxxx
Sent: Wednesday, July 18, 2012 11:00 PM
Subject: How To Create A Command With Different Options

Hi

How would you create a command that has different options? 

For example, consider the SAVOBJ command.  If *SAVF is entered in the Device option, then the "Save File" option is displayed when you press ENTER.

I want to create a command that has 2 choices in an "Activity" option.  The user can enter either DELETE or UPDATE in the "Activity" option.  When ENTER is pressed, the command should display different options.

The DELETE option would display an option requesting a password.
The UPDATE option would display options related to the columns/fields to update.

Thank you
                       


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.