私が持っているリストに基づいて変数の長さを変更しようとしていますが、コードは機能しているようですが、目的の出力が得られません。ここでのコードは次のとおりです。長さステートメントでのSASマクロコードエラー
%macro LEN();
Proc sql ;
select count(name) into: varnum from variab;
select name into: varname1-:varname%trim(%left(&varnum)) from Variab;
select length3 into: len from Length;
Quit;
%do i=1 %to &varnum;
data Zero;
length &&varname&i $ &&len&i.;
set desti.test;
length _numeric_ 4.;
format _numeric_ 12.2;
run;
%end;
%mend;
それは警告
WARNING: Multiple lengths were specified for the variable fscadl1 by
input data set(s). This can cause truncation
of data.
を与え、それが変数の長さを変更doesntの。このコードで何が間違っていますか?
希望の出力は何ですか?簡単な入出力データを投稿できますか? – Tom