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

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 5357 views
  • 1 like
  • 2 in conversation