Viewing the statement performance table

Open the statement performance table to find performance information for your COBOL statements.

This step follows after Generating analysis files. Before opening and viewing a statement performance table, ensure that the IBM watsonx Code Assistant™ for Z Code Optimization Advice launcher is configured.

  1. Open the VS Code Panel by selecting Toggle Panel in the VS Code header, and navigate to the Optimize tab.

    Or

    Open the VS Code command palette by pressing ctrl/cmd + shift + p, and search for > Z Code Optimization Advice: Open Optimize tab.

    The statement table will display, prompting you to open a source file if a valid source file is not already open.

  2. Open a COBOL source file in the VS Code editor from a data set using Zowe™ Explorer.
    Note:
    1. By default, the extension expects you to open the source file from the same data set that the analyzed program was compiled from. If the location of the source file you are opening has changed, then Z Code Optimization Advice is unable to find and display statement data for that source file. This can occur if the source code is "Checked out" into a temporary data set for compilation. Follow the instructions in Configuring source file location to specify a preferred source file for the extension to reference.
    2. The source file must be recognized as COBOL source files by the Z Open Editor language servers. Find instructions at Using the Z Open Editor datasets setting.

    Alternatively, you can open a source file from a local workspace folder after following the instructions in Configuring source file location.

    If statement data is available for the selected source file, performance data displays in the table.