Search notes:

SAS programming: single quotes and double quotes

%put it''s rainy!; /* it''s rainy! */
/* NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.  Inserting white space 
                between a quoted string and the succeeding identifier is recommended. */


%put it%str('')s rainy!; /* it''s rainy! */

%let weather = it''s rainy;
%put weather: &weather; /* weather: it''s rainy */

data _null_;
  put 'It''s rainy'         ; /* It's rainy         */
  put "It's sunny"          ; /* It's sunny         */
  put "He said ""she said"""; /* He said "she said" */
  put 'She said "he said"'  ; /* She said "he said" */
run;
Github repository about-SAS, path: /programming/single-quotes_double-quotes.sas

See also

SAS programming: character strings
SAS Programming Language

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Companie...', 1758207814, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/single-quotes_double-quotes(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78