SYNOPSIS

int MGOseldsubscription (Subscription **lst, Subscription **sub)

DESCRIPTION

The MGOseldsubscription() function selects default subscription records. Information is passed through sub and returned through the linked list lst. The selection criteria fields are:

sub.source_code is the validation source reference code. sub.subscription_code is the subscription reference code. sub.category_code is the category reference code. sub.status_code is the validation status reference code. Any of the fields can be specified alone or in any combination to select multiple records. The following fields are set for each selected default subscription:

RETURN VALUE

Returns the number of records selected upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).

ERRORS

AUTHENTICATION LEVEL

none

SEE ALSO

MGOdeldsubscription(), MGOfreesubscription(), MGOinsdsubscription(), MGOselrcategory(), MGOselrsubscription(), MGOselrvalsource(), MGOselrvalstatus(), MGOupddsubscription(), MGOzero()