Delimiter //
/**
check if accounts ref is not null
**/
Drop Procedure if exists LOADER_RECLAIMS_NORMALIZE_ACCOUNT_REF_NOT_NULL //
Create Procedure LOADER_RECLAIMS_NORMALIZE_ACCOUNT_REF_NOT_NULL (
    In batchnum int
)
Begin
    Set @flagCountField='LOADER_RECLAIMS_ERRCOUNT';
    Set @flagMsgField='LOADER_RECLAIMS_ERRMSGS';
    Set @lastStatusField=null;
    Set @lastStatus=null;
    Set @checkedFieldName = 'ACCOUNTS_REF';

    CALL LOADER_CHECK_NULL (
        'LOADER_RECLAIMS'
        , @checkedFieldName
        , 'LOADER_RECLAIMS_BATCH_NUM'
        , batchnum
        , @flagCountField
        , @flagMsgField
        , @lastStatusField
        , @lastStatus
    );
End //
Delimiter ;