Question

  Asked: Jun 20 2008   3:45 PM GMT
  Asked by: Aldo


How to block some parameter on a command


iSeries, iSeries programming commands, WRKSPLF

Hi , i want to refuse on the WRKSPLF commando the use of *All or generic parameter on the User parameter and force it to *current .
I've worked on the exit program but it works only if the commando comes directly from the commandLine.If the prompt is used , the user can use *all or a generic and go through the exit program.Is there a way to refuse the utilisation of some parameters from the prompt of the command.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



the normal way to do this would be to create your own version of the command and then place it higher in the library list than QSYS

it is not a good idea to change the QSYS version of a command as
1) this can cause other processes to fail and
2) it will be overwritten when you do an operating system upgrade

Take some time to study up on selective prompting of CL commands which has been in effect since System 38 days. Using keywords you can force prompting for only certain parameters on a command and even force a value and protect the parameter from being modified. For your example you would add an option to a menu to execute WRKSPLF ?*SELECT(*CURRENT). The ?* keyword says only this parameter is prompted, we force a value of *CURRENT and protect the parameter from being changed.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register