Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Monitor Save While Active (MONSWABRM) command reviews the save while active message queue and looks for the message indicating the end of library synchronization. When synchronization is detected, you can issue a command to the system.
The MONSWABRM command can be used as an exit (*EXIT) special value in a control group during backup processing.
To use this command, you must have the Backup Recovery and Media Services for iSeries, 5722-BR1, licensed program installed.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
LIB | Saved library | Name, *MSGQ | Required, Positional 1 |
CMD | Command to run | Command string | Required, Positional 2 |
JOBD | Job description | Single values: *USRPRF Other values: Qualified object name |
Optional |
Qualifier 1: Job description | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
JOBQ | Job queue | Single values: *JOBD Other values: Qualified object name |
Optional |
Qualifier 1: Job queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
WAITMSG | Time limit in seconds | 1-999999, 3600, *NOMAX | Optional |
MSGQ | Message queue | Name | Optional |
Top |
Specifies the name of the library or message queue that you want to review for synchronization during a save while active operation.
This is a required parameter.
Top |
Specifies the command that you want to process when library synchronization is achieved during a save while active operation. For instance, you may want to restart a subsystem once synchronization has occurred for the library you are saving.
Note: Effective use of MONSWABRM in a control group requires that you specify *YES for "Save while active" in the control group entry for the monitored library, and that the *EXIT entry precedes the control group entry for the monitored library.
This is a required parameter.
Top |
Specifies the job description used with this job.
Single values
Qualifier 1: Job description
Qualifier 2: Library
Top |
Specifies the job queue in which this job is placed. This job queue must be different from the job queue in which the control group will run, so that the MONSWABRM command will run at the same time with the control group.
Single values
Qualifier 1: Job queue
Qualifier 2: Library
Top |
Specifies the time in seconds that the MONSWABRM command should wait for the library synchronization message in the job queue. If the specified time is exceeded, the MONSWABRM command will stop monitoring the message queue. The time can be specified from 1 to 999999 seconds, with a default time of 3600 seconds (1 hour).
Top |
Specifies the name of the message queue that you want to review for synchronization. This parameter is required when *MSGQ is specified in the Saved library (LIB) parameter.
Restriction:
MONSWABRM always uses the message queue from library QUSRBRM.
Top |
Example 1: Processing a Command after Synchronization
MONSWABRM LIB(GLLIB) CMD(SBMJOB JOB(GLDAILY))
This command will submit the GLDAILY job when the synchronization message is sent during the save of library GLLIB.
Top |
*ESCAPE Messages
Top |