8.2: Export all report XMLs to file system

One of my clients decided they want to maintain a local copy of the folder structure and report XMLs. So if they had report “Sales” under “Public Folders\Sales\Western Europe\” they would want a copy at “c:\Cognos\Sales\Western Europe\Sales.xml”. They don’t have any of the third party tools like Meta Manager or Motio, so they need to do everything manually.

While I’m not a scripting expert, I have done some very minor work with vbscript. With vbscript I could open a spreadsheet, copy cell values, and create the file in the appropriate place.

The first thing to do is to create the report that will be used as the base for the script.

The report should be a simple list that contains the report path, report name and the XML. In order to do this we to create a datasource connection to the Cognos content store. Once that’s done a small change needs to be made to the database. Cognos stores report details with the folder ID it’s in. The folder ID contains a reference to the parent folder, but without creating a loop it will be impossible (not really, but I’m lazy) to get the full folder path.

Instead we can create a User Defined Function in the content store. The UDF is database dependent, so it will need to be modified when working with another database (like SQL Server or DB2) or when working against a different version (8.4, 10).

I found this UDF at Mogawad Blog:

CREATE OR REPLACE FUNCTION C8.getpath (p_pcmid IN NUMBER)
RETURN NVARCHAR2
IS
l_parentname   NVARCHAR2 (100);
l_pcmid        Number;
BEGIN
IF p_pcmid = 0
THEN
RETURN 'root';
ELSE
SELECT n.NAME object_name, o.PCMID
INTO l_parentname, l_pcmid 
FROM cmobjnames n, cmobjects o
WHERE o.cmid = n.cmid AND o.cmid = p_pcmid and isdefault=1;
END IF;

RETURN getpath (l_pcmid)||'\'||l_parentname;
EXCEPTION
WHEN OTHERS
THEN
RETURN sqlerrm;
END getpath;

With this UDF saved in the content store it is now possible to write the following SQL in RS:

SELECT n.NAME object_name, getpath (o.pcmid) path, c.spec
FROM cmobjnames n, cmobjects o, cmobjprops7 c, cmclasses cls
WHERE o.cmid = n.cmid
AND o.cmid = c.cmid
AND o.classid = cls.classid
AND isdefault = 1
AND UPPER (cls.NAME) = 'REPORT'
and getpath (o.pcmid) like 'root\Public Folders\Sales%'

Before we can run the report, it’s important to mention that some reports XMLs can be very long. The longest report at this client is roughly 650000 characters long. Some of my other clients have significantly larger reports. Because the vbscript uses Excel to access the data, we’d run into a problem. Excel can’t handle large fields – it would simply truncate them. Inside the query, it’s necessary to create seperate data items to split the xml. substring([SQL1].[SPEC],1,30000), substring([SQL1].[SPEC],30001,30000), substring([SQL1].[SPEC],60001,30000) and so on. The report I mentioned before took 22 of these fields.

Finally, inside the list itself, wrap each of the fields with quotes. Cognos delimited the fields with tabs, and considering that the XML might have tabs and newlines embedded inside it, it’s best to put a delimited that Excel can easily recognize.

Report XML below:

<report xmlns="http://developer.cognos.com/schemas/report/3.0/" expressionLocale="en-us"><!--RS:8.2-->
	<modelPath>/content/package[@name='Agg CN ISUP Quality 15 Min']/model[@name='model']</modelPath>
	<layouts>
		<layout>
			<reportPages>
				<page class="pg" name="Page1">
					<pageBody class="pb">
						<contents><list class="ls" refQuery="Query1">
								<style>
									<CSS value="border-collapse:collapse"/>
								</style>
								<listColumns><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="OBJECT_NAME"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="OBJECT_NAME"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="PATH"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="PATH"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="SPEC1"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="SPEC1"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec2"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec2"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec3"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec3"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec4"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec4"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec5"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec5"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec6"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec6"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec7"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec7"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec8"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec8"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec9"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec9"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec10"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec10"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec11"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec11"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec12"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec12"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec13"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec13"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec14"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec14"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec15"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec15"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec16"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec16"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec17"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec17"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec18"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec18"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec19"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec19"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec20"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec20"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec21"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec21"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec22"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec22"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec23"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec23"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec24"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec24"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn><listColumn><listColumnTitle class="lt"><contents><textItem><dataSource><dataItemLabel refDataItem="Spec25"/></dataSource></textItem></contents></listColumnTitle><listColumnBody class="lm"><contents><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem><textItem><dataSource><dataItemValue refDataItem="Spec25"/></dataSource></textItem><textItem><dataSource><staticValue>"</staticValue></dataSource></textItem></contents></listColumnBody></listColumn></listColumns></list>
						</contents>
					</pageBody>
				</page>
			</reportPages>
		</layout>
	</layouts>
