Looks like a test question and you didn't provide the question that is being asked. It also looks like your ANS may be truncated.
I suspect the question was something like how to print variables in a stated order, but without that detail it is hard to answer your possible request.
If Ans is supposed to be a Var statement for Proc print it is incomplete and the presence of a comma makes me somewhat suspicious as well.