warnings when changing the data type

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
thumati.praveen
Participant
Posts: 106
Joined: Wed Oct 04, 2006 5:21 am

warnings when changing the data type

Post by thumati.praveen »

hi all,


i am changing the datatype of my input column timestamp to string,it is generated error like;

xfmLoadData,0: Conversion error calling conversion routine timestamp_from_string data may have been lost

can u provide the solution...

thanks inadvance
praveen
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

What is the length of the destination string?
thumati.praveen
Participant
Posts: 106
Joined: Wed Oct 04, 2006 5:21 am

Post by thumati.praveen »

balajisr wrote:What is the length of the destination string?

i dont specify the length.
Nageshsunkoji
Participant
Posts: 222
Joined: Tue Aug 30, 2005 2:07 am
Location: pune
Contact:

Post by Nageshsunkoji »

Hi Praveen,

In which stage you are performing this converison either Transformer or Modify stage. Use the Proper syntax for that in the above stages. If you are perfoming this in any satge without any conversion, then it will throw error to you.

In Tarnsformer :
TimestampToString Return the string representation
of the given timestamp
timestamp[format (string)] result (string)

In Modify Stage :

stringField = string_from_timestamp
[timestamp_format | uformat](tsField)

Hope It will Help.
NageshSunkoji

If you know anything SHARE it.............
If you Don't know anything LEARN it...............
thumati.praveen
Participant
Posts: 106
Joined: Wed Oct 04, 2006 5:21 am

Post by thumati.praveen »

Nageshsunkoji wrote:Hi Praveen,

In which stage you are performing this converison either Transformer or Modify stage. Use the Proper syntax for that in the above stages. If you are perfoming this in any satge without any conversion, then it will throw error to you.

In Tarnsformer :
TimestampToString Return the string representation
of the given timestamp
timestamp[format (string)] result (string)

In Modify Stage :

stringField = string_from_timestamp
[timestamp_format | uformat](tsField)

Hope It will Help.
hi nagesh,

i am using at transformer stage ,conversion function is timestampTostring function i am using,i got warnings like

1)xfmLoadData,3: Conversion error calling conversion routine timestamp_from_string data may have been lost

2)xfmLoadData,2: Conversion error calling conversion routine timestamp_from_string data may have been lost

3)xfmLoadData,1: Conversion error calling conversion routine timestamp_from_string data may have been lost

these three warnings only and i am getting the output data perfect.

what is the problem in this...can u find.

thanks inadvance
praveen
thebird
Participant
Posts: 254
Joined: Thu Jan 06, 2005 12:11 am
Location: India
Contact:

Post by thebird »

Can you try doing a trim of your string before giving it to the conversion function - and let us know if the warning still persisits?
thumati.praveen
Participant
Posts: 106
Joined: Wed Oct 04, 2006 5:21 am

Post by thumati.praveen »

thebird wrote:Can you try doing a trim of your string before giving it to the conversion function - and let us know if the warning still persisits?
thanks for ur input
the problem is solved by me,in transformer stage at source field i specified the length.


thanks
praveen
Post Reply