OPS/MVS

 View Only
  • 1.  Job log search using CA OPS/MVS

    Posted Sep 20, 2019 09:46 AM

    Hello,

    I am wandering if it is possible to somehow "scan" job log using OPS. From AOF MSG rule we can catch JOBNAME,JOBID,MESSAGE TEXT, but we need extra info from the job log. Is there any procedure in OPS to do that?

    Thank You!



  • 2.  RE: Job log search using CA OPS/MVS

    Broadcom Employee
    Posted Sep 23, 2019 10:00 AM
    Hello Wladyslaw,

    What extra info specifically you need from the job log? There is an extensive list of variables available for messages rules and you can use the OPSINFO function to extract some more information about the job and the environment.
    Can you tell us what specific information you are looking for?
    Reference for variables available in messages rules:
    http://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-mainframe-software/automation/ca-ops-mvs-event-management-and-automation/13-5/using/using-automated-operations-facility-aof-rules/coding-each-aof-rule-type/message-rules/aof-variables-available-in-msg-rules.html
    OPSINFO function reference:

    http://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-mainframe-software/automation/ca-ops-mvs-event-management-and-automation/13-5/reference-information/command-and-function-reference/ops-rexx-built-in-functions/opsinfo-function.html

    Regards,
    Mario
    Carlos Mario Silveira Filho
    Principal Support Engineer
    CA Technologies A Broadcom Company






  • 3.  RE: Job log search using CA OPS/MVS

    Posted Sep 24, 2019 04:24 AM
    Thank You,
    unfortunately the info we are looking is not in vars.
    Best regards,
    Wladyslaw


  • 4.  RE: Job log search using CA OPS/MVS

    Broadcom Employee
    Posted Sep 23, 2019 10:07 AM
    Hi Wladyslaw,

    About your question on the additional output 'scans' of messages in jobs. This can be done by the use of the CA OPS/MVS Generic Dataset Interface (GDI). Using the interface you can direct output from job sysout or datasets to the OPSLOG..

    Please see this knowledge document:
      https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=41336&_ga=2.249317583.954397192.1569218250-2085140052.1559561213
    and in the manual:
      https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-mainframe-software/automation/ca-ops-mvs-event-management-and-automation/13-5/installing/installing-and-configuring-optional-components/how-you-install-and-configure-optional-base-components/direct-generic-data-set-output.html

    Check if this answers your request..
    Best regards
    Hennie Hermans
    CA Technologies, A Broadcom Company

    ------------------------------
    Principal Support Engineer
    Broadcom
    ------------------------------



  • 5.  RE: Job log search using CA OPS/MVS

    Posted Sep 24, 2019 04:54 AM

    Thank You!

    this function looks very interesting, but it can not be used in our case (we don't know all the jobs and we can't modify their JCL).

    For now we prepared temp solution with AOF rule calling rexx which creates job, which then calls SDSF environment to look for job output.

    Best regards,
    Wladyslaw




  • 6.  RE: Job log search using CA OPS/MVS
    Best Answer

    Posted Sep 25, 2019 02:12 PM
    Keep in mind that you can eliminate the steps/overhead of  needing to 'create and submit' a job that does the SDSF commands within your  triggering REXX from the rule, by just utilizing the Address SDSF REXX host​ environment directly in that called REXX pgm. The key is to make sure that the AOF triggers the pgm to run as a TSO/E REXX and not an OPS/REXX since Address SDSF is not supported in an OPS/REXX pgm. Meaning, most AOF rules trigger OPS/REXX pgms by coding Address OSF "OI pgmname". The 'OI' is what creates the OPS/REXX environment in the TMP. Removing the 'OI' and just doing  Address OSF "pgmname", will allow the pgm to run under TSO/E and thus you can code and use Address SDSF directly in the pgm. As long as any needed TSO data sets (if any)  to make Address SDSF work, are available to the OPSOSF server, then it will work. If you need to perform 'OPS/MVS' work from this TSO/E pgm, (issue cmds, wtos, set variables, update RDF tables, etc) , you would use the OPS/MVS POI TSO command processors (OPSCMD,OPSWTO,OPSQL,OPSSETV,etc) to do this work. Last note is that if you are also a CA Sysview user, you can use the Address Sysviewe "LISTFILE...." command from within an OPS/REXX pgm to also extract data/events from job logs/files. There is a SYSVOUTP sample within opsmvshlq.CCLXSAMP if you are a Sysview customer....


  • 7.  RE: Job log search using CA OPS/MVS

    Posted Sep 26, 2019 03:44 AM
    Hello Dave,

    Thank You for explanation on how to call SDSF from OPS and using SYSVOUTP. That was really helpful.

    Best regards,
    Wladyslaw