pkatanic
5th October 2015, 17:31
Hello,
I have data like this (04307 1820,07053 10, 3 10, 1 270...etc) in table tfcmg301.orig. What I have to do is to take numbers after whitespace and join. how to detect whitespace position in the string? Maybe to use TRIM function?
And for the end, I should compare result with tdpur401.pono and tdpur 401.orno like in query below, where orig.array should be number without whitespace. But pono and orno are not strings. What to do?
function boolean get.tcibd001() {
Select tcibd001.dsca :item,
tcibd001.citg :citg ,
tdpur401.pono : pono,
tdpur401.orno : orno
from tcibd001 inner join tdpur401 on tcibd001.item=tdpur401.item
|where pono = : orig.array
SELECTDO
ENDSELECT
return (true)
}
I have data like this (04307 1820,07053 10, 3 10, 1 270...etc) in table tfcmg301.orig. What I have to do is to take numbers after whitespace and join. how to detect whitespace position in the string? Maybe to use TRIM function?
And for the end, I should compare result with tdpur401.pono and tdpur 401.orno like in query below, where orig.array should be number without whitespace. But pono and orno are not strings. What to do?
function boolean get.tcibd001() {
Select tcibd001.dsca :item,
tcibd001.citg :citg ,
tdpur401.pono : pono,
tdpur401.orno : orno
from tcibd001 inner join tdpur401 on tcibd001.item=tdpur401.item
|where pono = : orig.array
SELECTDO
ENDSELECT
return (true)
}