Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Where did your text format files originate? If they came from an ASCII platform (inix, nt, etc) and contain only text (no binary fields), you do not need to convert them inside your code.
When the file is transmitted from the source to the target (mainframe, i hope?) the ASCII to EBCDIC translation is automatic (as long as you do not use binary transfer). Most often these transfers are done via FTP and all of the FTP products i've seen support this.