cherokee
15th September 2010, 19:48
Hello everyone,

I have a report that will be called in more than one session. I would like to know which session is running this report, in order to send different parameters to the report layout from the report script.

Thank you in advance,

rberti
15th September 2010, 21:00
Hello,
Why don't you import the "prog.name$" varibale in report script?
Or even pass it value thru some variable as a report input field.

Regards,
Rafael

cherokee
15th September 2010, 21:36
Yes, it can be done this way. I thought that we can get a system var while in the report.

Thanks,

rberti
15th September 2010, 21:44
Ah, understood :)
well, I didn't try it, but maybe prog.name$ values keeps session code even in report script, so you don't have to import.

Regards

Rafael

cherokee
15th September 2010, 22:34
prog.name$ holds the report name "rtiedm..." not the session name that I thought it will be the session name.

Thanks,

mark_h
16th September 2010, 00:38
Well I believe the parent process ID is passed to the report and you could use pstat to get the process name. At least I think this would work on our 4c4 system.