Import blob through SAS from ORACLE DB

前端 未结 3 1318
时光说笑
时光说笑 2021-01-24 04:34

Good time of a day to everyone. I face with a huge problem during my work on previous week. Here ia the deal:

I need to download exel file (blob) from ORACLE database t

3条回答
  •  清酒与你
    2021-01-24 04:50

    PROC SQL uses SQL to interact with SAS datasets (create tables, query tables, aggregate data, connect externally, etc.). The procedure mostly follows the ANSI standard with a few SAS specific extensions. Each RDMS extends ANSI including Oracle with its XML handling such as saving content in a blob column. Possibly, SAS cannot properly read the Oracle-specific (non-ANSI) binary large object type. Typically SAS processes string, numeric, datetime, and few other types.

    As an alternative, consider saving XML content from Oracle externally as an .xml file and use SAS's XML engine to read content into SAS dataset:

    ** STORING XML CONTENT; 
    libname tempdata xml 'C:\Path\To\XML\File.xml';
    
    ** APPEND CONTENT TO SAS DATASET;
    data Work.XMLData;
       set tempdata.NodeName;        /* CHANGE TO REPEAT PARENT NODE OF XML. */
    run;
    

提交回复
热议问题