timestamp to varchar

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
alisoviejo
Participant
Posts: 49
Joined: Fri Nov 11, 2005 10:19 am

timestamp to varchar

Post by alisoviejo »

Hi
Need to read a value from a timestamp / date column and load the max value to varchar.
Have used modify stage with the following conversion

string_from_timestamp[YYYY-MM-DD HH24:MI:SS](In.DateColumn)

Getting error
main_program: Error parsing modify adapter: Error in binding: Error in destination field selector: Expected integer, got: "YYYY"
Expected destination field selector, got: ")"; input:
string_from_timestamp[YYYY-MM-DD HH24:MI:SS](in.DateColumn)
;
Any one had similar issues?
ALISO
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Hello Aliso,

the format string should be of the form %yyyy-%mm-%dd %hh:%nn:%ss; I am not using a terminal with the PDF files available, but have used manual formatting without problems (well, no problem once I figured out how to define the attributes) before.
Post Reply