I don't think there's an easy way, I think you need to write a macro to do it. Here's an example of bootstrap or Jackknife and your request would be very similar:
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!