DataFlux Data Management Studio 2.6: User Guide

Reading Named Ranges in an Excel Spreadsheet

Overview

You can use an ODBC DSN connection to read named ranges in an Excel spreadsheet. You can then use that Excel data like any other data source in DataFlux Data Management Studio. For example, you could use the Excel data in a data job, as shown in the next display.

The first node is a Data Source node that specifies the DSN for an Excel spreadsheet; the named range that you want to read; and the output columns. The second node is an HTML Report output node that will display the specified output in a web page.

In order to create a job similar to the one shown above, you must create an ODBC DSN for the Excel spreadsheet. See Adding ODBC Connections for Excel.

Note Note: You cannot use a DSN to write output to Excel format. You can, however, use a Text File Output node in a data job to write output in CSV format. You can then import the CSV file into Excel.

Read a Named Range from an Excel Spreadsheet

If you have created an ODBC DSN for the Excel spreadsheet, then you can perform the following steps to create a job that reads a named range in the spreadsheet. It is assumed that you are familiar with creating and running data jobs. For more information about data jobs, see Maintaining Data Jobs.

  1. Create an empty data job.
  2. In the Nodes tree on the left, expand the Data Inputs folder and drag a Data Source node into the job editor on the right.
  3. Expand the Outputs folder and drag an HTML Report node after the Data Source node in the job editor.
  4. Connect the Data Source node to the HTML Output node.
  5. Right-click the Data Source node and select Properties.
  6. Specify a descriptive name for the node.
  7. Use the ellipsis button in the Input table field to select the DSN for the Excel spreadsheet.
  8. Expand the DSN and select the desired named range.
  9. Specify the desired output columns. At this point the properties window for the Data Source node might look similar to the following display.


  10. Right-click the HTML Reports node in the job editor and select Properties.
  11. Specify a name for the report that will list the contents of the named range.
  12. Specify a title for the report.
  13. Specify a path to an HTML file for the report.
  14. Select output columns for the report. At this point, the properties dialog for the HTML Reports node might look similar to the next display.



  15. Click OK to save your changes.
  16. Run the job.
  17. A report will display the output that you specified. The next display shows an example report.



Documentation Feedback: yourturn@sas.com
Note: Always include the Doc ID when providing documentation feedback.

Doc ID: dfDMStd_Task_excel_read.html