Prompt override programs (POP) should be provided for those commands that allow the changing of the attributes of existing objects, in particular for ‘CHG’ commands. The object to be changed should be used as the keyword object. If a ‘retrieve’ (RTV) command exists for the object type, it should be used to obtain the object details.
The example shows a fragment of prompt override program for a command, YCHGLIBLST. The prompt override program retrieves the details for any existing library list and uses them to override the existing values.
Example of a prompt override program - CMD source:

Example of a prompt override program - CL source:

Note: If a command string contains text parameters, the POP must double up any apostrophes in the text or else they will cause errors.
Note: Help groups should be provided for all commands.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |