Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  List of the Scheduled Report with status SQL

    Posted Thu July 25, 2024 01:38 PM

    Hello Cognos Experts,

    I'm looking SQL query for the Cognos content store database to extract details about scheduled reports. Specifically, I need a query that will provide:

    • Schedule Owner Name
    • Schedule Owner Email
    • Report Name/View Name
    • Report Location
    • Status (filtering for "Failed" reports)
    • Failure Reason

    Your expertise in helping with this query would be greatly appreciated.

    Thank you!



    ------------------------------
    Nabin Poudyal
    ------------------------------


  • 2.  RE: List of the Scheduled Report with status SQL

    Posted Fri July 26, 2024 03:34 AM

    Hi Nabin,
    Take a look at this discussion. I think this query has everything you will need.

    https://community.ibm.com/community/user/businessanalytics/discussion/create-a-report-from-the-content-store-db-providing-details-of-schedules#bm36d34b4a-1746-4fa1-961d-c47c56be2023



    ------------------------------
    Thomas van der Meer
    ------------------------------



  • 3.  RE: List of the Scheduled Report with status SQL

    Posted Thu August 08, 2024 03:01 PM

    Thank you for the information, Thomas. It seems we need to input the XML values to retrieve the data. Could you please provide further details on what needs to be added?

                             FROM CMOBJPROPS26 t
                                  CROSS JOIN
                                  XMLTABLE (
                                      '/SOAP-ENC/value/item[@xsi:type="bus:addressSMTP"]'
                                      PASSING XMLType (
                                                     '<?xml version="1.0" encoding="utf-8"?>
    <SOAP-ENC xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">'
                                                  || t.delivoptions
                                                  || '</SOAP-ENC>')
                                      COLUMNS address    VARCHAR2 (200) PATH 'text()')
                                  x



    ------------------------------
    Nabin Poudyal
    ------------------------------



  • 4.  RE: List of the Scheduled Report with status SQL

    Posted Fri August 09, 2024 03:58 AM
    Hi Nabin,
     
    The query should work standalone with no input required. What error message do you get when running this query?
    It is made for an Oracle content store. Maybe you have a different version of Cognos or Oracle.
    This XMLTABLE statement splits the XML data into rows and project columns on to it. Because some information in the content store is in XML format and this statement is used to retrieve the email addresses.



    ------------------------------
    Thomas van der Meer
    ------------------------------



  • 5.  RE: List of the Scheduled Report with status SQL

    Posted Fri July 26, 2024 04:23 PM

    Post: Find Schedules Associated with Cognos Reports

    MotioPI gives you the ability to search for schedules associated with reports, jobs, report views, and query objects in Cognos.

    Select the "Schedule Tab" from the panel column in MotioPI.

    https://motio.com/find-schedules-associated-with-cognos-reports/



    ------------------------------
    Andrei Istomine
    Open to work - anything Cognos
    https://www.linkedin.com/in/andreii/
    ------------------------------