DirkRi
13th December 2001, 14:03
Does anyone know of a function similar to tt.session.desc that I can call to get the session type (print, maintain, etc.)?

Thanks!

mark_h
13th December 2001, 17:27
I have not been able to locate a function that can do it. The only way I know of is to use the ttadv200 table in company 000 to look up the session type.

Good Luck!

Mark

ankybanky
14th December 2001, 16:17
hello dirkri
why do u need it at all , in case u need it u can query on ttadv200 table and extract what is reqd
ankur

NPRao
3rd May 2003, 00:01
Refer to the tools library - ttdllsess.info


get.session.type
string get.session.type( const string session(), const string pacc() )
Ret: the session window type (if found), "-1" otherwise
Desc: determine the session window type, based on the current scm group
In: session contains <cpac><cmod><session code>
pacc contains package combination
--------------------------------------------------------------------------------
get.session.window.type
domain ttadv.ztyp get.session.window.type( const string session(),
const string pacc() )
Ret: the session type (if found), empty otherwise
Desc: determine the session type, based on the current scm group
In: session contains <cpac><cmod><session code>
pacc contains package combination


or ttdllextint

get.session.vrc
long get.session.vrc( domain ttadv.cpac cpac, domain ttadv.cmod cmod,
domain ttadv.cses cses, long including.tt, ref domain ttadv.vers vers,
ref domain ttadv.rele rele, ref domain ttadv.cust cust, ref domain
ttadv.cpac mpac, ref domain ttadv.cmod mmod, ref domain ttadv.flno mfln,
ref domain ttadv.kses kses, ref domain ttadv.cmod cmop, ref domain
ttadv.cprs cprs )