How to parameterize the file name in a synonym's Master File


Technique

Product: DataMigrator
Release: 8206
Primary OS: z/OS
Solution Date:

Problem

How to parameterize the file name in a synonym's Master File.

Solution

To address this issue, edit the Master File to add the following items that are highlighted in bold:

FILENAME=CLAIMS_DUPLICATE_PAYMENT_LIST_SHEET1, SUFFIX=DIREXCEL,
DATASET=$IO_FILE_NAME,
VARIABLE NAME= &&IO_FILE_NAME , USAGE= A2000V , DEFAULT='200313068/claims_duplicate_payment_list.xlsx', {2}lt;/strong>
  SEGMENT=CLAIMS_DUPLICATE_PAYMENT_LIST_SHEET1SEGTYPE=S0, {2}lt;br /> ...

In your application you can specify IO_FILE_NAME to provide the DATASET= value. For example, use a -DEFAULT statement: 

-DEFAULT &&IO_FILE_NAME = '...'

If a value is not provided to the synonym at runtime, the .mas DEFAULT clause will be used.