MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now Learn More
Quote from: actcognosuser on Yesterday at 11:50:49 AMHi All,
Date prompts in a pas through SQL is not working.
Cognos version is 10.2 and database is Db2.
FIlter in the pass through SQL
date(OrderDate ) between date(TIMESTAMPFORMAT (?Start_Date? ,'Mon DD, YYYY')) and date(TIMESTAMPFORMAT(?End_Date?,'Mon DD, YYYY'))
When hardcoded values of Oct 20, 2024 is substituted in this filter it works.
Throwing a datasource adaptor error when prompts are used
XQE-DAT-0001 Data source adapter error: com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601
Also tried using these formats, nothing works.
AND date(OrderDate )=date(TO_DATE(?P_StartDate? ,'YYYY-MM-DD'))
Using order date between ?P_StartDate? and ?P_EndDate? as detail filter in the query is working. But this is not an option Since it is a union query and results of first part filtered by date needs to be applied to second query.
# PowerShell
## Stop service
$servername = "supersecretcomputername"
$servicename = "IBM Cognos"
$coglog = "\\$servername\c`$\Program Files\ibm\cognos\analytics\logs\cognosserver.log"
$linesbefore = (Get-Content $coglog | Measure-Object –Line).Lines
$cogsvc = Get-Service -ComputerName $servername -Name $servicename
$cogsvc.Stop()
"Waiting for the $servicename service on $servername to stop."
$cogsvc.WaitForStatus("Stopped")
"The $servicename service on $servername is stopped."
$linesafter = (Get-Content $coglog | Measure-Object –Line).Lines
$len = $linesafter - $linesbefore
Get-Content -Path $coglog -Tail $len
## Do something here
## Start service
# $servername = "supersecretcomputername"
# $servicename = "IBM Cognos"
# $coglog = "\\$servername\c`$\Program Files\ibm\cognos\analytics\logs\cognosserver.log"
$linesbefore = (Get-Content $coglog | Measure-Object –Line).Lines
# $cogsvc = Get-Service -ComputerName $servername -Name $servicename
$cogsvc.Start()
"Waiting for the $servicename service on $servername to start."
$cogsvc.WaitForStatus("Running")
"The $servicename service on $servername is running."
$linesafter = (Get-Content $coglog | Measure-Object –Line).Lines
$len = $linesafter - $linesbefore
Get-Content -Path $coglog -Tail $len
Quoteboth the Dispatcher URI for gateway (p2pd/servlet/dispatch/ext) and controller URI for gateway (ibmcognos/controllerServer) are using HTTP.
BSP Software Documentation |
MetaManager Documentation and Knowledgebase |
Version Control Documentation and Knowledgebase |
BSP Software | Resources | About Us | ||
MetaManager | BSP Software Training | BSP Software | ||
Integrated Control Suite | YouTube Channel | Micro Strategies Inc | ||
Security Migration | IBM Cognos | |||
Integrated Management Suite | ||||