Regular Transformer Issue with convert function

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
chrisjones
Participant
Posts: 194
Joined: Thu May 11, 2006 9:42 am

Regular Transformer Issue with convert function

Post by chrisjones »

Hi ,
The below function is working fine in Basic Transformer but this job is behaving strange sometimes.

Convert(lkMoveConvertData.LKP_REC,Space(256), lkMoveConvertData.SOURCE_REC)

I tried the same above function in regular transformer but it is not working.Does anyone know the reason why the same convert function is not working in regular transformer.


Thanks,
Chris
Thanks,
Chris Jones
v2kmadhav
Premium Member
Premium Member
Posts: 78
Joined: Fri May 26, 2006 7:31 am
Location: London

Post by v2kmadhav »

could you please paste the exact error that you get when you try that in a regular transformer.

cheers
VM
chrisjones
Participant
Posts: 194
Joined: Thu May 11, 2006 9:42 am

Regular Transformer Issue with convert function

Post by chrisjones »

Hi ...Thanks for ur reply.

I am not getting any error.Job is running fine but convert function is not working due to some reason.

thamks
Chris
v2kmadhav wrote:could you please paste the exact error that you get when you try that in a regular transformer.

cheers
VM
Thanks,
Chris Jones
v2kmadhav
Premium Member
Premium Member
Posts: 78
Joined: Fri May 26, 2006 7:31 am
Location: London

Post by v2kmadhav »

I have just tested that... worked fine for me....
v2kmadhav
Premium Member
Premium Member
Posts: 78
Joined: Fri May 26, 2006 7:31 am
Location: London

Post by v2kmadhav »

are those two fields coming from two different sources?

if you try joining those two sources and look at the data outside datastage....
do you find them to be identical?

what characters are they?
chrisjones
Participant
Posts: 194
Joined: Thu May 11, 2006 9:42 am

Regular Transformer Issue with convert function

Post by chrisjones »

Only ONE Source.See the sample job structure.My aim is to convert all the special or ASCII Characters coming in source to spaces.

LKP_REC(lookup..All special or ASCII Characters are present in this lkp)
|

|
Source(SOURCE_REC)-----> ---->Transformer--->Target

Thx,
Chris

v2kmadhav wrote:are those two fields coming from two different sources?

if you try joining those two sources and look at the data outside datastage....
do you find them to be identical?

what characters are they?
Thanks,
Chris Jones
v2kmadhav
Premium Member
Premium Member
Posts: 78
Joined: Fri May 26, 2006 7:31 am
Location: London

Post by v2kmadhav »

cant you just write something like
if col1=col2 then space(256) else col1
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Perhaps we can approach this from another angle. Rather than saying "convert X to spaces" - what are you expecting the output to be? In other words, what are you expecting to be left after this for your target?
-craig

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