Extract substring
Moderators: chulett, rschirm, roy
Extract substring
Hi All,
How to extract substring "settle" in the string XXX_Settle" using datastage functions?
How to extract substring "settle" in the string XXX_Settle" using datastage functions?
RD
Search here (Information Server 8.7 Information Center) for "extracting substrings". The functions are largely valid for DS 7x as well. You can also search the DS 7x documentation included with the product.
- james wiles
All generalizations are false, including this one - Mark Twain.
All generalizations are false, including this one - Mark Twain.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Do you want the rightmost six characters every time? Do you want everything after the underscore character irrespective of how long? There are many possibilities. The link James provided will allow you to research them all, but a more specific question would allow us to help more cogently.
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.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
SO, not substrings but "delimited substrings".
An equivalent to the Field() function would be square brackets notation.
An equivalent to the Field() function would be square brackets notation.
Code: Select all
Column_Name["_",1,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.