Categorize Custom Programs

This workflow assigns categories to the custom programs passed to it from the AutoLearn workflow.

  • The Application Area for each program is obtained from the TRDIR table.

  • The description for each application area is obtained from the TAPLT table.

  • The description for each program is obtained from the TRDIRT table.

  • The Development Class for each program is obtained from TADIR table.

  • The description for each Development Class is obtained from the CTEXT table.

The workflow updates its results to assign a category to each program, based upon its Application Area or Development Class.

  • If the program’s Application Area is not ‘S’, ‘Z’, ‘R’, ‘*’ or <blank>, the category is set to the description for the Application Area.

  • Otherwise, if the program’s Development Class is not ‘$TMP’ or <blank>, the category is set to the description for the Development Class.

  • Otherwise, the program’s category is set to ‘Custom’.

Program description fields that are blank are set to the name of the corresponding program, and the results are returned to the AutoLearn workflow.