A user exit (the *EXIT special value) is a user-defined CL command that permits automatic processing of predefined user routines. Users place an *EXIT special value inside a control group in the sequence order in which they want BRMS to process the request. Use the *EXIT value to send messages or to call applications.
To create a user exit command, take the following steps:
Create Backup Control Group Entries RCHAS400 Group . . . . . . . . . . : ETEST2 Default activity . . . . . *BKUPCY Text . . . . . . . . . . . *NONE Type information, press Enter. Weekly Retain Save SWA Backup List ASP Activity Object While Message Sync Seq Items Type Device SMTWTFS Detail Active Queue ID 10 *EXIT *DFTACT 20 LIBA *SYSBAS *DFTACT *ERR *NO 30 *EXIT *DFTACT 40 LIBB *SYSBAS *DFTACT *ERR *NO 50 *EXIT *DFTACT Bottom F3=Exit F5=Refresh F10=Change item F11=Display exits F12=Cancel F14=Display client omit status F24=More keys
User Exit Maintenance REESES Type command, press Enter. Sequence number . . . . . . . : 30 Where used . . . . . . . . . : *EXIT Weekly activity . . . . . . . : *DFTACT SMTWTFS Command . . . . . . . . . . . . CALL QGPL/STARTAPP F3=Exit F4=Prompt F12=Cancel
If the first entry in a control group is *EXIT, BRMS processes it before performing any preprocessing activities (such as ending subsystems or holding job queues). If the last entry in the control group is *EXIT, BRMS processes this exit after performing any postprocessing activities (such as starting subsystems and releasing job queues).