I am trying to find the @ in a string field. The follow data item in a Congos 8 returns
0
for every call.
instr
(
test@email.com, '@', 1
)
Any ideas? New to Cognos and Oracle in general but I feel like I have to be missing something obvious.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Does Cognos even have an
InStr? I’ve always usedPositionfor this.A little more digging reveals
InStras an Oracle function but I’m not sure on the interplay between the database and Cognos since we just use the database for getting data, all user manipulations of the data are handled purely on the Cognos side for us.But, even if that worked properly, it seems to me that your first argument should be quoted as well, yes? It is supposed to be a string after all.