Just needed one more suggestion.
Orignally as per my requirement the date starts from 70th position. From 1 to 69 there are some other fields and after date field some other fields are present. Total file size is 1000.
001 ROHIT SINGHAI 1/1/1962 NEWYORK
002 NITESH JHA 21/1/2003 INDIA
I modified the sort card suggested by you as follows:
You are provided with a solution that specifically caters to what you described in your first post, and now you show a completely different input and you hope that it works? Please outline your complete requirement instead of giving me bits and pieces of information. I can't keep on working on your problems every time you change the input/rules.
And for the record with your new input it is reading the first 2 bytes of the sequence number in your input for the month. Search for ABSPOS in the DFSORT application programming guide and see how you can implement it into your control cards.