on 11-30-2015 1:31 PM
Hi Experts ,
Am facing with an issue
for an logic
if RED_CIR_CAR_ENDAT (RED_CIR_CAR_ENDAT ) = DECODE(TRUE, NOT ISNULL(v_RED_CIR_CAR_ENDAT) AND SUBSTR(v_RED_CIR_CAR_ENDAT,1,5) != '00000' AND SUBSTR(v_RED_CIR_CAR_ENDAT,1,4) != '9999',
Then it should pass or else it should be empty ..
SUBSTR(v_RED_CIR_CAR_ENDAT,1,4) || '-' || SUBSTR(v_RED_CIR_CAR_ENDAT,5,2) || '-' || SUBSTR(v_RED_CIR_CAR_ENDAT,7,2))
For this i have created like this
Please help me out ...
Best regards,
Sandhya
Hello Sandhya,
Try this :
Execution Type - Single Values
Argument :
Name - datainput
Type - String
if (!(datainput .equals("")) && !(datainput.substring(0,4).equals("9999")) && !(datainput.substring(0,5).equals("00000") ))
{
return datainput.substring(0,4)+"_"+ datainput.substring(4,6)+"_"+ datainput.substring(6,8);
}
else
{
return "";
}
Don't change the context of RED_CIR_CAR_ENDAT from the source. If your requirement is different then let us know!
Thank you,
Justin.
Sorry, I had to change the conditions to match the string values.. Please check now..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sandhya,
Can you give me the sample value of RED_CIR_CAR_ENDAT?
Thank you,
Justin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sandhya,
Your facing any issue with this logic?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.