LOAD DATASET

Loads a DataSet that has been stored as an XML file and provides addressability to the corresponding ADO.NET DataSet.

Syntax:

>>--EXEC ADO---.--------------------.---LOAD DATASET FROM ----------->
               +-USING dataset_name-+

 >--xml_file_spec--.-------------------.--.----------------------.--->
                   +-WITH SCHEMA CHECK-+  +-RETURNING :ds_obj_hv-+

 
 >--END-EXEC----><

Parameters:

dataset_name The DataSet reference to be used. If you do not specify dataset_name, the current DataSet is used.
xml_file_spec Location of the XML file that contains the DataSet’s schema and data.
WITH SCHEMA CHECK Verifies that the DECLARE DATASET used at compile time matches the one stored in the XML file.
ds_obj_hv Host variable where the DataSet object is placed.

Example:

     EXEC ADO 
        LOAD DATASET FROM "c:\work\adotests\net_order_status.xml" 
     END-EXEC