Transferring files

You can transfer your PASE for i program and related files to and from your system, using File Transfer Protocol, Server Message Block, or remote file systems.

Copying programs using File Transfer Protocol

You can use the IBM® i File Transfer Protocol (FTP) daemon and client to transfer a file into or out of the IBM i integrated file system. Transfer your files in binary mode. Use the FTP subcommand binary to set this mode.

You must use naming format 1 (the NAMEFMT 1 subcommand of the IBM i FTP command) when placing files into the integrated file system. This format allows the use of path names, and transfers the files into stream files. To enter into naming format 1, you can either:

  • Change the directory using path names.
    This automatically puts the session into name format 1. Using this method, the first directory is prefaced by a slash (/). For example:
       cd /QOpenSys/usr/bin
  • Use the FTP subcommand quote site namefmt 1 for a remote client, or use namefmt 1 as a local client.

Copying programs using Server Message Block

The IBM i operating system supports Server Message Block (SMB) client and server components. With NetServer configured and running, PASE for i has access to SMB servers in the network through the /QNTC file system. On an AIX® or a Linux operating system, a SAMBA server is required to provide the same service. Installing a configured and operational operating system, such as AIX, can make directories and files available to PASE for i.

Copying programs using remote file systems

On the IBM i operating system, you can mount Network File System (NFS) file systems to a mount point in the integrated file system file space. AIX supports NFS, as well as Distributed File System (DFS) and Andrew File System (AFS®) (using DFS-to-NFS and AFS-to-NFS translators) so that these file systems can be exported and mounted by the IBM i operating system. This, in turn, lets PASE for i applications use these file systems. Security authorization is validated through the user ID number and group ID number of IBM i user profile for the directory path or file being accessed. You might want to ensure that a user profile that is intended to be the same person across multiple platforms has the same user ID on all of the systems.

The IBM i operating system is best used as an NFS server. In this case, you need to mount NFS file systems from your AIX operating system onto a directory in the IBM i integrated file system, and AIX writes programs directly onto the IBM i operating system when they build.

Note: IBM i NFS is currently not supported in multithreaded applications.