IBM Support

How to Update an ISPF Command Table

How To


Summary

The ISPF Command Table Utility can be used to update a command table, unless the command table is in use. If the command table is in use:
1. Copy the command table into a different library
2. Change the copied member
3. Replace the member in the original library.

Steps

Here is an example of how to update command table USERCMDS while it is in use:
1. Copy the command table into a different library
- Create a private table library such as 'MYDATA.TEST.TABLES' with FB records and a record length of 80.

- Locate USERCMDS in the ISPTLIB concatenation. On an ISPF command line, enter

DDLIST

On the Current Data Set Allocations panel, enter

MEMBER USERCMDS ISPTLIB

to search the ISPTLIB concatenation for member USERCMDS.

- Use the M command to show USERCMDS in a member list. Use the C line command to copy the member to your newly created 'MYDATA.TEST.TABLES' library. Use new member name XXXXCMDS.

2. Change the copied member

- Create and then run the following exec:

/* rexx */                                            
address ispexec                                       
"libdef isptlib dataset id('mydata.test.tables')"     
"libdef isptabl dataset id('mydata.test.tables')"     
"select panel(ispucma) addpop scrname(cmdtable)"      
"libdef isptlib"                                      
"libdef isptabl"                                      
- When the Command Table Utility panel displays, enter XXXX for the Application ID and press the Enter key.
- Make any changes to the renamed USERCMDS table (XXXXCMDS).
- Enter the END command to save the changes.
- Enter the END command to exit the Command Table Utility.
3. Replace the member in the original library.
- Use the Move/Copy Utility to copy XXXXCMDS back to the original table library.
- Use the Library Utility or Data Set List Utility to rename the original USERCMDS to SAVCMDS so if errors occur, you have a backup. Then, rename member XXXXCMDS to USERCMDS.  


Document Location

Worldwide


[{"Line of Business":{"code":"","label":""},"Business Unit":{"code":"BU054","label":"Systems w/TPS"},"Product":{"code":"SSBLLD","label":"ISPF for z/OS"},"ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

More support for:
ISPF for z/OS

Software version:
All Version(s)

Document number:
6408708

Modified date:
27 April 2021

UID

ibm16408708

Manage My Notification Subscriptions