Creating directories in the QNTC file system
You can 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'adds 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'adds the server into the QNTC file system directory structure. Notes:
- By configuring iSeries NetServer for WINS, it is possible to automatically create directories for servers beyond your subnet.
- If you use mkdir() API or the MKDIR CL command to add directories to the directory structure, they will not remain visible across IPLs. The MKDIR command or mkdir() API must be reissued after every system IPL.
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.
Parent topic:
iSeries NetClient file system (QNTC)
Related information
Create Directory (MKDIR) command
mkdir()--Make Directory API