Hash File and the Timestamp.

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
lax
Participant
Posts: 12
Joined: Fri Oct 29, 2004 2:56 am

Hash File and the Timestamp.

Post by lax »

Hi All,


I have to change the Timestamp of length 23 to 19 in the Hash file for about a set of 500 Jobs. What could be the best practice to do this. Can we write some query to reduce the time spent to do this work .
Please let me know , if anyone can answer this question.

Thanks in Advance,
lax
him121
Premium Member
Premium Member
Posts: 55
Joined: Sat Aug 07, 2004 1:50 am

Post by him121 »

hi..
you can take export of all the 500 jobs..as XML format.
open in to TextPad Editor where u can play with XML.
then use Find/Replace. and change all 23 to 19.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

a) I'd be very careful if you take that route. You wouldn't want to change every occurance of 23 - only the entries associated with your hash file.

b) Out of curiousity, why do you feel you 'need' to do this? What kind of a problem is this causing?

c) Welcome aboard!
-craig

"You can never have too many knives" -- Logan Nine Fingers
lax
Participant
Posts: 12
Joined: Fri Oct 29, 2004 2:56 am

Post by lax »

Hi Chulett

we perform this conversion from 23 to 19(timestamp). This is because we supress the millisec part in the datefield . If not done, the lookup might fail, even though the date and the time of the source is matching with that of the lookup.
Eg: normally we have the datefield as:

2004-11-11- 12:21:32.002. we truncate the last millisec part".002".
Post Reply