EXEC P_ALTERPK 'PK_FMM_PERSCGENTRY', 'T_FMM_PERSCGENTRY', 'FENTRYID', '1';
 
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PERSCGENTRY_FBAS') CREATE INDEX IDX_FMM_PERSCGENTRY_FBAS ON T_FMM_PERSCGENTRY (FID,FSEQ);