Thanks for the info (DBI looks useful). I actually misspoke in my original post. The data that I am using is fixed-width, so substr is the way to go. Sorry for the confusion. I am a first time poster here. Next time I will be more precise with my language.