Use a target file parameter in the session properties to change the target file and directory for a session. You can enter a path that includes the directory and file name in the Output Filename field. If you include the directory in the Output Filename field you must clear the Output File Directory. The Integration Service concatenates the Output File Directory and the Output Filename to determine the target file location.
For example, a session uses a file parameter to read internal and external weblogs. You want to write the results of the internal weblog session to one location and the external weblog session to another location.
In the session properties, you name the target file $OutputFileName and clear the Output File Directory field. In the parameter file, set $OutputFileName to
E:/internal_weblogs/November_int.txt
to create a target file for the internal weblog session. After the session completes, you change $OutputFileName to
F:/external_weblogs/November_ex.txt
for the external weblog session.
You can create a different parameter file for each target and use
pmcmd
to start a session with a specific parameter file. This parameter file overrides the parameter file name in the session properties.