You can change ASCII to EBCDIC in a file using ATOE function. Also EBCDIC to ASCII conversion can be done…