Error Code Handling

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
cosec
Premium Member
Premium Member
Posts: 230
Joined: Tue May 08, 2007 8:10 pm

Error Code Handling

Post by cosec »

hi,

I am trying to have all my error codes and error messages organized in a file...

Are there any particular functions to get the error code and error message ?

I tried the available DS MAcros but didn't get what I was expecting...

Would appreciate if some one could point me in the right direction
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:? You need to do a better job of explaining what you are trying to do and what you are expecting. Examples are always good.
-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 »

Many of the error codes can be resolved via a lookup on the SYS.MESSAGE hashed file. However you need a six digit key.

Code: Select all

 Fmt(ErrorCode, "R%6")
Apart from that most of the others are not retrievable using software. Some are documented in header files, but searching these has to be by token, and you don't have the tokens in the error message itself.

Other error codes, external to DataStage (such as SQL State for ODBC and database error codes) need to be resolved by other means.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply