If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Recent posts

#21
Reporting / Re: Date format in CSV
Last post by Good Friend - 14 Jan 2026 03:18:45 PM
Thanks Johnson for your response. Tried your code and it isnt working as expected. I'm using current_Date as date and backend is SQL server and the result is coming as 2041.
#22
Reporting / Re: Date format in CSV
Last post by sjohnson - 14 Jan 2026 11:26:33 AM
When I had a similar problem, I used something like this to force the date into the correct format

_year(cast([Date], date))
+ '-' +
_month(cast([Date], date))
+ '-' +
_day(cast([Date], date))

Not the most elegant solution, but it worked.
#23
Reporting / Date format in CSV
Last post by Good Friend - 14 Jan 2026 11:04:29 AM
Date format in CSV is coming as MM/DD/YYYY. I'm trying for the format YYYY-MM-DD. Tried different ways and its not working for me. Any inputs or workaround will be appreciated. Thanks.
#24
COGNOS Planning / Re: Contributor - java.lang.ou...
Last post by rakeshjogi - 12 Jan 2026 02:31:34 AM
Usually, OutOfMemoryError occurs because of insufficient Java heap memory allocation, which indicates that your JVM is running out of memory to allocate for objects in the heap.  Even though you've allocated some GB to the container, there could be a possibility that the actual Java heap size being used by the JVM is much lower. This is because, always, JVM by default does not utilize the full container memory unless we instruct to.  In this case, the java.lang.OutOfMemoryError indicates that the application is still running out of Java heap memory despite increasing the size. Since you've already raised the heap from 88 MB to 128 MB and found that 256 MB causes errors, I think it's reasonable to experiment with intermediate values between them.

Heap size does not need to be a multiple of 16 or 64,  you can safely choose any reasonable number such as 160 MB, 192 MB, or 200MB and test the stability and performance. You can slowly increase the heap size and check until the issue no longer occurs. Meanwhile, keep an eye on the application's memory consumption.
Suppose if the  problem reappears, then your application may be experiencing memory leak or there could be inefficient memory usage in the application rather than just insufficient heap size.

Collecting heap dump  and analyzing using the tool HeapHero or EclipseMAT can help identify which objects are consuming the most memory.
#25
Reporting / Tree Prompts 12.1.1 upgrade
Last post by aricm - 07 Jan 2026 01:50:36 PM
Been searching Fix Pack(s) and such for an answer with no luck.  Anyone notice tree prompts with 12.1.1 (DMR source) no longer respect the "order" users select when output is excel/html and instead now sorts based on database sort?  Upgraded from 11.1.7 which outputs followed the sort order when using Ctrl-selections.  We also recently upgraded from Oracle to Sql.  Appreciate any expeirences with this.
#26
Reporting / Re: Need help with a predictab...
Last post by FerdH4 - 05 Jan 2026 03:26:44 PM
Thanks again dougp - I've got it covered now. I'm extrapolating from the XML you've already kindly shared.
#27
Reporting / Re: Need help with a predictab...
Last post by dougp - 02 Jan 2026 06:19:58 PM
sample input and desired output please
#28
Reporting / Re: Need help with a predictab...
Last post by FerdH4 - 02 Jan 2026 11:40:16 AM
The XML worked beautifully right out of the box. 

Unfortunately, while testing with a larger dataset I found that the Rules can rarely be plural - I guess that's why they are "Rules" with an "s" on the end.  Here is the one example I've found so far:

[ Rules Fired : Daily credit @west (match), Daily credit @west (select), Daily redit@clay (match), Daily credit@clay (select), Daily credit@clay (sort) ]

It appears to have two occurrences of "(match)" and still only a single "(sort)".  My preference would be to just not try to parse those specific Rules.

Any idea for how I might easily adjust your five-part expression to just fully exclude like records from being processed through the rest of the expression?  Can you think of an IF condition what would easily identify the occurs of TWO "(match)" statements within a single field?



#29
Reporting / Re: Need help with a predictab...
Last post by FerdH4 - 02 Jan 2026 11:06:06 AM
WHOA!  Actual XML code!  Thanks.

I'll test this very soon.  I'll post another Comment if there are any complications.  So please accept this "Thanks" dougp now in case I don't make it back for awhile.
#30
Reporting / Re: Need help with a predictab...
Last post by dougp - 02 Jan 2026 10:09:02 AM
Here's a report spec that breaks down the pieces.  You'll still need to verify this against your values to be sure the end conditions are correct.  You'll also want to consider what happens if the value doesn't contain '(match)' or '(sort)' or both.

There may also be a slick way to accomplish this using regular expressions, but since support varies across database platforms, I thought it would be best to keep this simple.

This was created using Cognos Analytics 12.0.4FP1, so you will need to change the xmlns value to match what 11.2.3 produces.

