Using PROC CONTENTS and a Macro to Convert Internal Data Values to their Associated Format Values

From sasCommunity
Jump to: navigation, search

by Mary F. O. Rosenbloom

ABSTRACT

Working with formatted data can be cumbersome and error-prone. Presented here is a method for using PROC CONTENTS and a macro to generate data-driven code that can be used to effectively convert the numeric internal data values to the character values dictated by the associated format.

Online Materials

This paper was presented at the Western Users of SAS Software (WUSS) 2011 Conference in San Francisco, California.

This is an example of using a control file to generate macro code. I look forward to your comments!