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="myUserID"
        metapass="myPassword"
        metaserver="myserver.mycompany.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 for Setting the Metadata System Options and the Macro Variable

1    /* Set system options for connecting to the metadata server. */
2    options metauser="myUserID"
3            metapass=XXXXXXXXXX
4            metaserver="myserver.mycompany.com"
5            metaport=8561;
6    /* Assign a macro variable to store the path for the folder */
7    /* that contains information maps (to avoid having to set   */
8    /* the path multiple times).                                */
9    %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