Hi,
I am facing difficulties in extract the last portion from the URL string
for e.g.
Source sends "root^xhtmlmp^samsung(xhtml)^samsungsgh-a701" and we need "samsungsgh-a701" from it.
Does Datastage provides any Function to do the above job?
Saur
String Handling
Moderators: chulett, rschirm, roy
Use Dcount and Field. Something like
Code: Select all
Field(InLink.RecIn, "^", DCOUNT(In.Col,"^"))
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If DCount() does not work in the expression, use Count().
Code: Select all
Field(InLink.RecIn, "^", Count(In.Col,"^")+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.