flat file validation

My flat file schema requires validations with code list validator and length validator. Is there any way to use two validators for a single field at a time?

I’m confused. If a field has a code list, then why would you need a length validator?

Regret for lack of clarity.

Expected valid codes for a single field are AB,0AB,00AB; So code validator will also check length and length validator is not required.Am I correct?

One more question is can a field(let us say field1) be defined as required/mandatory if field2,field7 are defined in record?

Validator will check for a value in the list and that’s it. It doesn’t need to check for anything else. If the value is not in the list, it is not valid. If it is in the list, it is valid.