04-03-2013 11:17 AM
OK, now here's a harder question. How do you do it in a PROC step? For example, if T is character, it should be printed without a format. But if T is numeric it should be printed in the TIME5 format. Hint: macro language is not needed. All of the necessary code can be hard-coded within the PROC step. If nobody gets the answer, I'll post it tonight.
04-03-2013 11:38 AM
It means for all the variables between t and t that are numeric associate format time5. If there are none when t is character nothing happens.
04-03-2013 12:20 PM
Just to make it more complete we can also format the character name range T, that may or may not exist. The "SAS Variable List" is one of the most powerfull parts of the SAS language.