<queries><query name="Query1">
			<source>
				<sqlQuery name="SQL1" dataSource="Cognos CS">
					<sqlText>SELECT n.NAME object_name, getpath (o.pcmid) path, c.spec
FROM cmobjnames n, cmobjects o, cmobjprops7 c, cmclasses cls
WHERE o.cmid = n.cmid
AND o.cmid = c.cmid
AND o.classid = cls.classid
AND isdefault = 1
AND UPPER (cls.NAME) = 'REPORT'
and getpath (o.pcmid) like 'root\Public Folders\Sales%'</sqlText>
					<mdProjectedItems><mdProjectedItem name="OBJECT_NAME"/><mdProjectedItem name="PATH"/><mdProjectedItem name="SPEC"/></mdProjectedItems></sqlQuery>
			</source>
			<selection autoSummary="false"><dataItem name="OBJECT_NAME"><expression>[SQL1].[OBJECT_NAME]</expression></dataItem><dataItem name="PATH"><expression>[SQL1].[PATH]</expression></dataItem><dataItem name="SPEC1"><expression>substring([SQL1].[SPEC],1,30000)</expression></dataItem><dataItem name="Spec2"><expression>substring([SQL1].[SPEC],30001,30000)</expression></dataItem><dataItem name="Spec3"><expression>substring([SQL1].[SPEC],60001,30000)</expression></dataItem><dataItem name="Spec4"><expression>substring([SQL1].[SPEC],90001,30000)</expression></dataItem><dataItem name="Spec5"><expression>substring([SQL1].[SPEC],120001,30000)</expression></dataItem><dataItem name="Spec6"><expression>substring([SQL1].[SPEC],150001,30000)</expression></dataItem><dataItem name="Spec7"><expression>substring([SQL1].[SPEC],180001,30000)</expression></dataItem><dataItem name="Spec8"><expression>substring([SQL1].[SPEC],210001,30000)</expression></dataItem><dataItem name="Spec9"><expression>substring([SQL1].[SPEC],240001,30000)</expression></dataItem><dataItem name="Spec10"><expression>substring([SQL1].[SPEC],270001,30000)</expression></dataItem><dataItem name="Spec11"><expression>substring([SQL1].[SPEC],300001,30000)</expression></dataItem><dataItem name="Spec12"><expression>substring([SQL1].[SPEC],330001,30000)</expression></dataItem><dataItem name="Spec13"><expression>substring([SQL1].[SPEC],360001,30000)</expression></dataItem><dataItem name="Spec14"><expression>substring([SQL1].[SPEC],390001,30000)</expression></dataItem><dataItem name="Spec15"><expression>substring([SQL1].[SPEC],420001,30000)</expression></dataItem><dataItem name="Spec16"><expression>substring([SQL1].[SPEC],450001,30000)</expression></dataItem><dataItem name="Spec17"><expression>substring([SQL1].[SPEC],480001,30000)</expression></dataItem><dataItem name="Spec18"><expression>substring([SQL1].[SPEC],510001,30000)</expression></dataItem><dataItem name="Spec19"><expression>substring([SQL1].[SPEC],540001,30000)</expression></dataItem><dataItem name="Spec20"><expression>substring([SQL1].[SPEC],570001,30000)</expression></dataItem><dataItem name="Spec21"><expression>substring([SQL1].[SPEC],600001,30000)</expression></dataItem><dataItem name="Spec22"><expression>substring([SQL1].[SPEC],630001,30000)</expression></dataItem><dataItem name="Spec23"><expression>substring([SQL1].[SPEC],660001,30000)</expression></dataItem><dataItem name="Spec24"><expression>substring([SQL1].[SPEC],690001,30000)</expression></dataItem><dataItem name="Spec25"><expression>substring([SQL1].[SPEC],720001,30000)</expression></dataItem></selection>
		</query>
	</queries></report>

Run it as CSV. Depending on the number of reports you’re retrieving, I recommend stopping here to take a break. Get a coffee or something. Once it finishes running and you save it, check it to make sure it’s worked correctly. The first column should be the Report name, the second the full path. Every field onwards contains the xml.

Now for the script. As I said before, I’m not a scripting expert. Save it as whatever.vbs, and drag the csv export to it. It should loop through, creating directories and report xmls.

vbscript below:

Option Explicit



