When using BRMS control groups (WRKCTLGBRM)
, it is possible to add user commands using the *EXIT option for the backup item. These commands can be used to run many different things, start applications, etc.
If used, these are processed outside of the control group. The first *EXIT is the pre-control group exit that runs before any of the control group attributes are run (signing off users, ending subsystems, holding job queues, and so on). The last *EXIT is the post-control group and is run after all entries in the control group have been run.
BRMS performs the following operations in the indicated order when you run a restricted state backup control group:
NOTE: BRMS also checks for an active backup item in the control group before ending any subsystems. If there are no active items to be saved, any subsystems or job queues specified under Option 9 or 10 from the WRKCTLGBRM screen will not be processed.
BRMS performs the following operations in the indicated order after processing the backup control group when the entries do not include a *SAVSYS and when an IPL has not been requested:
BRMS performs the following operations in the indicated order after processing the backup control group items when an IPL has been requested:
When running iSCSI control group QNFSIPLFUL or QNFSIPLINC, the save to tape is run prior to the system IPL. |
BRMS performs the following operations in the indicated order after processing the backup control group items when the entries included a *SAVSYS and an IPL has not been requested:
NOTE: Although not recommended, it may be possible to use some of the commands, STRBKUBRM SBMJOB(*NO), STRMNTBRM, MOVMEDBRM
in the last exit of a control group but this may result in inconsistent results.
SAVBRM
SAVDLOBRM
SAVFLRLBRM
SAVLIBBRM
SAVMEDIBRM
SAVOBJBRM
SAVOBJLBRM
SAVSAVFBRM
SAVSYSBRM
DUPMEDBRM
STRMNTBRM
STREXPBRM
MOVMEDBRM
INZMEDBRM
RSTAUTBRM
RSTBRM
RSTDLOBRM
RSTLIBBRM
RSTOBJBRM
STRBKUBRM SBMJOB(*NO)
3. Do not use any native OS/5 save or restore commands in a *EXIT in a control group.
4. Using commands listed in points 2 and 3 in a CLP that is called interactively and then calling the CLP from the *EXIT is the same as calling the command itself.
5. Running multiple STRBKUBRM SBMJOB(*YES)
one after each other. It is recommended to create a CLP and have that CLP start each control group with delays. Then call the CLP from the job scheduler or *EXIT in a control group.
NOTE: If the system is in restricted condition and a job is submitted to a subsystem that is not up, the system will automatically start subsystem QCTL which will start subsystems and the startup program will be run.
6. SAVDOMBRM
has to run in an *EXIT in a control group; however, it cannot be the first or last *EXIT.
All sequences are exits. As there are no BRMS backup items, option 9 and 10 from the control group will not run.
10 *EXIT CALL PGM(ALIB/APGM)
20 *EXIT DLYJOB DLY(120)
30 *EXIT SAVLIB LIB(ANYLIB)
40 *EXIT CALL PGM(BLIB/BPGM)
In this example, if the control group is run on any day other than Friday, option 9 and 10 from the control group will not do anything:
Weekly
Backup List ASP Activity
Seq Items Type Device SMTWTFS
10 *EXIT *DFTACT
20 ALIB F
30 *EXIT *DFTACT