routine and the error in compilation log

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Server routine, not Parallel.

You need a DEFFUN for the user-defined function you are calling. Search the forums for the syntax. And "log" looks to be a misspelled argument name.

ps. The Abort is completely unnecessary, after a call to DSLogFatal() you is aborted.
-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 »

DSFindFirstLogEntry() ? This is a new one to me.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
deepa_shenoy
Participant
Posts: 95
Joined: Thu Sep 24, 2009 12:15 am
Location: India

Post by deepa_shenoy »

After modification, the compiler is throwing this

$IFNDEF JOBCONTROL.H

$INCLUDE DSINCLUDE JOBCONTROL.H

$ENDIF

JobNmTrimed = Trim(JobName,' ','B')

handleJob = DSAttachJob(JobNmTrimed, DSJ.ERRFATAL)

If NOT(handleJob) Then

Call DSLogFatal("Job Attach Failed", "JobControl")

Abort

End

Else

Ans = DSFindFirstLogEntry (handleJob,DSJ.LOGWARNING)



DetachResult = DSDetachJob(handleJob)

End



Compiling: Source = 'DSU_BP/DSU.WarningCounter', Object = 'DSU_BP.O/DSU.WarningCounter'

************************************************

Array 'DSFindFirstLogEntry' never dimensioned.



1 Errors detected, No Object Code Produced.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You failed to add the DEFFUN you need.
-craig

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