Problem solve Get help with specific problems with your technologies, process and projects.

Restricting users from using 'Save (*yes)' in CHGSPLFA

How would you go about not allowing users to 'Save (*yes)' in CHGSPLFA? I would like to restrict this to a few forms only.
This parameter value could be restricted through the use of a command Validity Checking program (VCP).

A VCP could verify the value passed for the SAVE parameter of the CHGSPLFA command and force it to *NO unless FORMTYPE is equal to a particular value.

The following information is taken from the HELP screen for CRTCMD parameter VLDCKR:

Specifies the name and library of a program that performs additional user-defined validity checking on the parameters in the command being created. The same parameters that are passed to the CPP (these are identified in the PGM parameter) are also passed to the validity checking program. The validity checker performs additional user-defined validity checking beyond that specified by the command definition statements in the source file, and beyond normal control language syntax checking. More information on validity checking is in the CL Programming book, SC41-5721.


The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.

Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.

Check out this Search400.com Featured Topic: 20 ways to ensure a smooth OS upgrade

Dig Deeper on i5-OS

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.