Example user workflows in agent mode

You can leverage the CUAZ MCP tools to streamline your COBOL upgrade process by automatically detecting and converting legacy COBOL source code to the 85 COBOL Standard. In addition, these tools help automatically resolve invalid data runtime issues in the source code, ensuring improved code quality.

To start using CUAZ in agent mode:
  1. Open the COBOL Upgrade Advisor for z/OS extension in Bob IDE.
  2. Select the COBOL Upgrade Advisor mode in the Bob mode selector.
  3. Enter this prompt to begin: start COBOL upgrade advisor.

Upgrade legacy source code to 85 COBOL Standard

  1. Run a load library or application scan and save the report to a project. The inventory reports identify programs that require conversion to 85 COBOL Standard.
    Note: The project where the inventory report is saved must be configured with the source file location and listing location details. If these details are not configured, update the project configuration by selecting Add source from the Side Bar or by editing the project configuration file.
  2. Ensure that the project containing the inventory report is open in the Side Bar.
  3. Prompt Bob to upgrade program syntax to 85 COBOL Standard.
  4. Bob analyzes the inventory report to identify programs that require upgrade to the 85 COBOL Standard and updates the source code.
  5. Bob requests for the compilation JCL to compile the program. You can provide a compilation JCL or compile the program externally and inform Bob.
  6. Bob detects and resolves compilation errors, and then regenerates the inventory report.

Fix invalid data runtime errors

  1. Run the invalid data detection scan and save the generated report to a project. The report identifies invalid data runtime errors in the source code.
    Note: The project where the invalid data detection report is saved must be configured with the source file location and listing location details. If these details are not configured, update the project configuration by selecting Add source from the Side Bar or by editing the project configuration file.
  2. Ensure that the project containing the invalid data detection report is open in the Side Bar.
  3. Prompt Bob to analyze the report, and resolve the identified invalid data runtime errors in the source code.
  4. Bob analyzes the invalid data detection report, identifies the root causes, and resolves the runtime errors in the source code.
  5. Bob recompiles the programs to validate the fixes and regenerates the invalid data detection report.

After you upgrade the syntax and resolve invalid data issues, follow your organization's build, test, and deployment procedure to deploy the application to production.