Enables you to specify a character informat at run time.
Category: | Special |
proc format; value typefmt 1='$groupx' 2='$groupy' 3='$groupz'; invalue $groupx 'positive'='agree' 'negative'='disagree' 'neutral'='notsure'; invalue $groupy 'positive'='accept' 'negative'='reject' 'neutral'='possible'; invalue $groupz 'positive'='pass' 'negative'='fail' 'neutral'='retest'; run; data answers; input type response $; respinformat = put(type, typefmt.); word = inputc(response, respinformat); datalines; 1 positive 1 negative 1 neutral 2 positive 2 negative 2 neutral 3 positive 3 negative 3 neutral ;