Assign SNADS File Server Object Access ID (QZDASNID) API


  Required Parameter Group:

1 File server object handle Input Char(32)
2 Correlation Input Char(3000)
3 Correlation bytes provided Input Binary(4)
4 Product ID Input Char(7)
5 Access ID Output Char(8)
6 Error code I/O Char(*)

  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Assign SNADS File Server Access ID (QZDASNID) API assigns an access ID to a specific file server object (FSO). An access ID lets the system know that a product is currently working with the file server object and that the file server object should not be deleted. An access ID is returned to the caller so that the access can be revoked at a later time. This API also increments the usage count of the FSO by one. Access IDs can be assigned to a particular file server object, and multiple accesses can be assigned at the same time. You can assign an access ID to an FSO 1 through 2 147 483 647 times, which equates to the usage count.


Authorities and Locks

API Public Authority
*EXCLUDE

Required Parameter Group

File server object handle
INPUT; CHAR(32)

The necessary linkage to the file server object. The value of this parameter should be taken from the FSO handle that was returned on the call to the Create SNADS File Server Object (QZDCRFSO) API.

Correlation
INPUT; CHAR(3000)

Information defined by the caller that identifies the file server object or the file server object access ID. For example, the correlation could contain the message identifier of the message attached to the file server object. If the correlation bytes provided field is zero, this indicates that no correlation is to be stored with the FSO.

Correlation bytes provided
INPUT; BINARY(4)

This field specifies the length of the correlation data.

Product ID
INPUT; CHAR(7)

The identifier of the product that is using the QZDASNID API. The product ID is used together with the access ID to identify the file server object access.

Valid values for this parameter are as follows:

Product ID The product ID of a product that is installed on the iSeries server.
QMSFPRD The MSF product identifier. This value can be used for all file server objects that are referred to by the MSF messages.

Access ID
OUTPUT; CHAR(8)

The identifier used together with the product ID to identify the file server object access.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error Code Parameter.


Error Messages

Message ID Error Message Text
CPF24B4 E Severe error while addressing parameter list.
CPF3A0D E Temporary server error.
CPF3A09 E System error.
CPF3A12 E Interface error.
CPF3C90 E Literal value cannot be changed.
CPF3CF1 E Error code parameter not valid.
CPF9872 E Program or service program &1 in library &2 ended. Reason code &3.


API Introduced: V3R6
Top | Office APIs | APIs by category