timestamp_format -> not a valid format

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
ivannavi
Premium Member
Premium Member
Posts: 120
Joined: Mon Mar 07, 2005 9:49 am
Location: Croatia

timestamp_format -> not a valid format

Post by ivannavi »

Sequential_File_7: Error when checking operator: At field "dat": When validating import/export function: "timestamp_format" property value (%dd%mm%yyyy) is not a valid format.
The column that this date comes from is timestamp SQL type.
If I leave the default format (%yyyy-%mm-%dd %hh:%nn:%ss) it writes to file without problems. But if I specify something else, it's a fatal error.
Is there a list of valid formats. What am I doing wrong?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A timestamp format string must have both a date portion and a time portion. Yours just has a date portion.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

You can use TimestamptoDate() function if you want only date part from your input timestamp and you can specify your default date format in your target stage.
hi sam here
ivannavi
Premium Member
Premium Member
Posts: 120
Joined: Mon Mar 07, 2005 9:49 am
Location: Croatia

Post by ivannavi »

A timestamp format string must have both a date portion and a time portion. Yours just has a date portion. [/quote]

Didn't know that. Resolved.
ivannavi
Premium Member
Premium Member
Posts: 120
Joined: Mon Mar 07, 2005 9:49 am
Location: Croatia

Post by ivannavi »

A timestamp format string must have both a date portion and a time portion. Yours just has a date portion. [/quote]

Didn't know that. Resolved.
Post Reply