Previous Page | Next Page

Example: Using the INFOMAPS Procedure and the Information Maps Engine

Step 5: Retrieve the Data Associated with the Information Map Using the Information Maps Engine

Now that you have an information map, you can use the Information Maps engine to access the metadata and then retrieve the underlying data. Once you retrieve the data, you can run almost any SAS procedure against it.

The following code retrieves the data associated with the newly created information map:

/* Use the Information Maps engine to define a libref to retrieve */
/* data from the information maps. */
libname HR_Data infomaps mappath="&infomap_path";
/* Allow mixed-case letters and blank spaces in information map names. */
option validvarname=any;

Note:   Unlike running the INFOMAPS procedure code more than once, if you run the Information Maps engine code multiple times, the output should be the same as what is shown.  [cautionend]

Log for the Information Maps Engine LIBNAME Statement

100  /* Use the Information Maps engine to define a libref to retrieve */
101  /* data from the information maps. */
102  libname HR_Data infomaps mappath="&infomap_path";
NOTE: Libref HR_DATA was successfully assigned as follows:
      Engine:        INFOMAPS
      Physical Name: /Shared Data
103  /* Allow mixed-case letters and blank spaces in information map names. */
104  option validvarname=any;

Previous Page | Next Page | Top of Page