# ASEXIT
> [HTML Version](asexitsbr.htm)
_Written August 2025_
**xcall ASEXIT, jcbrec**
ASEXIT.SBX is a hook routine that will be called automatically—if it exists in the BAS: directory—just before A-Shell exits, allowing you to perform any kind of housekeeping or other administrative work.
**Parameters**
_jcbrec_ (ST\_JCBREC) \[in\]
Contains a copy of the JOBTBL record for the current job. See [JOBTBL.SDF in SOSLIB:\[907,16\]](https://bitbucket.org/microsabio/soslib/src/master/907016/jobtbl.map).
**Also see**
• [XRUNLOG](xrunlog_sbr.htm.md)
• [Hooks](hooks.htm.md)
**History**
2017 February, A-Shell 6.3.1544: Interface added to A-Shell