cinit=ALLTRIM(gcinit) cDB=ALLTRIM(cdb) cMainkey=ALLTRIM(cMainkey) cfunction=gettable("UpdatePdmLog") cType=ALLTRIM(cType) cOldLinekey=ALLTRIM(cOldLinekey) cNewLineKey=ALLTRIM(cNewLineKey) cData=ALLTRIM(cData) cStatus1=ALLTRIM(cStatus1) cStatus2=ALLTRIM(cStatus2) cAdmStatus=ALLTRIM(cAdmStatus) cAdmStatu2=ALLTRIM(cAdmStatu2) cAdmCode=ALLTRIM(cAdmCode) lcSQL="{Call "+cfunction+"(?cinit,?cDB,?cType,?cMainkey,?cOldLinekey,?cNewLineKey,?cData,?cStatus1,?cStatus2,?cAdmStatus,?cAdmStatu2,?cAdmCode,?nRec)}" nerror=SQLEXEC(gnconnectionhandle,lcsql)This shows how to use bind variables which of course has performance advantages.