[ Previous | Next | Contents | Search ]
3270 Host Connection Program 2.1 and 1.3.3 for AIX: Guide and Reference

Compiling a File Transfer Program

This section describes how to compile a File Transfer Program.

Prerequisites

  1. The HCON program and messages must be installed and configured on your system.
  2. The specific computer language compiler the file transfer program was written in (Pascal, FORTRAN, or C) must be installed on your system.
    Note: Any and all HCON file transfers of API and HLLAPI programs, requiring any type of compilation, must have the -l iconv follow any of the following libraries the customer is compiling with:

Procedure

Procedures for compiling a file transfer program are outlined in the following sections.

Compiling a C Program

The following example illustrates how to compile a C program and link it with the file transfer library:

cc -o cname cname.c -l fxfer -l iconv

where cname is the C program executable code and cname.c is the actual C file transfer program. The C file transfer program is linked with the libfxfer.a library.

Compiling a FORTRAN Program

The following example illustrates how to compile a FORTRAN program and link it with the file transfer library:

xlf -v fname.f -o fname -l fxfer -l iconv

where fname.f is the name of the FORTRAN file transfer program and fname is the name of the FORTRAN executable program.

Compiling a Pascal Program

The following example illustrates how to compile a Pascal program and link it with the file transfer library:

xlp -v pname.pas -o pname -l fxfer -l iconv

where pname.pas is the Pascal file transfer program and pname is the Pascal executable code.


[ Previous | Next | Contents | Search ]