Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Invoking TSO Commands and CLISTs z/OS DFSMS Using the Interactive Storage Management Facility SC23-6856-00 |
|||||||||
You can invoke TSO commands and CLISTs from the list panel in any application. TSO commands and CLISTs can be entered on list panels as line operators or list commands. There is also a CLIST line operator. Invoking TSO Commands and CLISTs from the Command LineYou can directly invoke TSO commands and CLISTs from the command line of any list panel. The command or CLIST is invoked for every entry in the list. Entering TSO Commands or CLISTs with ParametersBecause these commands and CLISTs often require parameters, the command lineson the list panels allow you to extend parameters to the end of the screen. Figure 1 shows an example of the XMIT command entered from the command line of a data set list panel. Figure 1. Entering
a TSO Command from the Command Line
All the entries in the list shown in Figure 1 are sent to the user ID IBMUSER at the node STLVM27. The parameter for the command shown in Figure 1 requires you to specify the data set
name. Since the data set name changes for each entry in the list,
you can use a slash character as a substitute for the data set name.
Each data set name in the list replaces the slash when the list entry
is processed. ISMF replaces only the first occurrence of the slash
character with the data set name. For example, there are several slash
characters used in the following command:
If the data set name for a particular data set is TEST.PLI, ISMF
translates the command as follows:
You can invoke a user CLIST from the command line just like a TSO command. If you do not want the CLIST to be executed as a repeated line operator, prefix the CLIST with the TSO command. To improve performance, you can use a percent character as a prefix to the CLIST name. Figure 2 shows a CLIST with a percent character prefix. Figure 2. Entering a CLIST from the Command Line
The percent character is optional. It causes ISPF to bypass its search through the program libraries and search only the CLIST libraries for the commands. This method of locating the commands specified by the CLIST speeds up execution time by limiting the number of libraries ISPF searches. Invoking TSO Commands and CLISTs from the Line Operator ColumnYou can invoke TSO commands and CLISTs for individual data set and volume list entries. These commands and CLISTs are entered just as you would enter them from the command line except that you enter them from the line operator column. When entered as a line operator, they are only invoked for a single entry. From the command line, the CLIST processes each entry in the list. To enter parameters for these line operators, you can type over the data columns to the right of the line operator column. These data columns can act as input fields for the parameters as far as the right margin of the screen.You cannot scroll right to add more parameters. You can use the slash character in the parameter of a TSO command or CLIST and the optional percent character prefix with a CLIST as described in Invoking TSO Commands and CLISTs from the Command Line. Figure 3 shows a CLIST with a percent character prefix entered as a line operator. Figure 3. Entering a CLIST as a Line
Operator
Using the CLIST Line OperatorThe CLIST line operator allows you to invoke the CLIST Entry Panel. From the CLIST Entry Panel, you can call an existing TSO command procedure (CLIST) or issue a single TSO command. You may enter the CLIST line operator from a data set or volume list panel. Using the CLIST line operator, you can leave the list toperform tasks against individual list entries. The CLIST you call is executed in the foreground. When the CLIST is completed, control returns to ISMF so that you can continue working with the list. For example, you can use a CLIST to rename a data set or query the DFSMShsm status of a data set. The CLIST name should use a naming convention consistent with the application to which you want to pass data. Table 1 summarizes the CLIST line operator.
Using ISMF Support for CLISTsISMF
provides support for user-created commands with a system of variables.
You can use these variables in your CLIST to perform the following
functions:
Related Reading: For information on coding user-created CLISTs, refer
to z/OS TSO/E Programming Guide.
|
Copyright IBM Corporation 1990, 2014
|