1. If It is a ODD number , gotta include leading zeros
2. if it is a EVEN number , gotta incluide trailing zeros,for zero - 00000
3. Lenght should be = 5
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Vaasuki,
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, but the job can be changed appropriately for other attributes.