Skip to content

ZosServers

The ZosServers object is a collection of all servers in the ZDD Network. This object is obtained using the Servers property of the ZosNetwork object.

ZosServers Properties

ZosServers exposes the following properties:

Property Type R/W Description
Item (varIndex) Object (IZosServer) R Server with specified name or index.
Count Integer (long) R Number of objects in collection.

...

ZosServers Methods

ZosServers exposes the following methods:

Add Method

Adds a new server. If you specify port number 0, the port will be disabled. The “DataSets”, “Jobs”, and “Unix” folders are not available if the port is disabled. If you specify bSecure, TLS security will be enabled for all ports, including ChaangeMan ports

Add ( 
    strName, 
    strAddress, 
    nPort, 
    strDescription, 
    nMaxSessions, 
    bPasswordPhrase, 
    bSecure  
    )

...

Refresh Method

Refreshes collection.

Refresh()

Returns

Object (IZosServer)

Remove Method

Deletes a server.

Remove (strName)

Examples of using ZosServers

Visual Basic or VBScript:

Dim objServers
    Dim objServer
    Dim nCount
    nCount = objServers.Count
    Set objServer = objServers.Item("SYSA")
    objServers.Add "Server1", "199.90.90.9", 5000,
    "Description1"
    objServers.Remove "Server1"

...

JScript:

var objServers;
    var objServer;
    var nCount;
    nCount = objServers.nCount;
    objServer = objServers. Item("SYSA")
    objServers.Add("Server1", "199.90.90.9", 5000,
    "Description1");
    objServers.Remove("Server1");

...

Back to top