Contents Implementation & Administration Guide 1.1 Previous Next

Table Metadata Example

This page provides examples of metadata that has been defined for a SAS table in the SAS Information Delivery Portal. The example metadata describes the table prdsale, which is installed automatically in the demo portal. You can find the data set containing this table in the "SASDemos" directory within the portal's installation directory. When you log on to the portal with the user name "portaldemo," the table appears in the Data Sources window as "Product Sales Summary."

Defining the Library

To define a table, you must first update the enterprise directory with metadata identifying the SAS library where the table resides. When you install the demo version of the portal, a library called "sashelp" is automatically defined.

To view the metadata for the sashelp library, open the IT Administrator interface, select the SAS Data Sources button, and select the sashelp entry under Libraries, as shown below.

IT Administrator window; library details

In this case, the library is predefined in the SAS server. If the library is not predefined, you must enter a path relative to the root of the SAS server on which the library resides.

To see the logical name for the sashelp library, click on the Logical Names tab:

IT Administrator window; library details, Logical Names tab

The logical name identifies the server on which the library resides. (For information about the SAS servers defined in your enterprise directory, select the SAS Configuration button.)

If you want to define another library, choose File, New, Library from the menu bar and enter the library information in the following dialog box:

IT Administrator; New Library window

For a complete description of the input fields, select the Help button on the dialog box.

Defining the Table

Next, you must update the enterprise directory with metadata to define the table itself. In IT Administrator, you can view the metadata for the table prdsale by selecting prdsale in the tree under Tables, as shown below.

IT Administrator window; table details

The metadata for the library includes a description, the member name (the data set name without the extension), a descriptive label to identify the table on lists in the portal, and the library in which the table resides. You can optionally enter keywords, a table type, and password protection criteria.

If you want to define another table, choose File, New, Table from the menu bar. Then enter the table information in the following dialog box:

IT Administrator; New Table window

For a complete description of the input fields, select the Help button on the dialog box.

Defining the Columns

After defining the table, you must define the columns that the table contains. The Portal Table Viewer will use the column information to populate the default user input form so that the user can choose which columns he or she wishes to display.

In IT Administrator, you can view the metadata for the columns in the table prdsale by viewing each entry in the tree under the prdsale table definition.

IT Administrator window; column details

The metadata for each column includes the column name (as specified in the SAS program that created the table), the data type, the maximum length, and a descriptive label to appear in the Portal Table Viewer.

To add new column definitions for a table, select the table entry in the tree and choose File, New, Column. Then enter the column information in the following dialog box:

IT Administrator; New Column window

For a complete description of the input fields, select the Help button on the dialog box.


Contents Implementation & Administration Guide 1.1 Previous Next