Job which runs successfully is getting aborted in newversion

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
puli.reddy
Participant
Posts: 28
Joined: Wed Jan 11, 2006 8:29 pm
Location: Singapore
Contact:

Job which runs successfully is getting aborted in newversion

Post by puli.reddy »

Hi All,

Job which runs successfully in old version is getting aborted in newversion.
I am getting a funny error. One of the text column generates junk values in new version. I use IF IsNull(Col) = 1 Then "Open" Else Col. It generates proper values in old version. The same job generates junk values in new version. The generated values populated into a hashfile, so that job is getting aborted.

Old Version is 7.0 and new version is 7.5

Can anyone advise on this please!
Thnaks and Regards,
AnjiReddy.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The 'junk' values being generated is the 'funny error'? Are these junk values the contents of the 'Col' field or something else entirely? You may want to post some examples - what comes in the Col field and the result of the derivation.

I would guess the IsNull check is no longer returning True for those values and just passing on what's in the field. You might want to try changing the derivation to this and see if it helps:

Code: Select all

If Len(Trim(Col)) = 0 Then 'Open' Else Col
That checks for empty strings as well as nulls.
-craig

"You can never have too many knives" -- Logan Nine Fingers
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

try this
IF IsNull(Col) Then "Open" Else Col
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No functional difference from the original derivation. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is the source a text file? If so, how is NULL represented in that particular column? You may need to visit the extended properties (Edit Row in the Columns grid) to find out.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply