Dynamic substring

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
asaf_arbely
Premium Member
Premium Member
Posts: 87
Joined: Sat Jul 14, 2007 2:24 pm

Dynamic substring

Post by asaf_arbely »

I am getting a parameter for my job that includes one or more value for substring the main data. For example the value of the parameter is P_SUB=d[1,5].
On the stage variable in the job I am doing Ereplace(P_SUB,'d',LT_data.data).
So the result of the command in a flat file is 'assdfdd [1,5]' and not 'assdf'.
Any idea?
Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What is the input value (LT_data.data), what is the expected output value, and what is the actual output value? What is the exact function call that you used? And, finally, what do you wish to achieve (in English, not in code)?

Please review, in on-line help or in the DataStage BASIC manual, the order of arguments in the Ereplace() function.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:? Originally posted and responded to here. Not sure why the repost except to (I suppose) perform the forum move.
-craig

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