Getting Warning message(Phantom Msg)

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
hhh
Participant
Posts: 86
Joined: Tue Aug 02, 2005 7:39 am

Getting Warning message(Phantom Msg)

Post by hhh »

Hi,
I am passing JobName to following routine
$INCLUDE DSINCLUDE JOBCONTROL.H

Equate RoutineName To 'JobRunStatusHitRef'

If JobName[1,1] = '\' Then ; *jobname starting with '\' is a category not a job
Ans = 'This is not a job'
End
Else
If JobName = DSGetJobInfo(DSJ.ME,DSJ.JOBNAME) Then ; * Checking for whether it is current job or not
Ans = 'Current Job'
End
Else


JobHandle = DSAttachJob(JobName,DSJ.ERRNONE) ; * Attaches to a job in order to run it in job control sequence
JobStatus = DSGetJobInfo(JobHandle,DSJ.JobStatus) ; * Current status of job
Result = DSGetLogSummary(JobHandle,DSJ.LOGINFO,'0001-01-01','9999-01-01',0) ; * Getting Log Info Message

Ans = JobStatus :'|' : Result : '|'
End
End

While running this job , I am not getting proper status of jobs.For 'compiled' and 'Finished' status getting same integer value -5 and getting warning messages :
"DataStage Job 1174 Phantom 1674
Program "DSGetJobInfo": Line 101, Variable "InfoType" previously undefined. Empty string used.
DataStage Phantom Finished"

pls give your suggestion on this issue.

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

Post by ray.wurlod »

Check out the mnemonics for error codes (DSJE...) in JOBCONTROL.H. Also in this file you will observe that the mnemonics for function arguments must be all upper case, so that DSJ.JobStatus is not a valid argument; you need DSJ.JOBSTATUS.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
hhh
Participant
Posts: 86
Joined: Tue Aug 02, 2005 7:39 am

Post by hhh »

Thanks, after changing DSJ.JobStatus to upper case letter DSJ.JOBSTATUS i am not getting any warning

[quote="ray.wurlod"]Check out the mnemonics for error codes (DSJE...) in JOBCONTROL.H. Also in this file you will observe that the mnemonics for function arguments must be all upper case, so that DSJ.JobStatus is not a ...[/quote]
Post Reply