Previous Topic: Define External Line CommandsNext Topic: Code and Display Data or Variable Substitution


Parmlib Member LINECMDS

Use the LINECMDS parmlib member to define line commands externally and associate the definition with an existing CA SYSVIEW primary command.

Code the following parameters on the first line of each definition:

The LINECMDS parameter has the following syntax:

Command.Screen... Linecmd. Min  Command-String
command.screen    linecmd  min  <OPTS options> CMD string
command

Specifies the name of the command to which this definition applies. This value is not case-sensitive.

Maximum Length: 8

screen

Specifies the screen name within a specific command. For most commands, the screen name is left blank. This value is not case-sensitive.

Maximum Length: 8

linecmd

Specifies the external line command name. This value is not case-sensitive.

Maximum Length: 8

min

Specifies the minimum allowable length of the external line command name. The minimum value is 1 and maximum value is 8. Any other value is ignored.

Default: 3

options

Specifies the options to be associated with the entry. To indicate that option keywords are to follow, enter the keyword OPTS before the option keywords.

The following are the valid options keywords:

PAD pad

Specifies a string to use during variable substitution when the field contains all blanks.

XSYS

Indicates an XSSYSTEM entry, which is only used for cross-system data lines where the XSSYSTEM name is different from the current system name.

string

Specifies the command string. To indicate that a command string is to follow, enter CMD before the command string.

The command string executes when the line command processes. Start the command string on the first or second line of a definition. If the string requires multiple lines, use a continuation character. Start or continue the command string in any column from 1 to 72.

Maximum Length: 250

When coding command strings, use the following guidelines:

Examples: Parmlib member LINECMDS

The following example shows sample definitions:

....+....1....+....2....+....3....+....4....+....5....+....6....+....7..
*Command. Linecmd. Min  CmdString
 ACTIVITY ENQUEUE    1  CMD ENQUEUE;SELECT RNAME EQ &F_JOBNAME

 ACTIVITY ENQUEUE    1  CMD ENQUEUE +
                        ;SELECT RNAME EQ &F_JOBNAME

 ACTIVITY ASID       8  CMD ASID &F_JOBNAME

 ACTIVITY ASID       8  OPTS XSYS CMD ACTIVITY;ASID &F_JOBNAME +
                        FIND &F_JOBNAME JOBNAME

 ACTIVITY CANCEL     1  CMD CONFIRM Cancel job: &F_JOBNAME +
                        ;ASCANCEL &F_JOBNAME +
                        NODUMP NOCONFIRM NOMSG