DB2 10.5 for Linux, UNIX, and Windows

Host variables in COBOL

Host variables are COBOL language variables that are referenced within SQL statements. Host variables allow an application to exchange data with the database manager.

After the application is precompiled, host variables are used by the compiler as any other COBOL variable. Follow the rules described in the following sections when naming, declaring, and using host variables.