Search notes:

SAS programming, function dequote

Remove quotes from a string.
%macro tq84_dequote(param);

  %put param = &param;
  %put dequote(param) = %sysfunc(dequote(&param));

%mend tq84_dequote;

%tq84_dequote(foo) /*
param = foo
dequote(param) = foo */

%tq84_dequote(foo''bar) /*
param = foo''bar
dequote(param) = foo''bar */

%tq84_dequote("hello world") /*
param = "hello world"
dequote(param) = hello world */
Github repository about-SAS, path: /programming/functions/dequote.sas

See also

functions

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...', 1759408244, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/functions/dequote(58): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78