Add File Server Share (QZLSADFS) API


  Required Parameter Group:


  Optional Parameter Group Start of change1End of change:


  Start of changeOptional Parameter Group 2:End of change

Start of changeEnd of change
  Default Public Authority: *USE

  Threadsafe: No

The Add File Server Share (QZLSADFS) API shares a portion of the integrated file system with the network using the IBM® i Support for Windows® Network Neighborhood (IBM i NetServer™) server.


Authorities and Locks

To use this API, you must have *IOSYSCFG special authority or own the integrated file system directory.


Required Parameter Group

Share name
INPUT; CHAR(12)

The name of the share to be added.

Path name
INPUT; CHAR(*)

The path in the integrated file system to be shared with the network. A forward slash, '/', is required as the first character.

Length of path name
INPUT; BINARY(4)

The length, in bytes, of the path name. The maximum length is 1024 bytes.

CCSID encoding of path name
INPUT; BINARY(4)

The coded character set ID (CCSID) of the path name and the file extension table entries. 0 will result in the current job CCSID being used.

Text description
INPUT; CHAR(50)

The text description for this share.

Permissions
INPUT; BINARY(4)

The access available from the network for this share.


Maximum users
INPUT; BINARY(4)

The maximum number of users who can concurrently access this share.

This value must be greater than or equal to zero, or -1 (X'FFFFFFFF'), which means there is no limit to the number of users who can concurrently use this share.

Error code
I/O; CHAR(*)

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


Optional Parameter Group Start of change1End of change

CCSID used for text conversion
INPUT; BINARY(4)

The client CCSID that is used for text file data conversion. Text file data conversion is performed using this CCSID and the current CCSID of the system file.

A value of 0 indicates that the user would like to use the currently configured CCSID for the server. See Get Related Default CCSID (CDRGRDC) API for additional information on related CCSIDs.

If the CCSID used for text conversion parameter is omitted, the API assumes a default value of 0.

Enable text conversion
INPUT; CHAR(1)

Whether the server enables text conversion for this share. Possible values are:

If the enable text conversion parameter is omitted, the API assumes a default value of 0.

File extension table
INPUT; CHAR(*)

An array of table entries. There is no limit to the number of values specified. For the layout of a table entry, see Format of File Extension Table Entry.

If the file extension table parameter is omitted, the API assumes that there are no file extensions for text conversion. If the file extension table parameter is specified, the number of table entries parameter must be specified also.

Number of table entries
INPUT; BINARY(4)

The number of table entries.

If the number of table entries parameter is left out, the API assumes a default value of 0. If the number of table entries parameter is specified, the file extension table parameter must be specified also.


Start of changeOptional Parameter Group 2

All parameters in optional parameter group 1 must be specified when optional parameter group 2 is specified.

Encryption required
INPUT; CHAR(1)

Whether the server requires access to the share to use encryption. Possible values are:

If the encryption required parameter is omitted, the API assumes a default value of 0.

End of change

Format of File Extension Table Entry

The following shows the format of a file extension table entry. For detailed descriptions of the fields in the table, see Field Descriptions.



Field Descriptions

File extension. A file extension string that is null-terminated. Possible values include:

Length of file extension. The size in bytes of the file extension. The length does not include the byte used for null-termination.


Error Messages



API introduced: V4R2

[ Back to top | Server Support APIs | APIs by category ]