Dim objExcel, objWorkbook, objWorksheet, row, rows, col, msg, ThisTxt, ThisLen, ctrCells, objFSO, Path
Dim ipFN, objFileName, objTextFile, ipLen, opLen, WshShell, ReportFullPath
Dim i
Const swDebug = false

If Wscript.Arguments.Count = 0 then
  wscript.echo "Please drag a file to the icon!"
  wscript.quit
end if

msg = ""
i = 0

' Start the application
IpFN = trim(wscript.arguments(0)) ' Complete input file name
Set objExcel = CreateObject("Excel.Application")
objExcel.Application.visible = false ' make Excel invisible
Set objWorkbook = objExcel.Workbooks.Open(IPFN)
Set objWorksheet = objWorkbook.Worksheets(1) '<---- Hardcode the worksheet number
rows = objWorksheet.UsedRange.Rows.Count


for Row = 2 to rows
  Set objFSO = CreateObject("Scripting.FileSystemObject")
  Path = strCleanPath( Replace(objWorksheet.Cells(Row,2),"root\Public Folders\",""))
  Path = "c:\" & Path
  CreateFolderTree(Path)
  ReportFullPath = Path & "\" & strClean(objWorksheet.Cells(Row,1).Value) 
  ReportFullPath = left(ReportFullPath,255)  
  objFileName = ReportFullPath & ".xml"
  Set objTextFile = objFSO.CreateTextFile (objFileName, True, True)
  objTextFile.WriteLine(objWorksheet.Cells(Row,3).Value&objWorksheet.Cells(Row,4).Value&objWorksheet.Cells(Row,5).Value&objWorksheet.Cells(Row,6).Value&objWorksheet.Cells(Row,7).Value&objWorksheet.Cells(Row,8).Value&objWorksheet.Cells(Row,9).Value&objWorksheet.Cells(Row,10).Value&objWorksheet.Cells(Row,11).Value&objWorksheet.Cells(Row,12).Value&objWorksheet.Cells(Row,13).Value&objWorksheet.Cells(Row,14).Value&objWorksheet.Cells(Row,15).Value&objWorksheet.Cells(Row,16).Value&objWorksheet.Cells(Row,17).Value&objWorksheet.Cells(Row,18).Value&objWorksheet.Cells(Row,19).Value&objWorksheet.Cells(Row,20).Value&objWorksheet.Cells(Row,21).Value&objWorksheet.Cells(Row,22).Value&objWorksheet.Cells(Row,23).Value&objWorksheet.Cells(Row,24).Value&objWorksheet.Cells(Row,25).Value&objWorksheet.Cells(Row,26).Value)
  objTextFile.close
next

objExcel.Application.quit ' Close the spreadsheet

Set objWorksheet = nothing
Set objWorkbook = nothing
Set objExcel = nothing

  wscript.echo "Done!"


'--------------------
'- Create Folder Path
'--------------------
Sub CreateFolderTree(strTempPath)
   If Not objFSO.FolderExists(objFSO.GetParentFolderName(strTempPath)) Then CreateFolderTree(objFSO.GetParentFolderName(strTempPath))
   If Not objFSO.FolderExists(strTempPath) Then objFSO.CreateFolder(strTempPath)
End Sub   


Function strClean (strtoclean)
  Dim objRegExp, outputStr
  Set objRegExp = New Regexp

  objRegExp.IgnoreCase = True
  objRegExp.Global = True
  objRegExp.Pattern = "[(?*"",\\<>&#~%{}+_.@:\/!;]+"
  outputStr = objRegExp.Replace(strtoclean, "-")

  objRegExp.Pattern = "\-+"
  outputStr = objRegExp.Replace(outputStr, "-")

  strClean = outputStr
End Function

Function strCleanPath (strtoclean)
  Dim objRegExp, outputStr
  Set objRegExp = New Regexp

  objRegExp.IgnoreCase = True
  objRegExp.Global = True
  objRegExp.Pattern = "[(?*"",<>&#~%{}+_.@:\/!;]+"
  outputStr = objRegExp.Replace(strtoclean, "-")

  objRegExp.Pattern = "\-+"
  outputStr = objRegExp.Replace(outputStr, "-")

  strCleanPath = outputStr
End Function

Important to note: if the length of the report name plus path exceeds 255 characters, it will truncate it.

Advertisements

2 Responses to 8.2: Export all report XMLs to file system

  1. CognosPaul says:

    As a side note: In general it would be easier to simply define a direct connection to the CS database through the script itself. This way you would avoid having to deal with Excel’s limitations.

  2. WakkiCognosGirl says:

    Hi Paul, I found this a great way to get all the xml… CONVERT(xml, CMOBJPROPS7.SPEC)SPEC

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: