Get timeoutseconds value for a Stored Process server

159 Views Asked by At

As per documentation:

"timeoutseconds = seconds"

The TIMEOUTSECONDS parameter specifies the time interval that an OLAP server or a stored process server waits before it stops a client process and cleans up the server run-time environment context.

My question is - how do I obtain this value programmatically, eg as part of a Stored Process?

1

There are 1 best solutions below

1
On BEST ANSWER

STPSRVGETN
Returns the numeric value of a server property

SAS Statements                                             Results
------------------------------------------------------     ---------------------
dsesstimeout=stpsrvgetn('default session timeout');
put dsesstimeout=;                                         dsesstimeout=900

sessmaxtimeout=stpsrvgetn('maximum session timeout');
put sessmaxtimeout=;                                       sessmaxtimeout=3600

session=stpsrvgetn('session timeout');
put session=;                                              session=900

maxconreqs=stpsrvgetn('maximum concurrent requests');
put maxconreqs=;                                           maxconreqs=1

deflrecl=stpsrvgetn('default output lrecl');
put deflrecl=;                                             deflrecl=65535

version=stpsrvgetn('version');                             
put version=;                                              version=9.4