|
A Generic Command Choice Program
by Bruce Guetzkow
I've had many opportunities to create my own commands on the AS/400, iSeries, and i5. Although you can use the VALUES or SPCVAL keywords to hardcode valid values, changing valid values requires changing the command source. On occasion I've created a command with a keyword for which valid values are already stored in a file. By specifying the CHOICE and CHOICEPGM parameters on the PARM, ELEM or QUAL statements, you can create a program to display the list of valid values stored in that file. The following is an example of a generic program you can use for any command/keyword combination with data in nearly any file. READ MORE >
|
|
Command Authority and LOGCMD
Hey, Wayne O.:
Is there a security exposure if a user has command line access plus special authorities, such as job control (*JOBCTL) and spool control (*SPLCTL), with the *PUBLIC authority is set to *USE for commands such as CRTUSRPRF, DLTUSRPRF, CHGUSRPRF, GRTUSRAUT, DLTLIB, CLRLIB, CRTLIB, CHGSYSVAL, CHGOBJOWN, GRTOBJAUT, CHGDSTPWD? Do you need to set the *PUBLIC authority to *EXCLUDE for these commands? What harm can the users with command line do? And do programmers really need *ALLOBJ authority? READ MORE >
|
|