SYSVIEW Performance Management

 View Only
Expand all | Collapse all

Save commands for latre use

  • 1.  Save commands for latre use

    Posted Feb 04, 2020 03:54 PM
    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
    ------------------------------


  • 2.  RE: Save commands for latre use

    Broadcom Employee
    Posted Feb 05, 2020 08:35 AM

    Hi Fernando,

    What command do you want to save. If you want to use the saved command for a linger time, you could for instance make use of a synonym.. 
    If you have the original command of CA Sysview and you issue the command profile, you have the option to add synonyms.
    If you add a new synonym and then customize this synonym via the miscellaneous option, then you can use this synonym as 'saved' command with the specific options..
    As example, if you do a LISTJ and create a synonym called FRLIST with under the miscellaneous option at the Default parameters your job prefix.. 
    When you now enter the FRLIST command, you get the LISTJ display with your jobs only.. It uses the first parameter specified as Jobname selection.. 

    If this is not what you are looking for, let me know and we can find another solution..

    Best regards

    Hennie Hermans
    CA Technologies, A Broadcom Company



    ------------------------------
    Principal Support Engineer
    CA Technologies, A Broadcom Company
    ------------------------------



  • 3.  RE: Save commands for latre use
    Best Answer

    Broadcom Employee
    Posted Feb 05, 2020 08:55 AM
    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
    ------------------------------



  • 4.  RE: Save commands for latre use

    Posted Feb 05, 2020 11:30 AM
    Hello Todd

    I've choose your second option because I need that command  can be issued from anywhere and any users in SYSVIEW, but when I executed the command following your example it showed not data.
    Please your help again.
    Many thanks!
    Fernando





    ------------------------------
    IT Mainframe Specialist
    IBM de Chile
    ------------------------------



  • 5.  RE: Save commands for latre use

    Posted Feb 05, 2020 02:36 PM
      |   view attached
    Todd,

    Enclosed you can find a file with: usercmds member and display from SYSVIEW when I executed the command "activity top10cpu".

    Plase your help.
    Many thanks!
    Fernando

    ------------------------------
    IT Mainframe Specialist
    IBM de Chile
    ------------------------------

    Attachment(s)

    docx
    UserCommand.docx   509 KB 1 version


  • 6.  RE: Save commands for latre use

    Broadcom Employee
    Posted Feb 05, 2020 03:34 PM
    Fernando,
    You defined a user command named TOP10CPU.  To execute that user command enter TOP10CPU.

    You entered ACTIVITY command, and passed it a parameter of TOP10CPU which was taken as a jobname.

    ------------------------------
    Regards,
    Doug Miller
    Software Engineer
    Broadcom
    ------------------------------



  • 7.  RE: Save commands for latre use

    Posted Feb 05, 2020 03:49 PM
    Hello Doug,

    I tried entered just the command TOP10CPU then I got the following output:


    Regards,
    Fernando



    ------------------------------
    IT Mainframe Specialist
    IBM de Chile
    ------------------------------



  • 8.  RE: Save commands for latre use

    Broadcom Employee
    Posted Feb 05, 2020 04:06 PM
    Enter USERCMD TOP10CPU

    Apparently your profile contains setting IMPLICITUCMD NO, which means you must prefix your user commands with the USERCMD command.  If you do SET IMPLICITUCMD YES then you would probably be able to just enter TOP10CPU.  You can find doc on this profile option in HELP SET.

    ------------------------------
    Regards,
    Doug Miller
    Software Engineer
    Broadcom
    ------------------------------



  • 9.  RE: Save commands for latre use

    Posted Feb 05, 2020 04:21 PM
    Doug,
     Yes , I have read this information also for my profile these parameters indicated on this Doc are setted in YES.




    Regards
    Fernando

    ------------------------------
    IT Mainframe Specialist
    IBM de Chile
    ------------------------------



  • 10.  RE: Save commands for latre use

    Broadcom Employee
    Posted Feb 05, 2020 04:26 PM
    Then it must not be finding your newly defined USERCMD - that parmlib member may be in cache.
    Enter LIBCACHE;F USERCMDS then use RELoad line command to refresh it.  Then logoff/on and try it again.

    If additional assistance is needed it may be best to open a support case.

    ------------------------------
    Regards,
    Doug Miller
    Software Engineer
    Broadcom
    ------------------------------



  • 11.  RE: Save commands for latre use

    Posted Feb 06, 2020 01:14 PM
    Hello Doug. Great!!
    Your recommendation worked for me, now I can see the right output when I issued my user command.
    Many thanks for all colleagues for your valuable support.
    Best regards
    Fernando

    ------------------------------
    IT Mainframe Specialist
    IBM de Chile
    ------------------------------