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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 6 replies
  • 3677 views
  • 1 like
  • 2 in conversation