Editing commands in the user commands table
You can edit a command in your user commands table to control how the command performs.
For example, you can replace the format of one command with the format of another. For information about the syntax and parameters used in the commands table, see Commands-table-syntax-and-parameters.
To replace the format of a command
- Edit your user commands table in an ISPF edit session.
Replace the contents of one $ACTMD entry with the contents of another entry.For example, assume that you do not have BMC utilities installed and want the STATUS command to work like the DISPLAY UTILITY command. You can replace the format of the STATUS command with that of the DISPLAY UTILITY command.
*STATUS
$ACTCMD STATUS,#STU,LOAD=ACTXXXXX,HELP=ACTHSTAU,CAT=YES, X
UTILCMD=YES*DISPLAY UTILITY
$ACTCMD DISUTILITY,#DSU,LOAD=ACTXXXXX,HELP=ACTHKDUT,CAT=YES, X
UTILCMD=YES,OBJECTS=(DB+IC+IM+IX+SG+TB+TS)If you replace everything after the pound sign (#) in the STATUS command with everything after the pound sign in $ACTCMD DISUTILITY, the new format of STATUS looks like the example shown in the following figure.
*DISPLAY STATUS
$ACTCMD STATUS,#DSU,LOAD=ACTXXXXX,HELP=ACTHKDUT,CAT=YES, X
UTILCMD=YES,OBJECTS=(DB+IC+IM+IX+SG+TB+TS)- Save the changes.
- Run the USRCOMND job in the HLQ.JCL or HLQ.UBMCCNTL data set to compile and link your user commands table.
To change the functionality of the BR and ED commands
- Edit your user commands table in an ISPF edit session.
- Insert an asterisk (*) in column one for each row of the commands that you want to change.If you insert an asterisk for the BR and ED commands (that is, you comment the commands out) in the user commands table, you can enter the commands from a table or a view list to invoke the data browsing or data editing functions, respectively. However, when you do not comment out the BR and ED commands, you can use the commands from the following lists to invoke the IBM Db2 data editor (if it is installed):
- Table
- View
- Synonym
- Alias
- Save the changes.
- Run the USRCOMND job in the HLQ.JCL or HLQ.UBMCCNTL data set to compile and link your user commands table.
Related topic