how to concatenate a string and make another string

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
vemisr
Participant
Posts: 72
Joined: Thu Sep 11, 2008 1:31 pm

how to concatenate a string and make another string

Post by vemisr »

HI experts.

i have an source values like this:

443022-PHPHOSP-1
41927-PHPHOSP-1
43155-PHPHOSP-1
444300-PHPHOSP-1


then i need to trim the first portion and re arranre the numbers like:

223044
27194
55314
004344


after trimming the first portion. then

this is the format i need:

last 2 numbers - next 2 number - next 2 number


thx
vemisr
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

You can use Field() and then substring function
You are the creator of your destiny - Swami Vivekananda
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

Or you can use Substring alone...
Arun
Post Reply