COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: srinu_anu2007 on 16 Aug 2012 06:32:43 AM

Title: case satement
Post by: srinu_anu2007 on 16 Aug 2012 06:32:43 AM
Hi,

pls take a look into the below example and help me

i have case statement like:

case when

?param1? is between ([modelname]. [a] . where [modelname]. [a].[c] ='d' )

and

([modelname]. [a] . where [modelname]. [a].[c] ='e' )

then ('Y')
else ('N')
end

when i add and validate this condition iam getting an error. any one can suggest on the same please

Thanks In Advance,
Anu
Title: Re: case satement
Post by: HalfBloodPrince on 16 Aug 2012 06:43:07 AM
I think Error is because of the where statement u included. Its not Cognos syntax.
Title: Re: case satement
Post by: srinu_anu2007 on 16 Aug 2012 07:28:04 AM
Thank You!
Title: Re: case satement
Post by: barrysaab on 19 Aug 2012 10:00:30 PM
cOULD YOU PLEASE POST YOUR FINAL CASE STATEMENT.THANKS
Title: Re: case satement
Post by: srinu_anu2007 on 21 Aug 2012 05:46:47 AM
i couldn't complete the statement. can any one suggest on the same requirement with out using where clause in cognos.
Title: Re: case satement
Post by: blom0344 on 21 Aug 2012 07:36:57 AM
Quote from: srinu_anu2007 on 21 Aug 2012 05:46:47 AM
i couldn't complete the statement. can any one suggest on the same requirement with out using where clause in cognos.

What on earth are you trying to code?  The when part should contain a boolean expression.

([modelname]. [a] . where [modelname]. [a].[c] ='d' )

is bullocks..