gtpa3m0a | Application Requester User's Guide |
With TPFAR, SQL commands can now be included in a TPF application program that is coded in assembler or C language. The SQL commands are removed from the application at the DB2 precompile time, then they are assembled or compiled and replaced with system calls. (DB2 precompiler is a prerequisite for TPFAR). Additional information on the DB2 precompiler is found in Preparing an Application and Using the Same Cursor in Multiple Programs. At application execution time, the TPFAR code takes over when a system call is made and routes the request to the application server (DB2).
When DB2 has processed the request, the data is passed back to TPFAR, which places the data in the TPF application's host variables. (The formats of the data are determined by the host variables that are defined by the application). The application then regains control to continue processing.