Hi All
I am brand new to this SAS thing. I have a question about making Formats. I have tried make a Format from a explaining, but in this Format I also like to have a "Other=" entry to mark all values outside the defined range, but I do not know how to do. This is the code; but all values go to "???" and not just the number 3 as I expected.
data t1;
input key name $;
cards;
1 A
2 B
; run;
data t2 (drop=key name);
set t1;
fmtname='fmt';
start=key;
label=name;
run;
proc format cntlin=t2;
value fmt other='???';
run;
data y;
a=3; b=2; c=1;
put a a fmt.;
put b b fmt.;
put c c fmt.;
run;
any help? or are there another post desribing how to do?
Peter Schwennesen
... View more