1. Trang chủ
  2. » Công Nghệ Thông Tin

SAS Data Integration Studio 3.3- P28 docx

5 174 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 788,25 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Define the Columns for the External File MetadataFollow these steps to create column definitions for the external file: 1 Click Refresh to view the data from employeeFlatFile.csv on the F

Trang 1

Set Delimiters and Parameters Follow these steps to set delimiters and parameters for the external file:

1 Deselect the Blank check box in the Delimiters group box Then, select the Commacheck box, as shown in the following display This step is necessary because

the Blank check box is selected by default However, the employeeFlatFile.csv file

is comma-delimited This change ensures that the wizard parameters match the incoming data

Display 8.9 Delimiters and Parameters Window

2 Accept the remaining defaults and click Next The Column Definitions window

displays

Trang 2

Define the Columns for the External File Metadata

Follow these steps to create column definitions for the external file:

1 Click Refresh to view the data from employeeFlatFile.csv on the File tab in the

view pane at the bottom of the window, as shown in the following display

Display 8.10 Delimited Data in the Column Definitions Window

Trang 3

Columns Definitions window To begin, click Auto Fill The Auto Fill Columns

window displays, as shown in the following display

Display 8.11 Auto Fill Columns Window

3 Change the value that was entered in the Start record field in the Guessing recordsgroup box to 2 This setting ensures that the guessing algorithm begins

with the second data record in the external file The first data record in the file is unique because it holds the column names for the file Thus, all data that it contains uses the character data type The other rows in the file begin with a character-based name, but the remaining values are numeric Therefore, excluding the first data from the guessing process yields more accurate preliminary data

4 Accept all of the remaining default settings Then, click OK to return to the

Column Definitions window

Trang 4

5 Use the Import function to simplify the task of entering column names After you

use the Auto Fill function to fill in the preliminary data, click Import The Import

Column Definitions window displays, as shown below

Display 8.12 Import Column Definitions Window

6 Select the Get the column names from column headings in this file radio button and keep the default settings for the fields underneath it Click OK to save

the settings and return to the Column Definitions window The names from the

first record in the external file are populated in the Name column You now can edit

them as needed The preliminary metadata is shown in the following display

Note: If you use the get column names from column headings function, the

value in the Starting record field on the Data tab in the view pane in the

Column Definitions window is automatically changed The new value is 1 greater

than the value in the The column headings are in file record field in the

Import Column Definitions window 4

Trang 5

The columns component at the top of the window is populated with preliminary metadata

7 The preliminary metadata that is populated into the columns component typically includes column names and descriptions that are too generic to be useful for SAS Data Integration Studio jobs Fortunately, you can modify the columns component

by clicking in the cells that you need to change and entering the correct data Enter the values that are in the following table into the component:

Relation Relation

ship to employee

You need to change only a few values First, use the values that are shown in the first record of the data that is shown in the view pane at the bottom of the

Column Definitions window as a guide when you fill in the values for the Name

column in the column component section of the screen These values served as the

column names in the employeeFlatFile.csv external file Also, the Informat and Formatcolumns for the numeric values are based on the values included in the

Ngày đăng: 05/07/2014, 11:20