In our parsing there were some object type that we could not parse out, but these were such a small percentage that we can handle these manaually and get the .xml thru Cognos Connection.
Thanks again for everyone's help on this matter,
Adam.
Original Message:
Sent: Fri May 26, 2023 07:22 AM
From: Thomas van der Meer
Subject: Export all Report XMLs - CA 11.1.7
You could try this in your content store query to split up the command. Maybe you need an extra order by column to ensure the XML result is in the correct order.
REPORT_SPEC as (
select
CMID
,SPEC_VAR
from
(select *
from (
-- split in pieces of 3000
select cmid, dbms_lob.substr(spec,3000,1) as SPEC_VAR from cmobjprops7 where 1=1 and spec is not null union
select cmid, dbms_lob.substr(spec,3000,3001) from cmobjprops7 where 1=1 and spec is not null union
select cmid, dbms_lob.substr(spec,3000,6001) from cmobjprops7 where 1=1 and spec is not null union
...
...
select cmid, dbms_lob.substr(spec,3000,497001) from cmobjprops7 where 1=1 and spec is not null union
select cmid, dbms_lob.substr(spec,3000,500001) from cmobjprops7 where 1=1 and spec is not null
)
where 1 = 1
and SPEC_VAR is not null
)
)
You could also create a export deployment with the reports. Open the zip file and you will find the report specifications in the file 'package1,2,3.xml' files.
Then you still have to create script to split this xml files into separate files.
------------------------------
Thomas van der Meer
Original Message:
Sent: Thu May 18, 2023 02:39 PM
From: Adam McIlravey
Subject: Export all Report XMLs - CA 11.1.7
I am looking to export all our report XML's from the Content Store and store in BitBucket so we can create a new repository of all our reports.
This should enable us to have version control and a standard location for all our developers to pull the latest version of the report.
We have an Oracle Content Store - I have tried creating a SQL against the Content Store, but I am running into problems parsing the CLOB column that the specification is defined. The maximum characters to convert from CLOB to Varchar seems to be around 4000, but the maximum report is 1+ million characters. I could manually create 500+ columns using substring, but then need a way to concatenate those columns together without losing any characters.
If anyone has any better thoughts on how to accomplish this, I would greatly appreciate it.
Thanks in advance,
Adam.
------------------------------
Adam McIlravey
------------------------------