Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The End Watch (ENDWCH) command ends a watch session that was started by a STRWCH (Start Watch) command or by Start Watch (QSCSWCH) API.
Restrictions:
Top |
Specifies a session identifier for the watch to be ended. This name must match the session identifier of a watch session that had been previously started and is still active.
This is a required parameter.
Top |
Example 1: End Most Recently Started Watch
ENDWCH SSNID(*PRV)
This command ends the watch session started most recently by the same user who is running the ENDWCH command.
Example 2: End a Specific Watch Session
ENDWCH SSNID(MYSESSION)
This command ends the watch session MYSESSION.
Top |
*ESCAPE Messages
Top |