int MGOsetpac (Validation *val)
The MGOsetpac() function generates a pac for a validation id. Information is passed through val. The required and optional fields are:
val.validid is the validation id. val.source_code is the validation source reference code. val.pac is the pac. If specified as "*", or not specified, a 6-digit pac will automatically be generated.
Note: Upon successful return, the val.pac field will be set to the resultant pac value.
Returns 1 upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).
wmango