Hi all,
I have requirement,Please help me how to Achieve these
Input Output
AD-ADE-0000000001 0000000001
AF-ADF-0000000002 0000000002
Thanks for your help in Advance.
Reg:How to use field function
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 92
- Joined: Wed Mar 05, 2008 4:09 am
- Location: chennai
- Contact:
Reg:How to use field function
pradeep.v
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You really should wrap fixed-format text in Code tags.
The delimiter in these delimited strings is "-", and that becomes the second argument to the Field() function. The delimited string that you want to extract is the third, so 3 is the third argument of the Field() function. You only want to extract one substring, so 1 is the fourth argument to the Field() function. From this we get:
Code: Select all
Input Output
AD-ADE-0000000001 0000000001
AF-ADF-0000000002 0000000002
Code: Select all
Field(InLink.Input, "-", 3, 1)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.