<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Planit CPM BI Blog</title>
	<atom:link href="http://www.planitcpm.com/bi-blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.planitcpm.com/bi-blog</link>
	<description>Business Intelligence blog for IBM Cognos users</description>
	<lastBuildDate>Mon, 24 Oct 2011 14:40:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Saving report outputs to file system</title>
		<link>http://www.planitcpm.com/bi-blog/2011/10/saving-report-outputs-to-file-system/</link>
		<comments>http://www.planitcpm.com/bi-blog/2011/10/saving-report-outputs-to-file-system/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 14:40:54 +0000</pubDate>
		<dc:creator>DBarrett</dc:creator>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[CM.OUTPUTLOCATION]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[report outputs]]></category>
		<category><![CDATA[Sub-directories]]></category>

		<guid isPermaLink="false">http://www.planitcpm.com/bi-blog/?p=39</guid>
		<description><![CDATA[There are quite a few articles out there detailing how to use the CM.OUTPUTLOCATION parameter to save report outputs to the file system. However, this saves all reports to the location specified in the parameter. What happens if you want to save reports to different locations on a report by report basis? I recently had [...]]]></description>
			<content:encoded><![CDATA[<p>There are quite a few articles out there detailing how to use the <a href="https://www-304.ibm.com/support/docview.wss?uid=swg21344147" target="_blank">CM.OUTPUTLOCATION parameter</a> to save report outputs to the file system. However, this saves all reports to the location specified in the parameter. What happens if you want to save reports to different locations on a report by report basis?</p>
<p>I recently had to save reports to separate sub-directories based on the report output type e.g. PDF, CSV etc. The instructions below show how this can be achieved.</p>
<h3><strong>1. Modify IBM Cognos Configuration</strong></h3>
<p><strong></strong>Open Cognos Configuration on the Content Manager Server and expand <strong>Data Access&gt;Content Manager</strong>. Click <strong>Content Manager</strong> and then ensure that <strong>Save report outputs to a file system?</strong> is set to <strong>True</strong></p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/save-report-outputs-to-file-system.jpg"><img class="alignnone size-full wp-image-42" title="save report outputs to file system" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/save-report-outputs-to-file-system.jpg" alt="" width="358" height="193" /></a></p>
<p>From the <strong>Actions </strong>menu, click <strong>Edit Global Configuration</strong>, and then click the <strong>General </strong>tab. Set <strong>Archive Location File System Root </strong>to the required location. This must be set to either a local path on the server (e.g. file://d:/archive) or a UNC path (e.g. file://\\share\folder) and the location must already exist.</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/Global-Configuration1.jpg"><img class="alignnone size-full wp-image-44" title="Global Configuration" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/Global-Configuration1.jpg" alt="" width="304" height="159" /></a></p>
<p><strong>Save</strong> the configuration and then restart the Cognos services</p>
<h3><strong>2. Modify Cognos Connection</strong></h3>
<p>These steps must be performed by an Administrator.</p>
<ol>
<li>From IBM Cognos Connection, click on Launch (top right)</li>
<li>Click IBM Cognos Administration</li>
<li>Click on Configuration tab</li>
<li>Click Dispatchers and Services (left side)</li>
<li>Click the Define File System Locations button ( top right)</li>
</ol>
<div><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/Define-file-system-locations.jpg"><img class="alignnone size-full wp-image-46" title="Define file system locations" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/Define-file-system-locations.jpg" alt="" width="425" height="172" /></a></div>
<p>When the <strong>Define File System Locations</strong> window appears click <strong>New</strong></p>
<div><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/New-file-system-location.jpg"><img class="alignnone size-full wp-image-48" title="New file system location" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/New-file-system-location.jpg" alt="" width="302" height="187" /></a></div>
<p>Enter a <strong>Name, Description</strong> and <strong>File System Location</strong>. The <strong>File System Location</strong> specified will be the name of the sub directory created the first time that you select RunWithOptions and save report to new Location.</p>
<div><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/Specify-a-name-and-description.jpg"><img class="alignnone size-full wp-image-49" title="Specify a name and description" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/Specify-a-name-and-description.jpg" alt="" width="301" height="296" /></a></div>
<p>Although we only added one file system location in this demo, it&#8217;s possible to create any number of file system locations. Each new location will relate to a sub directory in the archive location specified in Cognos Configuration</p>
<h3><strong>3. Save report to the file system</strong></h3>
<p>All of the configuration changes have now been made. Now we can run a report and specify that it is output to the above file system location using the advanced run options:</p>
<div>
<ol>
<li>From Cognos Connection, go into the Run with options of a report</li>
<li>Click <strong>Advanced options</strong>. Under <strong>Delivery</strong> check <strong>Save to the file System</strong> and click on <strong>Edit the options&#8230;</strong><br />
<a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/Delivery-Options.jpg"><img class="alignnone size-full wp-image-51" title="Delivery Options" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/Delivery-Options.jpg" alt="" width="227" height="211" /></a></li>
<li>Select the output location from the drop down menu<br />
<a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/Select-Location.jpg"><img class="alignnone size-full wp-image-52" title="Select Location" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/Select-Location.jpg" alt="" width="197" height="178" /></a></li>
</ol>
<p>Run the report. When this has successfully completed you will notice that the report has been saved to a new sub directory called CSV Files.</p>
</div>
<div><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/New-sub-directory.jpg"><img class="alignnone size-full wp-image-53" title="New sub directory" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/10/New-sub-directory.jpg" alt="" width="478" height="161" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.planitcpm.com/bi-blog/2011/10/saving-report-outputs-to-file-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conditional drill through</title>
		<link>http://www.planitcpm.com/bi-blog/2011/09/conditional-drill-through/</link>
		<comments>http://www.planitcpm.com/bi-blog/2011/09/conditional-drill-through/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 12:43:03 +0000</pubDate>
		<dc:creator>DBarrett</dc:creator>
				<category><![CDATA[Report Studio]]></category>
		<category><![CDATA[Cognos]]></category>
		<category><![CDATA[conditional]]></category>
		<category><![CDATA[conditional drill-through]]></category>
		<category><![CDATA[drill]]></category>
		<category><![CDATA[drill through]]></category>
		<category><![CDATA[multi-target]]></category>
		<category><![CDATA[report studio]]></category>

		<guid isPermaLink="false">http://www.planitcpm.com/bi-blog/?p=7</guid>
		<description><![CDATA[Drill through for individual data items in a crosstab is a really useful feature. However, it’s not always convenient to drill through to the same target report. Although it’s hidden away, it is possible to drill through to a different target report depending on the data item. The example below shows a scenario where we [...]]]></description>
			<content:encoded><![CDATA[<p>Drill through for individual data items in a crosstab is a really useful feature. However, it’s not always convenient to drill through to the same target report. Although it’s hidden away, it is possible to drill through to a different target report depending on the data item.</p>
<p>The example below shows a scenario where we want to drill through to two different reports based on the year. For the purposes of demonstration, let’s say that all sales in 2004 were postal orders but in subsequent years there are a variety of order methods. To keep things tidy we will drill through to a report that excludes the order method for 2004 and a different report that gives a breakdown of order method in all other years.</p>
<p>I’ve already created two simple list reports for the above scenarios and called them ‘Drill A’ and ‘Drill B’. The latter report includes order method information but the former doesn’t.</p>
<p>Now I want to setup a crosstab that drills through to these reports. In the example below I’ve created a high level summary report showing the revenue by year split out by product line:</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/1.jpg"><img class="alignnone size-full wp-image-8" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/1.jpg" alt="" width="253" height="80" /></a></p>
<p>&nbsp;</p>
<p>I want to drill through from the crosstab intersection. Therefore I’m going to click on the unlock button in the toolbar:</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/2.jpg"><img class="alignnone size-full wp-image-9" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/2.jpg" alt="" width="105" height="31" /></a></p>
<p>&nbsp;</p>
<p>Next I’ll select the text item in the crosstab intersection:</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/3.jpg"><img class="alignnone size-full wp-image-10" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/3.jpg" alt="" width="245" height="70" /></a></p>
<p>&nbsp;</p>
<p>Then click on the drill –through icon in the toolbar:</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/4.jpg"><img class="alignnone size-full wp-image-11" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/4.jpg" alt="" width="94" height="27" /></a></p>
<p>&nbsp;</p>
<p>When the drill – through definition window opens we just need to setup the drill through definition to point at one of the target drill reports (in this case ‘Drill A’):</p>
<p><img class="alignnone size-medium wp-image-12" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/5-300x286.jpg" alt="" width="300" height="286" /></p>
<p>&nbsp;</p>
<p>Next hold ctrl and drag the text item to the left of itself. This makes an exact copy of the existing text item including the drill through:</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/6.jpg"><img class="alignnone size-medium wp-image-13" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/6-300x55.jpg" alt="" width="300" height="55" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Select the newly created text item and edit the drill definition to point at ‘Drill B’ instead of ‘Drill A’:</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/7.jpg"><img class="alignnone size-medium wp-image-14" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/7-300x286.jpg" alt="" width="300" height="286" /></a></p>
<p>&nbsp;</p>
<p>Now we have two text items that drill through to two different target reports. We need to somehow hide the ‘Drill B’ text item for 2004 and hide the ‘Drill A’ text item for all other years. This is achieved using a Boolean variable (it is also possible to use a string variable).</p>
<p>I’ll create a new Boolean variable where the year is equal to 2004. Being a Boolean variable this gives two possible outcomes. Either ‘Yes’ the year is 2004 or ‘No’ the year is not 2004:</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/9.jpg"><img class="alignnone size-medium wp-image-15" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/9-300x206.jpg" alt="" width="300" height="206" /></a></p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/10.jpg"><img class="alignnone size-medium wp-image-16" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/10-300x125.jpg" alt="" width="300" height="125" /></a></p>
<p>&nbsp;</p>
<p>By associating both text items with the new variable we can chose to show or hide each text item based on the value of this variable.</p>
<p>Add the Boolean variable as a style variable in the properties of each text item (a render variable would be used for a string variable):</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/11.jpg"><img class="alignnone size-medium wp-image-17" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/11-300x127.jpg" alt="" width="300" height="127" /></a></p>
<p>&nbsp;</p>
<p>Now use the conditional explorer to tell report studio the desired behaviour for each of the results. First select ‘Yes’ (i.e. the year is 2004) and then select the text item associated with ‘Drill B’:</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/13.jpg"><img class="alignnone size-medium wp-image-18" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/13-300x206.jpg" alt="" width="300" height="206" /></a></p>
<p>&nbsp;</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/14.jpg"><img class="alignnone size-full wp-image-19" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/14.jpg" alt="" width="284" height="217" /></a></p>
<p>Select the text item and then in the properties pane change the box type to ‘none’. This means that when the year is 2004 this text item will not display.</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/15.jpg"><img class="alignnone size-medium wp-image-20" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/15-300x123.jpg" alt="" width="300" height="123" /></a></p>
<p>&nbsp;</p>
<p>Change the conditional explorer to reference ‘No’ (i.e. the year is not 2004). Select the other text item and change the Box Type properties to ‘None’.</p>
<p>&nbsp;</p>
<p>Now when we run the report only one text item is shown at each intersection. What isn’t entirely obvious is that the text items for 2004 are different to all others:</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/16.jpg"><img class="alignnone size-medium wp-image-21" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/16-300x274.jpg" alt="" width="300" height="274" /></a></p>
<p>&nbsp;</p>
<p>If we click on any of the 2004 items we drill through to ‘Drill A’ which doesn’t include order method information:</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/17.jpg"><img class="alignnone size-medium wp-image-22" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/17-300x275.jpg" alt="" width="300" height="275" /></a></p>
<p>If we click on any other cross tab intersection then we drill through to ‘Drill B’ which does include order method information:</p>
<p><a href="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/18.jpg"><img class="alignnone size-medium wp-image-23" src="http://www.planitcpm.com/bi-blog/wp-content/uploads/2011/09/18-300x277.jpg" alt="" width="300" height="277" /></a></p>
<p>&nbsp;</p>
<p>There you go. Maybe not as straightforward as it ought to be, but definitely a workable solution</p>
]]></content:encoded>
			<wfw:commentRss>http://www.planitcpm.com/bi-blog/2011/09/conditional-drill-through/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

