your giving code is working fine i am getting total amount in the output file
but the total i am geeting in the 4th position in the out put file, i want the amount field to start in 73 coloumn, how can we do this, you have any solution for this.
You can use a DFSORT job like the following to do what you asked for. I assumed your input file has RECFM=FB and LRECL=80 and that's what you want for the output file as well, but the job can be changed appropriately for other attributes. I also assumed you wanted a 5-byte total with leading zeros, but that can be changed if appropriate as well.