DTL Function Help

10 views
Skip to first unread message

JamesG

unread,
May 21, 2012, 6:07:02 PM5/21/12
to Ensemble-in...@googlegroups.com

Hi

I have been trying to work through DTL to split source field (a)  with value “AB12345” into “AB” and 12345 and insert source field (b) value of  “XYZ” to make it “ABXYZ12345” and assign the new value to target field, knowing that neither (a) nor (b) is fixed value. Is there DTL function that can do that? Using, SubString, I can extract the values but can't see a function available to insert "XYZ" 

Thanks,

James

Steve Roselius

unread,
May 21, 2012, 7:03:21 PM5/21/12
to InterSystems: Ensemble in Healthcare
James, just use the concatenate operator "_" (the underscore)

set output=SubString(S1)_"XYZ"_SubString(S2)

Cheers, Steve

On May 21, 3:07 pm, JamesG <berean...@googlemail.com> wrote:
> Hi
>
> I have been trying to work through DTL to split source field (a)  with
> value “*AB12345*” into “AB” and 12345 and insert source field (b) value of
Reply all
Reply to author
Forward
0 new messages