Search notes:

SAS: proc SQL - execute by

The following example uses pass through to create an Oracle table with data types that are Oracle specific:
%let ora_user     = rene;
%let ora_password = secret_garden;
%let ora_server   = ora.test.renenyffenegger.ch;

proc sql;

  connect to oracle as tq84_ora (
    user     = &ora_user
    password = &ora_password
    path     = &ora_server
  );

  /*
      SQL pass through:
         execute (stmt) by 
      stmt is passed to the DBMS/Oracle exactly as stated.
      It should be used for any dynamic non DML statement.
  
  */
  execute (
    create table tq84_execute (
      id     number        primary key,
      col_1  varchar2 (10) not null   ,
      col_2  timestamp( 5)            ,
      col_3  number   ( 4) not null   ,
      col_4  clob
    )
  ) by tq84_ora;

quit;
Github repository about-SAS, path: /programming/proc/sql/execute-by/oracle.sas

See also

proc sql

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