Search notes:

SAS statements: select

data tq84_data;
  
  length rom $5;

  do num = 1 to 5;

     select (num); /* Note the semicolon ! */
       when (  1) rom = 'I'  ;
       when (  2) rom = 'II' ;
       when (  3) rom = 'III';
       when (  4) rom = 'IV' ;
       when (  5) rom = 'V'  ;
     end;
     output;
     
  end;

run;

proc print data=tq84_data;
run;
Github repository about-SAS, path: /programming/statements/select/when.sas

See also

SAS statements

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