Search notes:

SAS programming, function quote

The length of the returned string (as determined by lengthc) is 200 unless previously set.
data _null_;
   q1 = quote('foo"bar');
   put q1=;                /* q1="foo""bar" */
   l1 = lengthc(q1);
   put l1=;                /* l1=200        */
   length q2 $42.;
   q2 = quote("O'Brian");
   put q2=;                /* q2="O'Brian"  */
   l2 = lengthc(q2);
   put l2=;                /* l2=42         */
run;
Github repository about-SAS, path: /programming/functions/quote.sas

See also

functions

Index