Global variable value not accessible from the catch block

Hi

After raising an exception,when the control moves to the catch block a function is called in the catch block.
The function uses 2 global variables and the value of the global variable is not getting passed to it. Is there any way that I can access the values of global variables from the catch block.

Your help will be highly appreciated.


sree1 (BOB member since 2010-02-04)

global variables are accessible from anywhere within the job. check the syntax how you are passing them.

post the syntax how you are using them and the errors if you are getting any…


Praveen Reddy :india: (BOB member since 2006-12-26)

Hi Praveen,
Thanks for the reply.I had seen some posts in the forum with the same problem but didn’t find any solution as such.It is a fact that the global variables should be accessible everywhere but may be this is a weird behaviour of BODS.The syntax and everything is fine but some how the variable is assigned to NULL just before the function call in the catch block.I had reassigned the variable in the catch block by getting it from the db and now it is fine.


sree1 (BOB member since 2010-02-04)