Octal compilation error

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
premupdate
Participant
Posts: 47
Joined: Thu Oct 04, 2007 3:37 am
Location: chennai

Octal compilation error

Post by premupdate »

Hi,

Am trying to compile a job with constraint as linkname.columname=039 in transformer.

1) inputcol datatype is smallint
2) checking the constraint alone in tranformer
3) same column goes as output


On compiling i got the following error in transformer stage.

1540-0849 (S) The octal literal "039" contains non-octal digits
I changed the constraint to linkname.columname=39,the job compiles fine and produced the rows with value 39.

May I know what exactly is happening inside the tranformer and why this octal conversion is taking place.
Cheers,
prem
GJ_Stage
Participant
Posts: 131
Joined: Mon Oct 27, 2008 6:59 am

Post by GJ_Stage »

Can you try to change the input datatype as string / char and then try the constraint as linkname.columname="039".
Jothi
GJ_Stage
Participant
Posts: 131
Joined: Mon Oct 27, 2008 6:59 am

Post by GJ_Stage »

Hi,

Please modify inputcol datatype is numeric instead of smallint. Hope it will work.
Jothi
premupdate
Participant
Posts: 47
Joined: Thu Oct 04, 2007 3:37 am
Location: chennai

Post by premupdate »

When i change constraint value as linkname.columname="039" string it works.

But,am keen on why there is a octal conversion happening in between when the constraint was given as integer value.

I have checked octal values which does not exist for 008,009,018,019,028,029,038,039, etc... (number ending with 8 and 9).

Please clarify.
Cheers,
prem
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

Check the transformer code generated, if it helps
GJ_Stage
Participant
Posts: 131
Joined: Mon Oct 27, 2008 6:59 am

Post by GJ_Stage »

Hi Prem,

I have tested the same scenario.

1) inputcol datatype is smallint
2) checking the constraint alone in tranformer
3) same column goes as output

But I did constraint as : linkname.columname='039'

It works fine.
Jothi
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

you can find the code for the Transformer within the RT_XXXX directories, you will find files with the stage name of the transformer. Please paste the code that you find there, that might help.

If not Ray always has a solution :D
Post Reply