Use the Create Directory (MKDIR) command or mkdir() API to add a server directory to the /QNTC directory.
By default, a QNTC directory is automatically created for all functional servers in the iSeries™ NetServer™ domain and the local subnet. Servers outside the local subnet or iSeries NetServer domain must be added using the MKDIR command or mkdir() API. For example:
MKDIR '/QNTC/NTSRV1'
would add the NTSRV1 server into the QNTC file system directory structure to enable access of files and directories on that server.
You can also add the a new server to the directory structure by using the TCP/IP address. For example:
MKDIR '/QNTC/9.130.67.24'
would add the server into the QNTC file system directory structure.
If you prefer to add directories using the API or CL command, you can improve the performance of these commands by adding the environment variable QIBM_ZLC_NO_BROWSE, as in the following example:
ADDENVVAR ENVVAR(QIBM_ZLC_NO_BROWSE) VALUE(1) LEVEL(*SYS)
This environment variable causes the file system to bypass all network browsing when performing file operations.