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

When I try to write a SAS dataset from SAS to Oracle I receive the error message:

 

ERROR: Error attempting to CREATE a DBMS table. ERROR: ORACLE execute error: ORA-00907: missing right parenthesis..

This might be due to the column names that I am trying to import.  Oddly there is no ‘(‘ in the column names. 

 

The list of column names is attached.

 

1 ACCEPTED SOLUTION

Accepted Solutions
kiranv_
Rhodochrosite | Level 12

try this one last time PRESERVE_COL_NAMES = Yes

View solution in original post

6 REPLIES 6
kiranv_
Rhodochrosite | Level 12

try options validvarname = any;

DavidPhillips2
Rhodochrosite | Level 12
Do use at the top of the script, like?
 
options validvarname = any;
libname ods oracle user=xxx password="xxxx"  path=ods1 schema=xxxx dbserver_max_bytes=1;
DavidPhillips2
Rhodochrosite | Level 12

Same error.  I think Oracle is more restrictive than SAS, looking into the restriction is tricky.

kiranv_
Rhodochrosite | Level 12

try this one last time PRESERVE_COL_NAMES = Yes

DavidPhillips2
Rhodochrosite | Level 12

The below worked:

 

proc sql;
create table ods.OPDS_IPEDS_MULTI_INST (PRESERVE_COL_NAMES = Yes) as
select * from yearsCombined;
quit;

 

Thanks for your help with this.  I having a hard time researching this one.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 6 replies
  • 5670 views
  • 1 like
  • 2 in conversation