<report xmlns="http://developer.cognos.com/schemas/report/17.2/" useStyleVersion="11.6" expressionLocale="en-us">
    <drillBehavior/>
    <layouts>
        <layout>
            <reportPages>
                <page name="Page1">
                    <style>
                        <defaultStyles>
                            <defaultStyle refStyle="pg"/>
                        </defaultStyles>
                    </style>
                    <pageBody>
                        <style>
                            <defaultStyles>
                                <defaultStyle refStyle="pb"/>
                            </defaultStyles>
                        </style>
                        <contents>
                            <list horizontalPagination="true" name="List1" refQuery="Query1">
                                <noDataHandler>
                                    <contents>
                                        <block>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <staticValue>No Data Available</staticValue>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                            <style>
                                                <CSS value="padding:16px;"/>
                                            </style>
                                        </block>
                                    </contents>
                                </noDataHandler>
                                <style>
                                    <CSS value="border-collapse:collapse"/>
                                    <defaultStyles>
                                        <defaultStyle refStyle="ls"/>
                                    </defaultStyles>
                                </style>
                                <listColumns>
                                    <listColumn>
                                        <listColumnTitle>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lt"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemLabel refDataItem="Assigning Rule"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnTitle>
                                        <listColumnBody>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lm"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemValue refDataItem="Assigning Rule"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnBody>
                                    </listColumn>
                                    <listColumn>
                                        <listColumnTitle>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lt"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemLabel refDataItem="loc match"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnTitle>
                                        <listColumnBody>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lm"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemValue refDataItem="loc match"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnBody>
                                    </listColumn>
                                    <listColumn>
                                        <listColumnTitle>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lt"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemLabel refDataItem="loc sort"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnTitle>
                                        <listColumnBody>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lm"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemValue refDataItem="loc sort"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnBody>
                                    </listColumn>
                                    <listColumn>
                                        <listColumnTitle>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lt"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemLabel refDataItem="before"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnTitle>
                                        <listColumnBody>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lm"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemValue refDataItem="before"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnBody>
                                    </listColumn>
                                    <listColumn>
                                        <listColumnTitle>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lt"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemLabel refDataItem="after"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnTitle>
                                        <listColumnBody>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lm"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemValue refDataItem="after"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnBody>
                                    </listColumn>
                                    <listColumn>
                                        <listColumnTitle>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lt"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemLabel refDataItem="output"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnTitle>
                                        <listColumnBody>
                                            <style>
                                                <defaultStyles>
                                                    <defaultStyle refStyle="lm"/>
                                                </defaultStyles>
                                            </style>
                                            <contents>
                                                <textItem>
                                                    <dataSource>
                                                        <dataItemValue refDataItem="output"/>
                                                    </dataSource>
                                                </textItem>
                                            </contents>
                                        </listColumnBody>
                                    </listColumn>
                                </listColumns>
                            </list>
                        </contents>
                    </pageBody>
                    <XMLAttributes>
                        <XMLAttribute output="no" name="RS_legacyDrillDown" value="0"/>
                    </XMLAttributes>
                </page>
            </reportPages>
        </layout>
    </layouts>
    <XMLAttributes>
        <XMLAttribute output="no" name="RS_CreateExtendedDataItems" value="true"/>
        <XMLAttribute output="no" name="listSeparator" value=","/>
        <XMLAttribute output="no" name="decimalSeparator" value="."/>
        <XMLAttribute output="no" name="RS_modelModificationTime" value="2015-11-25T21:38:24.820Z"/>
    </XMLAttributes>
    <queries>
        <query name="Query1">
            <source>
                <model/>
            </source>
            <selection>
                <dataItem name="Assigning Rule">
                    <expression>&apos;[ Rules Fired : General STAT (match), General STAT (select), General STAT (sort) ]&apos;</expression>
                    <XMLAttributes>
                        <XMLAttribute output="no" name="RS_dataType" value="3"/>
                        <XMLAttribute output="no" name="RS_dataUsage" value=""/>
                    </XMLAttributes>
                </dataItem>
                <dataItem name="loc match">
                    <expression>position (&apos;(match)&apos;, [Assigning Rule])</expression>
                    <XMLAttributes>
                        <XMLAttribute output="no" name="RS_dataType" value="1"/>
                        <XMLAttribute output="no" name="RS_dataUsage" value=""/>
                    </XMLAttributes>
                </dataItem>
                <dataItem name="loc sort">
                    <expression>position(&apos;(sort)&apos;, [Assigning Rule])</expression>
                    <XMLAttributes>
                        <XMLAttribute output="no" name="RS_dataType" value="1"/>
                        <XMLAttribute output="no" name="RS_dataUsage" value=""/>
                    </XMLAttributes>
                </dataItem>
                <dataItem name="before">
                    <expression>substring ([Assigning Rule], 1, [loc match] - 1)</expression>
                    <XMLAttributes>
                        <XMLAttribute output="no" name="RS_dataType" value="3"/>
                        <XMLAttribute output="no" name="RS_dataUsage" value="0"/>
                    </XMLAttributes>
                </dataItem>
                <dataItem name="after">
                    <expression>substring ([Assigning Rule], [loc sort] + 6)</expression>
                    <XMLAttributes>
                        <XMLAttribute output="no" name="RS_dataType" value="3"/>
                        <XMLAttribute output="no" name="RS_dataUsage" value="0"/>
                    </XMLAttributes>
                </dataItem>
                <dataItem name="output">
                    <expression>[before] || [after]</expression>
                    <XMLAttributes>
                        <XMLAttribute output="no" name="RS_dataType" value="3"/>
                        <XMLAttribute output="no" name="RS_dataUsage" value="0"/>
                    </XMLAttributes>
                </dataItem>
            </selection>
        </query>
    </queries>
    <modelPath>/content/folder[@name=&apos;Samples&apos;]/folder[@name=&apos;Models&apos;]/package[@name=&apos;GO sales (query)&apos;]/model[@name=&apos;model&apos;]</modelPath>
</report>