Phantom 14763 Variable previously undefined. Zero length s

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
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Phantom 14763 Variable previously undefined. Zero length s

Post by ketfos »

Hi,
I have job running fine in one enviornment.

While I run the job in another enviornment with teh same data set, I am getting a message in the log with following entries.

Phantom 14763

Variable previously undefined. Zero length string
Line 33, Variable previously undefined. Zero length string used.
Line 46, Variable previously undefined. Zero length string used.
Line 57, Variable previously undefined. Zero length string used.
Line 68, Variable previously undefined. Zero length string used.

Any help is appreciated.
Thanks
ketfos.
ketfos
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can you please identify which stage (and its type, which I'm guessing is Transformer) is throwing this error, and what that stage is doing?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

The message is coming at the end of the job in the following order

TransInNote: DSD.StageRun Active stage finishing.

DataStage Job 468 Phantom 29860

Program "DSU.TranslatePicCodeOther": Line 13, Variable previously undefined. Zero length string used.

The transform DSU.TranslatePicCodeOther is being used in the first stage of the job which is selecting from table.

Finished Job PolicyNoteOther
ketfos
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

Post by adams06 »

Whats the job design?
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

OCI Stage (Selects) -- Transformer (uses the trasnform routine) -- puts into another transformer --- does a look up against the hash file with code returned by transform -- inserts/updates into an table --

The warning messages appear at the end of the job.
None of the above stage ahs any warning message
ketfos
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The problem is in your routine TranslatePicCodeOther. The code in the routine is attempting to use the value of a variable before that variable has been assigned a value.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

Post by adams06 »

Post the routine
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The code may be subject to non-disclosure. In that case post a suitably anonymous variant of the code.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Hi Ray,

This is what I did to resolve the problem.

I deleted the job in the current enviornment.
Imported the job from QA enviornment and exported the dsx files to the current project.
Ran the job again and did not find any warning messages.

Any idea why it resolved the problem.

The existing code which gae the error message was earlier promoted from the Qa enviornment only.
ketfos
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No way to know without seeing the actual code. Perhaps someone 'fixed' it in the other environment...
-craig

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