as you're importing a text file, you can create an Import Specification, set the field type there and reference that in your TransferText macro / script.
The only way I know to create one is to manually start an import of a text file, then hit the Advanced button, configure your import fields...