The tasks involved in adding custom functions to the Program Interpreter (PROGRUN) are as follows:
| 1 | Set up the C Function Definitions | Using the QA Build Program Editor, define the formula operators as C functions |
| 2 | Calling C formula operators from QA Build programs | Formula operators created as C functions may be invoked in the same way as the standard QA Build formula operators |
| 3 | Write C functions in a .C source file | Write a C function for each formula operator defined |
| 4 | Compile QA Build Programs | Compile the QA Build programs which use the new operators |
| 5 | Generate C Function Interface | Generate the C function interface using the QA Build Program Compiler. Accept the default settings. A file called QCFUNC.C will be generated |
| 6 | Compile all the source files | Use your C compiler to compile QCFUNC.C and the source files containing your C functions |
| 7 | Create .LNK file | Create a file called, for example FPROGRUN.LNK which consists
of this line: progrun qcfunc <your C modules> |
| 8 | Link the modules | Link using the batch file supplied with DP4: QABLINK FPROGRUN This will create an executable program called FPROGRUN, which contains the functionality of the original PROGRUN together with support for your functions |
| 9 | Run the generic progrun | Use the following command and specify the database and any
program FPROGRUN |