(d)where such a fund has not been established or where such a fund has been established but he has been contributing thereto for less than the whole of his service, grant him a gratuity or purchase or arrange for an annuity for him on his retirement.