Gets or sets the name of the CICS server to run the program on, as defined in the Gateway daemon.

Namespace:  IBM.CTG
Assembly:  IBM.CTG.Client (in IBM.CTG.Client.dll) Version: 1.0.0.0

Syntax

C#
public string ServerName { get; set; }
Visual Basic (Declaration)
Public Property ServerName As String
Visual C++
public:
property String^ ServerName {
	String^ get ();
	void set (String^ value);
}

Property Value

The name of the CICS server, or nullNothingnullptra null reference (Nothing in Visual Basic) to use the default server defined in the Gateway daemon.

Remarks

If ServerName is nullNothingnullptra null reference (Nothing in Visual Basic) when the request is flowed, the default server defined in the Gateway daemon is used, and after the flow ServerName is set to the name of the server that was used.

If the request is extended, this property has a meaning only for the first request within a logical unit of work (LUW). Subsequent requests within the same LUW will use the CICS server specified on the first request.

The maximum length of a CICS server name is 8 characters. If the specified value is longer than 8 characters it will be truncated.

See Also