Example 2:

As an example, issue the following to list the existing sessions for the storage control that is attached to device F40:
F ANTAS004,LISTSESS F40
Result: The following is a possible response to this command:
ANTX8913I F40 XA01

The response means that storage control session 1 is an active XRC session.

You can also issue the following command to list all the sessions in the system:
F ANTAS000,LISTSESS ALL

Result: All the sessions that exist in the system are shown in ANTX8193l messages. Refer to z/OS MVS System Messages, Vol 1 (ABA-AOM) for details. Sessions for both online and offline devices are displayed. Offline devices are displayed even if they have never been online and/or are associated with sessions on another system.

The operation output contains multiple fields that provide information about each session on the specified device’s storage control. The command returns the following information for each session: An individual session report has a format of tsnnc, where the following apply:
t
C = concurrent copy session, X = XRC session.
s
A = active session, S = suspended session, Q = quiesced session, T = timed-out session.
nn
The storage control session number.
c
The connection status of the storage control session, as known by the system that issued the command. If c is blank, this host processor owns the session. If c is "*", another processor owns the session. If c is "?", this host processor owns the session, but may or may not have access to the session.
Results: Other possible responses to this command are:
Note: If errors occur, this command might also issue I/O error messages.