Any one know how I can execute an AS400 DB2 CL command from an external program that is not running on the AS400? Is it possible to do it using ODBC, ADO, or JDBC? If not, is it possible to wrap the CL command in an AS400 stored procedure?
For example: CLRPFM FILE(ADMSEARCH/ADDRKEYTMP) ;
This command is equivelent to an sql bulk delete statement without the transaction logging, so it is very fast.
Another useful CL command:
CPYF FROMFILE(ADMSEARCH/NAMEKEYTMP) TOFILE(ADMSEARCH/NAMEKEY) MBROPT(*ADD) ;
This is instead of an sql bulk insert into statement without the transaction logging.
For example: CLRPFM FILE(ADMSEARCH/ADDRKEYTMP) ;
This command is equivelent to an sql bulk delete statement without the transaction logging, so it is very fast.
Another useful CL command:
CPYF FROMFILE(ADMSEARCH/NAMEKEYTMP) TOFILE(ADMSEARCH/NAMEKEY) MBROPT(*ADD) ;
This is instead of an sql bulk insert into statement without the transaction logging.