Hi,
when I ran the job, it aborted with this message
"From previous run
DataStage Job 6141 Phantom 12438
Program "DSD.RUN": Line 2157, Variable previously undefined. Zero length string used.
Program "DSD.RUN": Line 2157, Variable previously undefined. Zero length string used."
there is one variable defined and assigne value.
can you please help me out ?
the job has the following routine
ParamFile = ParameterFileName
Var = 0
OpenSeq ParamFile To FileVar Else
Call DSLogFatal("Cannot open ":ParamFile: "- Aborting Job", "ParameterRoutine")
Ans = @Null
GoTo ErrorExit
End
Loop
ReadSeq FileLine From FileVar
Then
If Var = 1 Or TrimF(TrimB(Field(EReplace(FileLine, '[',""),']',1))) = TrimF(TrimB(JobName))
Then
Var = 1
If Var = 1 And TrimF(TrimB(Field(FileLine,"=",1))) = TrimF(TrimB(ParameterName))
Then
Ans = TrimF(TrimB(Field(FileLine,"=",2)))
GoTo MatchFound
End Else
Ans = @Null
End
End Else
Ans = @Null
End
End Else
Exit
End
Repeat
MatchFound:
CloseSeq FileVar
ErrorExit:
Thanks
Routine error
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 612
- Joined: Thu May 03, 2007 4:59 am
- Location: Melbourne
"JobName" used in - If Var = 1 Or TrimF(TrimB(Field(EReplace(FileLine, '[',""),']',1))) = TrimF(TrimB(JobName)) is a Variable previously undefined ???
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: