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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.