BookmarkSubscribeRSS Feed
alepage
Barite | Level 11
%macro test (owner,database,schema,tablename);

proc sql;
connect to oracle (AUTHDOMAIN=ORACLE_&OWNER._&database. PATH=&database. readbuff=1000);
execute(
DECLARE
tbl_count number;
string varchar2(100) :='test &tablename.'
DBMS_OUTPUT.PUT_LINE(string); 
) BY ORACLE;
DISCONNECT FROM ORACLE;
quit;

%mend test;
%test(&owner., &Database.,&schema.,&TblName2.);
1 REPLY 1

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1228 views
  • 0 likes
  • 2 in conversation