String as delimiter in Field Function

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

String as delimiter in Field Function

Post by srinivas.nettalam »

Hi ,
Can't we pass a string like 'abc' as delimiter for field function in Server job?
I was using the same function in parallel job with a string as delimiter.The result was as expected.I got a situation to change that job to server job to use UserStatus feature.The output is different from the one coming in a parallel job.

Code: Select all

Output from Parallel job : Field(Field('<usr><sTransType>ABCDEFG</sTransType>','<sTransType>',2),'</sTransType>',1)  = ABCDEFG

From Server job :  Field(Field('<usr><sTransType>ABCDEFG</sTransType>','<sTransType>',2),'</sTransType>',1) =  usr>
N.Srinivas
India.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No, not that I recall. And the Server docs mention that the delimiter is the character that delimits the field.
-craig

"You can never have too many knives" -- Logan Nine Fingers
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Post by srinivas.nettalam »

Thanks Craig.I will try with combination of Index and substring or introduce ereplace first and then apply field.
N.Srinivas
India.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Those would be typical approaches in the Server world.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply