Displaying and Changing
Command Properties
Part 20
Presentation Copyright 2008, Bryan Meyers, [Link]
Displaying Command Properties
Display Command (DSPCMD) command
displays command properties
DSPCMD CMD(CRTCLMOD)
Displaying Command Properties
Command processing program (CPP) actually
performs work of command
Displaying Command Properties
Operational modes determine when
command can be used
Displaying Command Properties
Where allowed to run indicates where
command can be executed from
Displaying Command Properties
Where allowed to run indicates where
command can be executed from
Where allowed
to run Meaning
*BATCH Command may be used with SBMJOB (CMD or RQSDTA parameter),
or as interpreted CL job stream
*BMOD Command may appear in batch ILE CL module
*BPGM Command may appear in batch CL program
*BREXX Command may appear in batch REXX procedure
*EXEC Command may be executed by QCMDEXC API
*IMOD Command may appear in interactive CL module
*INTERACT Command may execute from command line
*IPGM Command may appear in interactive CL program
*IREXX Command may appear in interactive REXX procedure
Displaying Command Properties
Can prevent limited capability users from
executing command
Determined by user profile
Displaying Command Properties
Property sets maximum number of allowed
positional command parameters
Must use keyword notation after maximum
Displaying Command Properties
Command may set current library and product
library in library list
Displaying Command Properties
Text property provides descriptive text
associated with command object
Changing Command Properties
Change Command (CHGCMD) command
changes commands properties
Changing Parameter Default Values
Change Command Default (CHGCMDDFT)
command changes default values for
command parameters
Changing IBM-Supplied Commands
Change affects all programs/users that use
command
New IBM i release will revert to IBM-supplied
properties and defaults for commands
Change copies of commands instead