Hi Prasad,
Gianni's solution is the more efficient solution if the fields are of constant length. You can even make it more efficient in this case by defining the field as follows:
05 whole-date.
10 f pic x(003).
10 yrs pic 9(002).
10 f pic x(006).
10 mos pic 9(002).
10 f pic x(004).
10 days pic 9(002).
Then move yrs, mos, days to a numeric fld or leave them where they are since the field is defined as numeric.
But the more usual case is that the field will be variable, e.g.:
19yrs20months44days
6yrs7months121days
19yrs6months3days
etc.
In this case UNSTRING is one of the preferred solutions.
Jack