Fernando,
I am assuming that you would like to have a way to save a command that contains multiple parameters for later use.
An example might be a command to display the top 10 CPU address spaces
ACTIVITY ; SORT CPU% D LINELIMIT 10 ; RIGHT CPU%The example above is a lot to type over and over.
Two ideas to make this easier.
1. Save the command string as a SYSVIEW QLIST (quick list)
QLIST Command
The quick list command allows a user to define commonly
used command strings or series of commands. The user
can recall or display the quick list entries for easy
selection. Some example uses of this function include:
- SELECT statements
- SORT statements
- SELECT and SORT statements
The QLIST command can be assigned to a PF-Key. If the
actions of the quick list are primarily being used to
modify the results of an active command using SORT and
SELECT statements, it is suggested that a PF-Key be
assigned the command string "QLIST ORIGIN".
The QLIST definition would be saved in the parmlib member QLIST.
You can update the QLIST member in the SITE or USER SYSVIEW parmlib.
Example QLIST Definition:
ACTIVITY Top10Cpu * Top 10 CPU Address Spaces
sort cpu% d linelimit 10 ; +
right cpu%
To execute the above, you would then type: QLIST TOP10CPU from the ACTIVITY display.
2. Define a user command.
User commands are defined in the parmlib member USERCMDS
User command can be up to 32 characters in length.
In this example, we will create a user command named: TOP10CPU
The TOP10CPU command can be issued from anywhere in SYSVIEW.
Definition:
DEFINE TOP10CPU
MINLEN *
DESC ' Top 10 CPU Address Spaces'
CMDString ACTIVITY +
; sort cpu% d linelimit 10 +
; right cpu%
------------------------------
Todd J. Gagle
Architect of Software Engineering, Team SYSVIEW
Broadcom
------------------------------
Original Message:
Sent: 02-04-2020 03:53 PM
From: Fernando Soriano
Subject: Save commands for latre use
Hello Colleagues.
I'd like your advise about the following:
Is there some way to save a command with several options for a later use? or Do I need to do a dashboard for this?
Thanks in advanced
Fernando
------------------------------
IT Mainframe Specialist
IBM de Chile
------------------------------