EGL Reference Guide for iSeries

Resource associations part

The resource associations part is a set of association elements, each of which has these characteristics:

You can think of an association element as a set of properties and values in a hierarchical relationship, as in the following example:

  // an association element
  property:  fileName
  value:     myFile01
 
    // an entry, with multiple properties
    property:  system
    value:     aix
    property:  fileType
    value:     spool
    property:  systemName
    value:     employee
 
    // a second entry
    property:  system
    value:     win
    property:  fileType
    value:     seqws
    property:  systemName
    value:     c:\myProduct\myFile.txt

In this example, the file name myFile01 is related to these files:

The file name must be a valid name, an asterisk, or the beginning of a valid name followed by an asterisk. The asterisk is the wild-card equivalent of one or more characters and provides a way to identify a set of names. An association element that includes the following value for a file name, for example, pertains to any file name that begins with the letters myFile:

  myFile*

If multiple elements are valid for a file name used in your program, EGL uses the first element that applies. A series of association elements, for example, might be characterized by the following values for file name, in order:

   myFile
   myFile*
   *

Consider the element associated with the last value, where the value of myFile is only an asterisk. Such an element could apply to any file; but in relation to a particular file, the last element applies only if the previous elements do not. If your program references myFile01, for instance, the linkage specified in the second element supersedes the third element to define how the reference is handled.

At generation time, EGL selects a particular association element, along with the first entry that is appropriate. An entry is appropriate in either of two cases:

If you are generating for AIX, for example, EGL uses the first entry that refers to aix or to any.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]