VishalMistry
29th July 2015, 13:16
Hi all,

I am calling session b from session a. Is there any system variable containing name of calling (parent session a) session name ?

vishal

bhushanchanda
29th July 2015, 13:58
Hi,

In the before.program section of session B, you need to write -

declaration:

string parent.prog(20)

before.program:
import("prog.name$", parent.prog)

It will give you the calling program/session code.

Now, if you want session name then use -

tt.session.desc(parent.prog)

Another way is to use -

long info(PSMAXSIZE)
string progname(512)
long procid

procid = -1
procid = pstat( parent, progname, info )

VishalMistry
29th July 2015, 14:24
Dear Bhushan-Ji,

Thanks a lot. It works.

Vishal