Text Data

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

Text Data

Post by pavan_test »

I have incoming data as 8772794193.
The expected output is 877-279-4193

can anyone please suggest me how can I accomplish this.

Regards
Mark
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

Substring (string[start,len]) and concatenation ( : ).

Think about how you typed it into the post: 1st three digits, then dash, then 2nd three digits, then dash, then last four digits. Now emulate that using the substring and concatenation functionality.

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
Post Reply