Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

max runtime for xsjob

Hi experts,

Has anybody written any code that will prevent an XS job from running past a certain time limit threshold?  I'd like to kill my job if it has been running for more than one hour for example.

Thanks,

-Patrick

Tags:
replied

  Hi Patrick,

  You need to identify the session used by the job. Use table M_CONNECTIONS for that.

   Once you identified the session from M_CONNECTIONS use below mentioned query to disconnect the session.

  ALTER SYSTEM DISCONNECT SESSION '<connection_id>'

  Connection id is from M_CONNECTIONS.

   -

   Pratik

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question