This topic has been marked "Resolved."
This topic is not resolved, but there is a WORKAROUND.
Author
Message
arnie_nits
Participant
Joined: 13 Aug 2007
Posts: 96
Points: 748
DataStage® Release: 7x
Job Type: Server
OS: Unix
Hi I have a requirement where
A1 will become A001
A13 will become A013
Please suggest how to get this.
Regards,
anbu
Group memberships: Premium Members
Joined: 18 Feb 2006
Posts: 377
Location: india
Points: 1492
If you always have only one alphabet and followed by any number of digits then try this
Code:
svAlpha=input_field[1,1]
svNum=input_field[2]
target_field=svAlpha : right('000':svNum,3)
_________________ You are the creator of your destiny - Swami Vivekananda
ArndW
Participant
Group memberships: Premium Members, Inner Circle, Australia Usergroup
Joined: 16 Nov 2004
Posts: 14005
Location: Germany
Points: 79124
NewColumn = in.Field[1,1]:FMT(In.Field[2,99],"3'0'R")
_________________
arnie_nits
Participant
Joined: 13 Aug 2007
Posts: 96
Points: 748
Thanks...it works....
Regards,
Arnie.
Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Powered by
phpBB
© 2001, 2002 phpBB Group
Theme & Graphics by
Daz :: Portal by
Smartor
All times are GMT - 6 Hours