In reply to Scott Bass.

Hi Scott, thank you for the clarification. My understanding is that your macro %attrib is supposed to generate ATTRIB statements for all the variables for a dataset passed to it as a parameter. This can be useful when creating SAS data templates from scratch or modifying an existing data template. However, the %attrib macro invokes another macro %parmv which is not defined at the link you provided. Could you please also provide a link to it?