on 04-24-2014 10:34 AM
Hi All,
I want to find the value of ' % ASSOC%' in the name and replace it to 'Assoc.' using ifthenelse.
Can any one help me. Is there any similar fuction as LIKE operator. Can we give LIKE in ifthen else condition.
Thanks in advance
Hi,
This is easy in BODS, you can code like this:
ifthenelse
(
Table.field_name like '%ASSOC%',replace_substr( Table.field_name,'ASSOC','Assoc.')
,Table.field_name
)
Regards,
MSA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think we can use Decode statement too
decode(Table.field_name like '%ASSOC%, 'Assoc.' , ,Table.field_name)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try search_replace function It will searches input parameters and replaces by matching criteria and values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
if you have data ASSOC1,ASSOC2
and you want Output like Assoc.1,Assoc.2.
In this condition it is not possible with ifthenelse function
it will return output as Assoc.
Example Source:
If we use if then else condition. Then it will replace all the Data to Assoc.
Or else if you want to replace ASSOC to Assoc. Then you can use Search_Replace also
it will generate a XML script
The expected output as follows in the below screen. As per your requirement you can you any one of this.
Regards,
Akhileshkiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this one
ifthenelse( TGT_ANSWERCODE.OLD_CODE like '@AE','PASS','FAIL')
Regards,
Manoj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.