As a supervisor, in Job Mode, you insert OAD Macros workbenches and tools. In the Macro Editor you edit the macros. In order to use macros, e.g. from the system archive, you copy the code into the respective macro of the Workflow Results section.

  1. Add the OAD Macros workbench to the job template.
  2. In the OAD Macro tool > Selection section > Workflow Results, the macro is listed. If there are multiple macros in a job, they will all be listed in this section, where the first entry belongs to the first macro tool, the second belongs to the second macro tool in the job, and so on. The naming convention for the first macro is Macro-01 and then continues to count up for each workbench you add to the job template. You cannot rename or delete it.
    In the System Archive section, existing macros are listed.
  3. To use the macro, click Macro Editor.
  4. The Macro Editor opens.
  5. For each OAD Macro workbench you added to the job, a tab is displayed and is now tightly linked. The macros belonging to the job are listed in the workflow results section of the Macro Editor.
    On the right side the same macros as in the OAD Macros tool are displayed.
  6. On each Macro<n> tab, add code into the macro of the Workflow Results section. You can either type in the program code directly or copy it from one of the available macros. To do so, on the right side, click on the desired macro, e.g., Get values of datatable.
  7. A tab opens containing the macro code.
  8. Copy the complete code and paste it to the Macro<n> tab, and save it.
  9. The macro contains the code.
  10. You cannot close the Macro tab.
  11. When the job is run, the first macro will be executed with the first workbench, the second macro will be executed for the next.