File conversion problem

To convert file epcdic to ascill format,i am using below code.Getting some junk characters in output file.not sure what the issue is.Please correct if below command is wrong.

DD conv=ascii if=filename of =output_filename.

Yes, that is correct to convert ebcdic -> ascii.

Be aware that there are so-called "slightly different" translations for ebcdic. For example if you are going from/to FreeBSD that maybe a consideration. Some dd implementations support ibm, ibmb, edcdicb, asciib -- for example. Read your dd man page in the conv section.

The linux version of dd in particular only does very basic translation, the iconv utility may work better.