Exercise 6
Objective
To use a regular expression to change the extention of a file when it is placed in the destination endpoint.
Summary
To change the extention of file, MFT_File_06, from .txt to .dat when it is placed in the destination endpoint, SVR_OUTPUT.
Instructions
Defining the Job
In Solution Manager
- Select Library.
- Select Master Job.
- Click the Add button.
In the Master Job Definition screen
- In the Schedule drop-down, select My MFT Schedule
- In the Name field, enter MFT Rename Files.
- In the Job Type drop-down, select OpConMFT.
- Expand Task Details.
- In the General section, select the OpConMFT machine.
- In the Source section,
- Select the SVR_INPUT endpoint from the Endpoint drop-down.
- Enter MFT_File_06.txt in the File Filter field.
- Enter 5 in the Timeout __ minutes field.
- In the Destination section
- Select the SVR_OUTPUT endpoint from the Endpoint drop-down.
- Enable the Rename toggle.
- Enter
^(.*)\.[^.]+$
in the Search Pattern field. - Enter
"${1}.dat"
in the Replace Pattern field. - Select Ture from the Overwrite drop-down.
- Click Save
- Click the lock icon to enter Admin Mode.
- Expand Frequency and move the Inactive frequency called Example-Mon-Fri-O into the Active column.
- Click Save.
- Close Library.
Add the Job to the Schedule
- Select the Operations.
- In Operations Summary, click Processes in the top right-hand corner.
- Select today's date in the Date column.
- Right-click on My MFT Schedule in the Schedule section.
- Click the plus sign ( + ) in the Schedule Selection menu.
In the Add Job(s) Pop-up
- Select the MFT Rename Files job.
- Click Next.
- Select Release for the Build Status.
- Click Next.
- Verify that the information is correct and click Submit.
- Click Close.
In the Process Screen
- Verify that the job was added and ran successfully.
- Close Operations.