今回は「引用符で囲んだ文字列が262バイトを超えているか、または引用符が足りません。」
と警告文が出た時の対処法について解説していきます。
結論:options noquotelenmax;
data data1;
id1="111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
output;
run;
![](https://how-to-business.com/wp-content/uploads/2023/05/ab69681c3c38d1ea2399469b16fb5b98-1024x132.png)
![](https://how-to-business.com/wp-content/uploads/2023/05/d0ad800e0b5b05223ead5e8dc324fdd2-1024x124.png)
- ダブルクォーテーション内の「1111・・・」が長すぎるため、警告文が出ている。
- ERRORやWARNINGではないものの、バグの手がかりになることも、、、
options noquotelenmax;
data data1;
id1="111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
output;
run;
![](https://how-to-business.com/wp-content/uploads/2023/05/noquotelenmax_1-1024x136.png)
- options noquotelenmax;により、文字列が長すぎても警告文は出なくなる。
options quotelenmax;
data data1;
id1="111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
output;
run;
![](https://how-to-business.com/wp-content/uploads/2023/05/quotelenmax_1-1024x156.png)
- options quotelenmax;により、文字列が長すぎる警告文が再び出るようになる。