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
eze_ke
Participant
Posts: 38
Joined: Wed Mar 30, 2005 11:42 am

Modify Stage

Post by eze_ke »

Hi

below id the code for one of my coulumn in modify stage
COL:timestamp=TimestampFromSecondsSince(COL)

converting integer to timestamp

is it correct???

as i am getting the following Fatal error

main_program: Error parsing modify adapter: Error in binding: Unknown conversion: TimestampFromSecondsSince
Expected destination field selector, got: ")"; input:
COL:timestamp=TimestampFromSecondsSince(COL)

and Job aborts

Thanks
Thank
eze
singhald
Participant
Posts: 180
Joined: Tue Aug 23, 2005 2:50 am
Location: Bangalore
Contact:

Post by singhald »

Hi

use the current modify function for time stamp;

use the below function , it will solve your problem

COL:timestamp=timestamp_from_seconds_since(dfloat)

Deepak
Regards,
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.
eze_ke
Participant
Posts: 38
Joined: Wed Mar 30, 2005 11:42 am

Post by eze_ke »

Hi deepak,

i used the following derivation
COLumn:timestamp=Timestamp_From_Seconds_Since(COLumn)

but still i am getting the error

main_program: Error parsing modify adapter: Error in binding: Parsing parameters "" for conversion "timestamp=timestamp_from_seconds_since[*******************](dfloat)": APT_Conversion_TimeStamp_SecondsSince: Parameter [] does not parse as a timestamp
Expected destination field selector, got: ")"; input:
Thank
eze
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You don't use dfloat between the parentheses; you use the name of an input column. And it must be of type string (look at the name of the function again).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
eze_ke
Participant
Posts: 38
Joined: Wed Mar 30, 2005 11:42 am

Post by eze_ke »

I am Using the following code in the specification

COLUMN:timestamp=timestamp_from_seconds_since(COLUMN)

Error what i get is:

"""""
main_program: Error parsing modify adapter: Error in binding: Parsing parameters "" for conversion "timestamp=timestamp_from_seconds_since[*******************](dfloat)": APT_Conversion_TimeStamp_SecondsSince: Parameter [] does not parse as a timestamp
Expected destination field selector, got: ")"; input:
TABLE_LOAD_END_DT:timestamp=timestamp_from_seconds_since(TABLE_LOAD_END_DT)
;
"""""
Thank
eze
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:idea: This is going nowhere. Start over. State the problem you are trying to solve. Include an example of your input data and what you think your output needs to be.
-craig

"You can never have too many knives" -- Logan Nine Fingers
eze_ke
Participant
Posts: 38
Joined: Wed Mar 30, 2005 11:42 am

Post by eze_ke »

I have date comming from source, i want to take the min and max for date

i am changing the timestamp to secondssincefromtimestamp in the transformer then taking it into aggregator do min / max then take it to modify stage where iam using the following specification to chane it back to timestamp

COL:timestamp=timestamp_from_seconds_since(COl)


i am getting the following error

main_program: Error parsing modify adapter: Error in binding: Parsing parameters "" for conversion "timestamp=timestamp_from_seconds_since[*******************](dfloat)": APT_Conversion_TimeStamp_SecondsSince: Parameter [] does not parse as a timestamp
Expected destination field selector, got: ")"; input:
TABLE_LOAD_END_DT:timestamp=timestamp_from_seconds_since(TABLE_LOAD_END_DT)
;

please suggest
Thank
eze
Post Reply