South Africa set 235 run target for Pakistan