*ALWAYS* get the separator characters from the ISA element. The ISA element consist of all fixed width fields (105 bytes). It is the only element that way. Therefore, your field sep would be in character 3 (0-based), element sep is character 105 and component sep is character 104.