Removing formats

Formats are useful for labeling output. However, they can be bothersome when a programmer is debugging a recode. Rather than seeing the 'new' variable value and the 'input' variable values such as:

   Recode    Variable 1           Variable 6           Variable 9
      3          1                    1                    1
      2          1                    2                    4
With formats 'turned on' the results of a PROC PRINT will look like this:
   Recode    Variable 1           Variable 6           Variable 9
      3      very much agrees     very much agrees     Catholic       
      2      very much agrees     agrees               Methodist

If you want to get rid of labels for selected variables:

FORMATS VAR1 VAR6 VAR9;
PROC PRINT;
   VAR1 VAR6 VAR9;

If you want to get rid of the tags for all variables:

FORMATS _ ALL _;
PROC FREQ;

If you want to save a version of the data that has no labels (formats):

LIB NEWNAME;
    SET OLDNAME;
FORMATS _ ALL _;

The file newname.ssd01 will not have formats, oldname.ssd01 will.



W A R N I N G

If you are reading this, it may be that you are using rather old web browsing software that does not support modern international Web technology standards. For a better experience of the Web and this site in particular, please upgrade your web browser software today. The following are good choices: Firefox 2; Opera 9; Safari 3.