今回は「引用符で囲んだ文字列が262バイトを超えているか、または引用符が足りません。」
と警告文が出た時の対処法について解説していきます。
結論:options noquotelenmax;
data data1;
id1="111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
output;
run;


- ダブルクォーテーション内の「1111・・・」が長すぎるため、警告文が出ている。
- ERRORやWARNINGではないものの、バグの手がかりになることも、、、
options noquotelenmax;
data data1;
id1="111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
output;
run;

- options noquotelenmax;により、文字列が長すぎても警告文は出なくなる。
options quotelenmax;
data data1;
id1="111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
output;
run;

- options quotelenmax;により、文字列が長すぎる警告文が再び出るようになる。