BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
hmadams
Calcite | Level 5

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;

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

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;

 

 

View solution in original post

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

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;

 

 

hmadams
Calcite | Level 5
This worked. Thank you!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 409 views
  • 0 likes
  • 2 in conversation