To configure datasets, you can specify the full path for each dataset accessed by Enterprise Server. However this is cumbersome and 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 that an Enterprise Server instance uses:
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'