Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am trying to read some data from tStatLogCatcher like pid, system_pid and assign it to a context variable. My variable is context.pid and it is of String type. I have a job as shown in the picture below:
I run the job, but no value is printed. Am I doing something wrong? Is this a right way to assign value to a context variable?
Thank you in advance!
Yes, I assing in tJava component this value: context.pid = pid. This way I have been able to store pid in my context variable.
context is like function parameter. you may use globalMap.put("pid") globalMap.get("pid")
Could you give me an example of how to retrieve pid by using "globalMap.put("pid")" and where?. I do not know how to do it.
What I need to do is to store pid in a variable and then use it in a stored procedure. I need pid because I want to store the processID of the current jobSession. So, i want to store it somewhere.
@fdenis wrote:
if tlog did not give you the information you need…
there is no universal method to get pid…
why did you need it?
Yes, I assing in tJava component this value: context.pid = pid. This way I have been able to store pid in my context variable.