constraint_check function

Converting the column name to the column number of the dataset.