Enable Link (QOLELINK) API

  Required Parameter Group:


  Optional Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Enable Link (QOLELINK) API enables a link for input and output on a communications line. The communications line, described by the line description parameter, must be a token-ring, Ethernet, wireless, FDDI, or X.25 line. The link being enabled can only be accessed within the job in which the QOLELINK API was called.

Before calling the QOLELINK API to enable a link, you must configure the following objects:

See Configuring User-Defined Communications Support for more information on configuration.

The QOLELINK API creates the input and output buffers and buffer descriptors used for the link being enabled. The network controller description and the network device description, associated with the link being enabled, are also created, if necessary. In addition, the following are varied on, if necessary.

If the X.25 switched network interface list has multiple network interface descriptions configured, all of them can be varied on at one time. For more information on varying on network interface descriptions, see the Communications Management Link to PDF manual.

When the QOLELINK API returns, your application program should examine the codes to determine the status of the link. Successful return and reason codes (both zero) indicate the link is being enabled and an enable-complete entry will be sent to the data queue or user queue specified on the call to the QOLELINK API when the enable operation completes. See Enable-Complete Entry for more information on the enable-complete entry. Unsuccessful return and reason codes indicate the link could not be enabled and the enable-complete entry will not be sent to the data queue or user queue. Return and Reason Codes provides more information on the QOLELINK API return and reason codes.


Authorities and Locks

User Space Authority
*READ

User Space Library Authority
*USE and *ADD. *OBJOPR plus *READ is equivalent to *USE.

User Space Lock
*EXCL

Required Parameter Group

Return code
OUTPUT; BINARY(4)

The recovery action to take. See Return and Reason Codes.

Reason code
OUTPUT; BINARY(4)

The error that occurred. See Return and Reason Codes.

Data unit size
OUTPUT; BINARY(4)

The total number of bytes allocated for each data unit in the input and output buffers. For token-ring links, this includes user data (LAN user data size parameter), general LAN header information, and optional routing information. For Ethernet, wireless, and FDDI links, this includes user data (LAN user data size parameter) and general LAN header information. For X.25 links, this includes user data (X.25 user data size parameter). For more information on the general LAN header, see Return and Reason Codes.

Data units created
OUTPUT; BINARY(4)

The number of data units created for the input buffer and the output buffer. This parameter also specifies the number of elements created for the input buffer descriptor and the output buffer descriptor. The only valid value is:

Note: Because user-defined communications support always returns an 8, you should write your application program to avoid having to recompile should this value ever change.

LAN user data size
OUTPUT; BINARY(4)

The number of bytes allocated for token ring, Ethernet, wireless, or FDDI in each data unit of the input and output buffers. This does not include general LAN header information and optional routing information.

The content of this parameter is only valid when enabling a token-ring, Ethernet, wireless, or FDDI link.

Note: The maximum amount of token-ring, Ethernet, wireless, or FDDI user data that can be sent or received in each data unit is determined on a service access point basis in the line description or by the 1502 byte maximum for Ethernet Version 2 frames, and may be less than the LAN user data size. See Query Line Description (QOLQLIND) API for information on retrieving these values.

X.25 data unit size
INPUT; BINARY(4)

The number of bytes allocated for X.25 user data in each data unit of the input and output buffers. This is equal to the maximum amount of X.25 user data that can be sent or received in each data unit. The content of this parameter is only valid when enabling an X.25 link.


Input buffer
INPUT; CHAR(20)

The name and library of the input buffer that the QOLELINK API creates for this link. The first 10 characters specify the name for the input buffer and the second 10 characters specify the name of an existing library that the input buffer will be created in. Both entries are left-justified. The special values of *LIBL and *CURLIB can be used for the library name.

Note: A user space object with the same name as the input buffer must not already exist in the specified library.

Input buffer descriptor
INPUT; CHAR(20)

The name and library of the input buffer descriptor that the QOLELINK API creates for this link. The first 10 characters specify the name of the input buffer descriptor and the second 10 characters specify the name of an existing library that the input buffer descriptor will be created in. Both entries are left-justified. The special values of *LIBL and *CURLIB can be used for the library name.

Note: A user space object with the same name as the input buffer descriptor must not already exist in the specified library.

Output buffer
INPUT; CHAR(20)

The name and library of the output buffer that the QOLELINK API creates for this link. The first 10 characters specify the name of the output buffer and the second 10 characters specify the name of an existing library that the output buffer will be created in. Both entries are left-justified. The special values of *LIBL and *CURLIB can be used for the library name.

Note: A user space object with the same name as the output buffer must not already exist in the specified library.

Output buffer descriptor
INPUT; CHAR(20)

The name and library of the output buffer descriptor that the QOLELINK API creates for this link. The first 10 characters specify the name of the output buffer descriptor and the second 10 characters specify the name of an existing library that the output buffer descriptor will be created in. Both entries are left-justified. The special values of *LIBL and *CURLIB can be used for the library name.

Note: A user space object with the same name as the output buffer descriptor must not already exist in the specified library.

Key length
INPUT; BINARY(4)

The key length when using a keyed data queue or user queue.


Key value
INPUT; CHAR(256)

The key value (left justified) when using a keyed data queue or user queue.

Qualified queue name
INPUT; CHAR(20)

The name and library of the data queue or user queue where the enable-complete, disable-complete, permanent-link-failure, and incoming-data entries for this link will be sent. See Queue Entries for more information about these queue entries. The first 10 characters specify the name of an existing queue and the second 10 characters specify the library in which the queue is located. Both entries are left-justified. The special values of *LIBL and *CURLIB can be used for the library name.

Line description
INPUT; CHAR(10)

The name of the line description that describes the communications line the link being enabled will use. An existing token-ring, Ethernet, wireless, FDDI, or X.25 line description must be used.

Communications handle
INPUT; CHAR(10)

The name assigned to the link being enabled. Any name complying with system object naming conventions may be used.


Optional Parameter Group

Queue type
INPUT; CHAR(1)

The type of queue you specified for the Queue name parameter.


Network interface description
INPUT; CHAR(10)

The name of the network interface description. This value is specified if you are running X.25 and need to specify a particular network interface to use. Otherwise, this value should be set to blanks.

Note: This parameter along with the line description parameter causes only the network interface description specified to be varied on. If this value is not specified and the line description parameter contains a switched network interface list, all network interface descriptions within the list are varied on when the QOLELINK API is called.

Specifying this parameter causes only the line and the network interface that are passed to be varied on during enable processing.

Extended operations
INPUT; CHAR(1)

Indicates whether or not extended operations are supported.

Extended operations affect all connections (UCEPs, PCEPs) on the link. X'B311' and X'B111' are receive extended operations. X'B110' is a send extended operation.


Return and Reason Codes

Return and Reason Codes for the QOLELINK API



Error Messages



API introduced: V2R1

[ Back to top | Communications APIs | APIs by category ]