Hi All,
I have a small requirment in parallel jobs. I want output to be like this.
2010-12-30 05:50:30.000001 - - - - for first record
2010-12-30 05:50:30.000002 - - - - for second record
I have used the following function in transformer stage but didn't work.
CurrentTimestampMS() :"." :Right(Mod(@INROWNUM,1000), "6'0'R")...i am getting the output like this 2010-12-30 05:01:44.
Can any one help me with this.
You help will be much appreciated.
Regards
Pavan
Right function with date
Moderators: chulett, rschirm, roy
Right function with date
pavan
I am using datatype as timestamp(26,6).....but that didn't work...output is coming like this 2010-12-30 05:01:44
But i need the output like this.
2010-12-30 05:50:30.000001 and the last one should be incremented for each new record like below.
2010-12-30 05:50:30.000001
2010-12-30 05:50:30.000002
2010-12-30 05:50:30.000003
2010-12-30 05:50:30.000004
Can any one please help me out
But i need the output like this.
2010-12-30 05:50:30.000001 and the last one should be incremented for each new record like below.
2010-12-30 05:50:30.000001
2010-12-30 05:50:30.000002
2010-12-30 05:50:30.000003
2010-12-30 05:50:30.000004
Can any one please help me out
pavan
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The "6'0'R" formatting construct only works in BASIC expressions - only works in server jobs or BASIC Transformer stage.
In parallel jobs prefer
In parallel jobs prefer
Code: Select all
Right("000000":InLink.TheString, 6)
Last edited by ray.wurlod on Fri Dec 31, 2010 3:29 am, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.