On the Linux platform, the Apply Engine can be invoked from the command line, a shell script or using the Engine Controller Daemon as illustrated in the following examples.
Examples
- The following command line text invokes the Engine using the Parsed script named DB2TOHDFS.prc. The Runtime report is to be written to the file named DB2TOHDFS.rpt.
sqdata DB2TOHDFS.prc > DB2TOHDFS.rpt
- The following shell script invokes the Engine using the compiled script file named DB2TOHDFS.prc. The Runtime report is to be written to the file named DB2TOHDFS.rpt.
#!/bin/sh
sqdata DB2TOHDFS.prc > DB2TOHDFS.rpt
- The Apply Engine can also be started using the sqdmon utility and the previously configured Apply Engine controller daemon. Once again the command can be executed from the command line or using a simple Shell script.
sqdmon START DB2TOHDFS
Note: Because the Apply Engine controller daemon was configured to listen on the default TCP/IP port 2626 it is unnecessary to specify the port when running sqdmon. If another port number was used the --service=<port> or -s <port> would be included in the command.