Error getting value from a routine

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
lakshya
Participant
Posts: 19
Joined: Fri Jan 21, 2005 2:39 pm

Error getting value from a routine

Post by lakshya »

Hi all,

I have a routine that gets a timestamp from a sequential file and this timestamp is used in the next activity where we are comparing it with another field that is a timestamp.The routine is returning a value
MaxTS= 2005-04-29 15:41:46.000000,but i am getting the following error.


AX..JobControl (@Job_Activity_6): Controller problem: Error calling DSSetParam(MaxTS), code=-4
[ParamValue/Limitvalue is not appropriate]

I tried changing the datatype to string as well,but the error is the same.
Anyone has a solution for this?

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

Post by ArndW »

This might be superfluous, but you do need to recompile the job to change the parameter type so that a DSSetParam uses the new type. I think you might not have done this, as a type of string doesn't generate that error message.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Timestamps (as a DataStage data type) don't support milliseconds. And as Arnd noted, if you succeeded in changing the type to a string in all of the appropriate places, it would stopped throwing the error. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply