Hi
I have a MSC text column and i have to to parscing based on following conditions.
1.search for ( ) and then data in ( ) have intch code,PNO,text.if found populate this data in seperate columns .
can you tell how i can do in datastage.
thks
parcing in datastage
Moderators: chulett, rschirm, roy
Sounds like you need to write a DS Function that will do your specific string parsing. Useful DS BASIC string functions are INDEX, FIELD, SUBSTR, LEFT, RIGHT, and COUNT.
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
parcing text
Hi
I dont have any delimitors between each feild in order to use the
DS functions.
can any one please share your idea for problem solving.
thks
sai
I have a MSC text column and i have to to parscing based on following conditions.
1.search for ( ) and then data in ( ) have intch code,PNO,text.if found populate this data in seperate columns .
can you tell how i can do in datastage.
thks
I dont have any delimitors between each feild in order to use the
DS functions.
can any one please share your idea for problem solving.
thks
sai
I have a MSC text column and i have to to parscing based on following conditions.
1.search for ( ) and then data in ( ) have intch code,PNO,text.if found populate this data in seperate columns .
can you tell how i can do in datastage.
thks
kcbland wrote:Sounds like you need to write a DS Function that will do your specific string parsing. Useful DS BASIC string functions are INDEX, FIELD, SUBSTR, LEFT, RIGHT, and COUNT.
parcing text
Hi
I dont have any delimitors between each feild in order to use the
DS functions.
can any one please share your idea for problem solving.
thks
sai
I have a MSC text column and i have to to parscing based on following conditions.
1.search for ( ) and then data in ( ) have intch code,PNO,text.if found populate this data in seperate columns .
can you tell how i can do in datastage.
thks
I dont have any delimitors between each feild in order to use the
DS functions.
can any one please share your idea for problem solving.
thks
sai
I have a MSC text column and i have to to parscing based on following conditions.
1.search for ( ) and then data in ( ) have intch code,PNO,text.if found populate this data in seperate columns .
can you tell how i can do in datastage.
thks
kcbland wrote:Sounds like you need to write a DS Function that will do your specific string parsing. Useful DS BASIC string functions are INDEX, FIELD, SUBSTR, LEFT, RIGHT, and COUNT.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Doesn't matter. You can extract the contents of the parentheses with Field(Field(TheString, "(", 2, 1), ")", 1, 1) - possibly having used the Index() function in an If statement to determine whether there are parentheses.
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.