Compiling the AFTP Application

This section describes procedures for developing and compiling an application for the AFTP API on Microsoft® Windows NT® or Microsoft® Windows® 95, MVS, and VM.

    To develop an application that uses the AFTP API on Windows NT or Windows 95
  1. Include the AFTPFTP.H header file in your source modules. For consistency with the file naming conventions on other platforms, you can rename this header file to AFTPAPI.H and use this file name for your AFTP include file.
  2. Define CM_WINNT when you compile your source code.
    To develop an application that uses the AFTP API on MVS

Note This process assumes that all AFTP program files have been successfully installed with the JCL provided for installing AFTP.

  1. Include the APPFFTP.H header file in your source modules.
  2. Define CM_MVS when you compile your source code.
  3. Edit the APPFAPIJ JCL file and make the changes indicated in the prolog comments at the top of the file.
  4. Submit the APPFAPIJ JCL.
    To access the AFTP API calls from your application using VM
  1. Include the APPFFTP.H header file in your source modules.
  2. Define CM_VM when you compile your source code.
  3. Add APPFAPIL TXTLIB to your GLOBAL TXTLIB statement. All textdecks are packaged into this textlib.