0

I'm getting data like 2022-01-27 15:04:17.457000000, and I want to remove it after .457000000

I want the data like 2022-01-27 15:04:17 with timestamp datatype in DataStage

Data coming from the file

Can anyone help with this issue.

Krishna
  • 25
  • 4

1 Answers1

0

Is the data coming from file? Then read it as varchar and then use substring function. Eg: inpcolumn[1,19]

If data is coming from database then first use 'timestamp to string" function and then use substring function accordingly.

MNC
  • 16