Search notes:

SAS functions: cat / cats / catt / catx

data _null_;

  val_1 = 'space-right ';
  val_2 = 'no-space';
  val_3 = ' space-left';
  val_4 = ' space-both ';
  val_5 = '<';

  sep   = '/';

  /* remove no spaces:                                     */ cat__ = cat (     val_1, val_2, val_3, val_4, val_5); 
  /* remove leading and trailing spaces:                   */ cats_ = cats(     val_1, val_2, val_3, val_4, val_5); 
  /* remove traling spaces only:                           */ catt_ = catt(     val_1, val_2, val_3, val_4, val_5); 
  /* insert seperator, remove leading and traling spacces: */ catx_ = catx(sep, val_1, val_2, val_3, val_4, val_5); 

  put cat__; /* space-right no-space space-left space-both < */
  put cats_; /* space-rightno-spacespace-leftspace-both<     */
  put catt_; /* space-rightno-space space-left space-both<   */
  put catx_; /* space-right/no-space/space-left/space-both/< */

run;
Github repository about-SAS, path: /programming/functions/cat-cats-catt-catx.sas

See also

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