Search found 1 match
- Tue Mar 12, 2013 2:37 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: replace function
- Replies: 6
- Views: 26675
Replace a pattern in string
Below is the code of Datastage routine to Replace a pattern in string Input_String = Arg1 From_String = Arg2 To_String = Arg3 Len_From_String = Len(From_String) Diff_Len = Len(To_String) - Len(From_String) Loop_String = Input_String For i = 1 To Count(Loop_String, From_String) Loc_old = Index(Loop_S...