Use of DSJ.ERRFATAL

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
lordlebu
Participant
Posts: 9
Joined: Mon May 21, 2012 8:35 am
Location: Calcutta

Use of DSJ.ERRFATAL

Post by lordlebu »

Hi I am new to Datastage routines. I am analysing a job where the flow is taking me to a routine. Code is given below:

Code: Select all

Call DSU.AuditRoutineOne(InputArg1,DSJ.ERRFATAL)
FileName = InputArg2:InputArg3
Call DSU.AuditRoutineTwo(FileName,DSJ.ERRFATAL)
Ans="JobDone"
I want to know the use of DSJ.ERRFATAL over here. Thanks in Advance :)
Lebu
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

DSJ.ERRFATAL is a constant, the value is numeric. As a constant, it cannot be changed, thus the second parameter to these 2 user-written routines is an input-parameter. Without source code or more information, what is done with that value in the routines is a matter of conjecture.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Let me conject for a moment. :wink:

As noted, it is being passed to a "user defined" a.k.a a custom routine that is unknown to us. However, certain functions include an "Error Code" argument that tell the function how to handle any errors it encounters. From the documentation for one such function:
ErrorMode is a value specifying how other routines using the handle should report errors. It is one of:

DSJ.ERRFATAL Log a fatal message and abort the controlling job (default).
DSJ.ERRWARNING Log a warning message but carry on.
DSJ.ERRNONE No message logged - caller takes full responsibility.
I'm guessing it is being passed to functions inside the custom routine.
-craig

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