![]()
ISPF command tables are easy to create using DTL, but converting existing command tables to DTL isn't that easy. This REXX exec will convert any command table in your ISPPROF or ISPTLIB allocation to DTL and show you the output in the ISPF editor. You can then use the CREATE or REPLACE commands to save the output.
CMD2DTL: is available as source code.
This function is superceded by ISPF's built-in ISPCMDTB command.
To save the source code using Netscape or Internet Explorer, select the link
above with the right mouse button and select 'Save Link As...' or Save Target
as...'
![]()
To edit a data set pointed to by the cursor. If the data set name is not in quotes, then TSO naming conventions are used.
TSO CMD2DTL applid
where applid is the application id of the command table to convert. For example, to convert the default ISPCMDS command table, type TSO CMD2DTL ISP (always drop the CMDS portion of the table name).
Data set name pointed to by the cursor is edited.
- Place cmd2dtl.txt in a library allocated to SYSEXEC or SYSPROC.
The following screen shows the output of TSO CMD2DTL ISP on my system:
Output of CMD2DTL EDIT SYS02165.T112847.RA000.NADEL.ISPCTL1.H01 Columns 00001 00072 Command ===> Scroll ===> CSR ****** ***************************** Top of Data ****************************** 000001 <:-------- Source for ISPF command table ISPCMDS --------------------> 000002 <:doctype dm system> 000003 <cmdtbl applid=ISP> 000004 000005 <:------------------------------------------------------------------> 000006 <:-- Generated 14 Jun 2002 by CMD2DTL EXEC. --> 000007 <:------------------------------------------------------------------> 000008 <:-- Alias entries must preceed other entries. --> 000009 <:------------------------------------------------------------------> 000010 000011 <:-------------------------------------------------- BACKWARD -----> 000012 <cmd name=BACKWARD 000013 altdescr="SCROLL UP"> 000014 <cmdact action="ALIAS UP "> 000015 000016 <:-------------------------------------------------- BOTTOM -------> 000017 <cmd name=BOTTOM 000018 altdescr="SCROLL TO BOTTOM"> 000019 <cmdact action="ALIAS DOWN MAX"> 000020 000021 <:-------------------------------------------------- FORWARD ------> 000022 <cmd name=FORWARD 000023 altdescr="SCROLL DOWN"> 000024 <cmdact action="ALIAS DOWN "> 000025 000026 <:-------------------------------------------------- TOP ----------> 000027 <cmd name=TOP 000028 altdescr="SCROLL TO TOP"> 000029 <cmdact action="ALIAS UP MAX"> 000030 000031 <:------------------------------------------------------------------> 000032 <:-- Start of non-ALIAS entries --> 000033 <:------------------------------------------------------------------> 000034 000035 <:-------------------------------------------------- ACTIONS ------> 000036 <cmd name=ACTIONS 000037 altdescr="SWITCH TO ACTION BAR"> 000038 <cmdact action="ACTIONS"> 000039 000040 <:-------------------------------------------------- AUTOTYPE ----->