Phantom problem

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
sainath
Premium Member
Premium Member
Posts: 138
Joined: Fri Nov 19, 2004 3:57 pm

Phantom problem

Post by sainath »

Hi
I am geting phantom error in transformar stage .IMPROPER DATATYPE.

1.I went into project directory and found the below code in my job
trim(Change(XYPGALTNBR, XYPGALTCHAR, " "))
my aim is to trim the first character from the string .so i store in stage variables.
XYPGALTNBR - string
XYPGALTCHAR- first charc of string

2. I move the above code and if i run again .i am getting same error in other line.
IF NOT(STAGECOM.STAGE<STAGE.VAR.INITED,12>) THEN
STAGECOM.STAGE<STAGE.VAR.INITED,12> = @TRUE
V58S2.Stagevar%%12 = 0
please share your thoughts.
thks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Where in the job is your trim code? In a stage variable? A derivation? It is more efficient to use the function "In.YourString[2,999]" to remove the first character from a string in DataStage.

Does it mean if you remove this one line then your program compiles and runs without a problem?
sainath
Premium Member
Premium Member
Posts: 138
Joined: Fri Nov 19, 2004 3:57 pm

Post by sainath »

HI
Thanks for your reply .
if i change the code to "In.YourString[2,40]" to remove first char of a string there is no phantom error.
thks
Post Reply