An obvious method to configure datasets is to specify the full path for each dataset accessed by Enterprise Server. However, as the number of datasets accessed increases, the more cumbersome this method becomes. In addition, having a hard-coded location for each dataset can make it difficult to move between test and production environments that have different directory structures.
To reduce the effort required when the system uses large numbers of data files, you can set environment variables to define the datasets by an enterprise server region:
You can create as many environment variables as you need to cover all of the paths you want to specify.
For example, you could create an environment variable named PRODDATA and set its value to d:\mydataset.
Then, to allocate a dataset in the catalog for a file named MFIO1.SAMPLE.DATA, you would use this code:
//*MFE:%PCDSN='$PRODDATA\MFI01.SAMPLE.DATA'