Focal Point
[SOLVED]SUBSTR Delimited

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/254109881

July 23, 2009, 03:13 PM
T.Peters
[SOLVED]SUBSTR Delimited
How do I go about substringing a value with a delimiter, a la UNSTRING Fieldname
Delimited by 'x'
End-String
in Datamigrator?

I have tried doing the following in SQL and copying it to my DM Code, but the DM engine tells me that LOCATE is unsupported.

SELECT DISTINCT
TRIM (SUBSTR (T2.MS_NAME,LOCATE (',' , T2.MS_NAME )+1 )) AS SQLDEF01
FROM
(dwdstg_glmoacti T1 INNER JOIN dwdstg_ismmastr T2
ON
T1.TR_EMPLOYEE = T2.MS_CMPY )

This message has been edited. Last edited by: T.Peters,


WebFOCUS: 7702
O/S : Windows
Data Migrator: 7702
July 23, 2009, 11:14 PM
Doug
1) Check the syntax for POSIT, not LOCATE.
2) Do it in WebFPOCUS, not SQL.
July 24, 2009, 12:44 PM
T.Peters
Doug, you are the man, thanks!


WebFOCUS: 7702
O/S : Windows
Data Migrator: 7702
July 24, 2009, 07:14 PM
Doug
You're Welcome...

Shame on me, I typoed WebFOCUS above as "WebFPOCUS"