Modify Stage

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
sekaran12
Participant
Posts: 20
Joined: Tue Sep 26, 2006 7:08 am
Location: Chennai

Modify Stage

Post by sekaran12 »

Hi,

I am using modify stage for type conversion.My requirement is to convert string to timestamp.

Modify Stage:

MBROPRT_STS_DTS:timestamp[microseconds]=timestamp_from_string[%yyyy-%mm-%dd %hh:%nn:%ss.6](MBROPRT_STS_DTS)

Input is 2009-08-25 08:18:59.765482 , after conversion the output is 2009-08-25 08:18:59.0. the microsec is skipping.

Pls help me how to get all values in output.

Thanks,
Raj
Raj
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Do you have the microseconds enabled in your output column under the "extended" tag?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Even with RCP enabled, you need to explicitly declare your modify stage modified output column and need to enable the "microseconds" in the extended attribute.
Post Reply