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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 759 views
  • 0 likes
  • 2 in conversation