Dear SASian,
I want to incorporate below query in SAS but I am getting syntax error due to oracle functions (get_xml) am using , can any one please guide how to overcome this.
proc sql;
create table record_3033 as
select owner, table_name,
to_number(extractvalue(xmltype(dbms_xmlgen.getxml('select /*+ parallel('||table_name||',10) */ count(*) c from '||owner||'.'||table_name||' where '||owner||'.'||table_name||'.glb_oe_id = 777')),'/ROWSET/ROW/C'))
AS COUNT
from db.all_tables
where owner = 'DWHDWH' and table_name in (select distinct dwh_tbl_nm from db.etl_cntrl_tbl ) order by table_name;
quit;
The key to this is "oracle function in SAS".
No software fully support another vendors software. If you you are using SAS, use SAS functions.
To use Oracle functions, use Oracle. From SAS this can be done using SQL explicit pass through.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.