EXEC p_DropIdx 'IDX_CAS_APB_FORG', 'T_CAS_AGENTPAYBILL';
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_BJ_BOOKDATE') CREATE INDEX IDX_CAS_BJ_BOOKDATE ON T_CAS_BANKJOURNAL  ( FBOOKDATE,FORGID,FBANKACCTID );
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_APB_FBIZDATE') CREATE INDEX IDX_CAS_APB_FBIZDATE ON T_CAS_AGENTPAYBILL   ( FBIZDATE,FORGID,FBILLSTATUS);
