Additional Features

When you create list reports, you can use several other features to enhance your procedure output. For example, you can
  • control where text strings split in labels by using the SPLIT= option.
    proc print data=reps split='*'; 
       var salesrep type unitsold net commission; 
       label salesrep='Sales*Representative'; 
    run;
    
  • create your own formats, which are particularly useful for formatting character values.
    proc format; 
       value $repfmt 
              'TFB'='Bynum' 
              'MDC'='Crowley' 
              'WKK'='King'; 
    run;
    proc print data=vcrsales; 
       var salesrep type unitsold; 
       format salesrep $repfmt.; 
    run;
    
    You can learn more about user-defined formats in Creating and Applying User-Defined Formats .

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.