Hi enrico-sorichetti, I posted both questions, But, they r not same. This one, I am asking how to convert binary to decimal in a Cobol program for display purposes. The other one is a DFsort/ICEtool question about how I can sort by binary flds and mainly to count #of records for each fld1/fld2 combinations. Totally different questions. Solution by Robert sample wrked here and I havent gotten any solution for the other one yet. Meanwhile I had to write a quick cobol pgm that counts records for each fld1/fld2 combination and spits them to a report.