Posted: Wed Jun 18, 2003 5:51 am Post subject: How to get the value of parameters in catalogue file
Newbie
Joined: 13 Apr 2003 Posts: 2
How do I get the parameter value of error description in the catalog file.
For. Ex.
2493: BIP2493E: \
({0}, {1}) : Illegal 1st argument (value ''{2}'') to function SUBSTRING. \n\nThe first argument must be a character, byte or bit string. The function was called with a first argument of ''{2}''. \n\nEnsure that the first argument to SUBSTRING is a character, byte or bit string.
How do I get {0} , {1} , {2} values programatically ?
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
By 'Programatically ' do you mean MQSI ESQL code ?
Then you will have to write an error handler routine that is called whenever an exception occurs.
If now you parse the error message and look under insert.text in the exception list tree repeatedly it gives you the parameters one after the other each under insert.text
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum