# Synopsis

PDX_MSGT gdx_UserAttributeCreate(long option, char *attribute_name, GDX_USER_ATTRIBUTE_UNION field_values[], MDA_PTR orig_db_ptr, int gdx_model, MDA_PTR *gdx_user_attribute_ptr)

# Purpose

Create user attribute.

# Description

If the specified user attribute name is defined, create a user attribute with the specified values.

# Input

## option

Not used

## attribute_name

Name of defined user attribute

## field_values

Array of values corresponding to the specified user attribute

## orig_db_ptr

Original database pointer or MDA_NULL_PTR

## gdx_model

GDX model to create user attribute in

# Output

## gdx_user_attribute_ptr

Database pointer of created user attribute

# Return

          GDX_NOERR
          GDX_USER_ATTRIBUTE_NOT_DEFINED
          .fi