用data和proc怎么写出这个,不用sql

img


用data和proc怎么写出这个,不用sql
知道是先对年龄生成两个分层级变量,在用proc freq和means,但不知道怎么写