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

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.

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts including news, tips, and advice to help you do your job more efficiently and effectively. Stay informed on the hottest topics and biggest challenges faced by IT professionals working with iSeries products and services.

    By submitting your registration information to Search400.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of Search400.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

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.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

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

This was first published in May 2005