I have an oracle table with a period in the name. How do I get the data into SAS? I have tried...
Libname testlib oracle user='xxxxx' password='xxxxx' path='xxxxx' show_synonyms=YES;
data table_without_period;
set testlib.table_name.with_period;
run;
And I have tried...
Libname testlib oracle user='xxxxx' password='xxxxx' path='xxxxx' show_synonyms=YES;
data table_without_period;
set testlib.'table_name.with_period'n;
run;
And I have tried...
Libname testlib oracle user='xxxxx' password='xxxxx' path='xxxxx' show_synonyms=YES;
data table_without_period;
set testlib.'table_name.with_period'n;
run;
What comes back?
Have you tried
proc sql;
connect using TESTLIB;
create table WANT as select * from connection to TESTLIB (
select * from table_name.with_period
);
quit;
And I have tried...
Libname testlib oracle user='xxxxx' password='xxxxx' path='xxxxx' show_synonyms=YES;
data table_without_period;
set testlib.'table_name.with_period'n;
run;
What comes back?
Have you tried
proc sql;
connect using TESTLIB;
create table WANT as select * from connection to TESTLIB (
select * from table_name.with_period
);
quit;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.