我有一个名为ENC的表:
PAYS | Header |CD2 |VAL1|VAL2| COEF
------ | ------ |-----|----|----|-----
BRE | MATLAB | 11 |. |500 |-0,9561
BRE | MATLAB | 11 |500 |. |0
BRE | MATLAB | 2 |. |550 |-1,2212
BRE | MATLAB | 2 |550 |. |0
我想使用以下代码创建SAS格式:
data WORK.FMT_ENC(keep=START END FMTNAME LABEL);
length FMTNAME $32;
retain FMTNAME ;
set ENC (rename=(VAL1=start VAL2=end COEF=label)) end=eof;
FMTNAME = lowcase(compress('$' !! PAYS !! Header !! put(CD2,2.)!!'_flgperso'));
/*retain fmtname "test" type "C";*/
output;
if eof then
do;
hlo = "O";
label = "Autre";
output;
end;
run;
proc format library=WORK cntlin=WORK.FMT_ENC;
run;
我收到此错误:
ERROR: Cannot mix missing and nonmissing values in the same range: .-500.
你能帮助我吗?
缺失值是最低或最大值。
感谢