I saw these examples in a DFSORT manual. Maybe it can work for you. Not sure?
Change ASCII to EBCDIC or EBCDIC to ASCII
A customer asked the following question: Can DFSORT be used to change a field from EBCDIC to ASCII?
Translation features of INREC, OUTREC and OUTFIL make it easy to:
• Change ASCII characters to their equivalent EBCDIC characters using the default standard TCP/IP service ASCII-to-EBCDIC table.
• Change EBCDIC characters to their equivalent ACSCII characters using the default standard TCP/IP service EBCDIC-to-ASCII table.
Here's how you could change EBCDIC characters to ASCII characters in a 100-byte character field starting at
position 51 and in a 40-byte character field starting in position 301, in an FB data set with an LRECL of 500:
Of course, you could change the case in the entire record as well. For example, here's how you could change
ASCII to EBCDIC in the records of an FB data set with an LRECL of 200:
And here's how you could change EBCDIC to ASCII in the records of a VB data set with any LRECL: