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.
try this one last time PRESERVE_COL_NAMES = Yes
try options validvarname = any;
ya. try that
Same error. I think Oracle is more restrictive than SAS, looking into the restriction is tricky.
try this one last time PRESERVE_COL_NAMES = Yes
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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.