Hello,
Is 0 (zero) ever returned as a valid job-handle by the DSAttachJob function? I have always seen a non-zero integer so far, but just wanted to confirm...
Thanks,
Kaustubh
Value of Job-Handle
Moderators: chulett, rschirm, roy
Welcome! :D
No, zero is not a valid handle value. I present this slightly edited piece of DataStage generated job control code as evidence of that assertion:
No, zero is not a valid handle value. I present this slightly edited piece of DataStage generated job control code as evidence of that assertion:
Code: Select all
hJob1 = DSAttachJob("XXXX", DSJ.ERRFATAL)
If Not (hJob1) Then
Call DSLogFatal("Job Attached Failed")
Abort
End
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers