SAS Format

A procedure for defining foramts and informats.


Usage

To define a custom format, try:

proc format;
    value NUM_f 1="One"
                2="Two";
    value $STR_f "1"="One"
                 "2"="Two";
run;

By convention, formats are usually named after the variable with a _f postfix. Note that formats have strict restrictions on names; they cannot end in a number.

InValue

To define an informat, use the INVALUE statement.


CategoryRicottone

SAS/Format (last edited 2023-03-30 20:22:36 by DominicRicottone)