SAS Institute. The Power to Know

Base SAS(R) 9.2 Guide to Information Maps

Previous Page | Next Page

Example: Using the INFOMAPS Procedure and the Information Maps Engine

Step 2: Set the Metadata System Options and a Macro Variable

This example uses metadata system options and a macro variable to set site-specific data. This is a good programming technique that makes it easy for you to customize SAS code for your environment.

The following code sets the metadata system options and a macro variable:

/* Set system options for connecting to the metadata server. */
options metauser="marcel" 
        metapass="AA358mk" 
        metaserver="server21.us.anycompany.com"
        metaport=8561;

/* Assign a macro variable to store the path for the folder */
/* that contains information maps (to avoid having to set   */
/* the path multiple times).                                */
%LET infomap_path=/Shared Data;

Log from Setting the Metadata System Options and the Macro Variable

1    /* Set system options for connecting to the metadata server. */
2    options metauser="marcel"
3            metapass="XXXXXXX"
4            metaserver="server21.us.anycompany.com"
5            metaport=8561;
6
7    /* Assign a macro variable to store the path for the folder */
8    /* that contains information maps (to avoid having to set   */
9    /* the path multiple times).                                */
10   %LET infomap_path=/Shared Data;

For more information about macro variables or the %LET statement, see the SAS Macro Language: Reference.

Previous Page | Next Page | Top of Page