IBM Books

Application Building Guide


Chapter 6. Building HP-UX Applications

  • HP-UX C
  • DB2 API Applications
  • DB2 CLI Applications
  • DB2 CLI Stored Procedures
  • Embedded SQL Applications
  • Embedded SQL Stored Procedures
  • User-Defined Functions (UDFs)
  • Multi-threaded Applications
  • HP-UX C++
  • DB2 API Applications
  • Embedded SQL Applications
  • Embedded SQL Stored Procedures
  • User-Defined Functions (UDFs)
  • Multi-threaded Applications
  • Micro Focus COBOL
  • Using the Compiler
  • DB2 API Applications
  • Embedded SQL Applications
  • Embedded SQL Stored Procedures
  • Exiting the Stored Procedure
  • HP Fortran/9000 and HP-UX F77
  • DB2 API Applications
  • Embedded SQL Applications
  • Embedded SQL Stored Procedures
  • This chapter provides detailed information for building embedded SQL applications on HP-UX. In the script files, commands that begin with db2 are Command Line Processor (CLP) commands. Refer to the Command Reference if you need more information about CLP commands.

    For the latest DB2 application development updates for HP-UX, visit the Web page at:

      
    
    http://www.software.ibm.com/data/db2/udb/ad
     
    

    Notes:

    1. You may get a warning similar to the following when compiling programs on HP-UX:
         (Warning) At least one PA 2.0 object file (<filename>.o) was detected.
         The linked object may not run on a PA 1.x system.
      
      where <filename> is the program file you are compiling.

      Unless you have a PA_RISC 1.x system, this warning does not apply. You may add the option +DAportable to both the compile and link steps. This option will generate code compatible across PA_RISC 1.x and 2.0 workstations, and will suppress the warning. However, the use of this option has negative performance implications, and therefore, has not been included in the script files in this chapter.

    2. If you are migrating DB2 from HP-UX Version 10 or earlier to HP-UX Version 11, your DB2 programs must be re-precompiled with DB2 on HP-UX Version 11 (if they include embedded SQL), and must be re-compiled. This includes all DB2 applications, stored procedures, user-defined functions and user exit programs. As well, DB2 programs that are compiled on HP-UX Version 11 may not run on HP-UX Version 10 or earlier. DB2 programs that are compiled and run on HP-UX Version 10 may connect remotely to HP-UX Version 11 servers.


    [ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

    [ DB2 List of Books | Search the DB2 Books ]