From Surf Wiki (app.surf) — the open knowledge base
User exit
Software extension that executes after a predefined event
Software extension that executes after a predefined event
A user exit is a subroutine invoked by a software package for a predefined event in the execution of the package. In some cases the exit is specified by the installation when configuring the package while in other cases the users of the package can substitute their own subroutines in place of the default ones provided by the package vendor to provide customized functionality. In some cases security controls restrict exits to authorized users, e.g., EXCP appendages in MVS.
The earliest use of this term involved operating systems to let customized code temporarily take control when a pre-designated event occurred.IBM term: OS/MFT, MVT {{cite magazine |magazine=Computerworld
A more typical use is replacing the user exits provided by a sort/merge package,{{cite web |title=COBOL E15 user exit: passing or changing records for sort
Procedures provided as user exits are typically compiled into a static library and linked directly with the package to produce an executable program. Another approach employs dynamic libraries to accomplish the same thing.
Finally, user exits may be external programs executed at specific points in the execution of a host package.
History
Historically, this term is commonly used in IBM mainframe vernacular.
- Title: z/OS V1R10 DFSMS Installation Exits Document Number: SC26-7396-11
- Title: z/OS V1R10.0 JES2 Installation Exits Document Number: SA22-7534-10
- Title: z/OS V1R10.0 MVS Installation Exits Document Number: SA22-7593-14
Restrictions
If the user site specific code is substituted for the software vendor provided default exit it must interface to the software package using the defined parameters as documented for the default exit. User exits are important because while they enable site specific customization they isolate such installation specific customization to defined and supported points enabling the site to upgrade to follow-on releases of the software package without adverse impact to preexisting customized functionality. Some references to IBM user exit manuals are given below. Other vendors such as SAP, Oracle, IFS, HP, Macro4, Compuware, CA all employ user exits in some of their software products.
Example
In SAP, A 'COMMIT WORK' must never be used inside a User Exit, as it may affect the program processing. Furthermore, error messages may not be issued from inside an exit, as they halt the processing of the code that follows the message.
Enforcing standards
If files containing user-created content are meant to follow a standard, the (file) Open command of a word-processing document can invoke a user exit that does validation and, if necessary, returns an error code.
Applications
Some applications that provide user exits:
- Apache Subversion allows "hooks", which are "scripts that run when an action is performed"
- IBM CICS
- IBM CMVC user exits in the form of Kornshell scripts
- IBM JES 2 and 3
- IBM MVS, SMS, z/OS and dozens of sub-components such as RACF, SMF, etc.
- IBM sort/merge package
- Oracle CC&B
- SAP R3
References
References
- "Did You Say CMVC?".
- Sample: Opinion.AnalystID.StockSymbol.DateTime - Opinion.Q347.IBM.201907031321 - alternatively, the date/time portion may be filled in by the user exit.
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about User exit — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report