Opening a source file


To open a source file

  1. Start Program Analyzer. The Select File Location dialog box appears. This dialog box can also be invoked from the File menu by selecting Open.
  2. Do one of the following:
      • If the file is located on a drive on your PC, select Local file.
      • If the is file stored in Compuware's Source Listing, select Remote DDIO (Compuware Source Listing). The Program Analyzer supports DDIO files, shared databases, and shared directories.
      • If the file appears in the recently used file list, select Recently used file, then select the file you want to open. If the file you selected is local, the source file will appear in the Program Analyzer's Outline view and Structure Chart view. if the file you selected is remote, a read-only version of the source file will appear in the Program Analyzer's Outline view and Structure Chart view.
  3. From the Encoding drop-down list, do one of the following:
      • Select ANSI when opening a file saved as ANSI, such as files collected and downloaded by the Metadata Analyze ANSI is the default.
      • Select UTF-8 when opening a file saved as UTF-8, such as files created by the Topaz Workbench.
  4. Click OK.
  5. If you selected Local file or Remote DDIO (Compuware Source Listing), do the following, depending on the selection you made:

    • If you selected local file, the Open dialog box appears. Select a source file or type its name in the File field and click Open. The source file appears in the Program Analyzer's Outline view and Structure Chart view.
    • If you selected the Remote DDIO (Compuware Source Listing), the Open Remote DDIO dialog box appears. Enter the dataset name and click List. When the Source Listings box populates, select a member and click OK.

Note

The Source Listings box sorts first by program, then by compile timestamp. Click any heading to sort by that column.

Note

Clear the Show COBOL and PL/I programs only checkbox if you want non-COBOL and non-PL/I programs to appear in the Source Listings box so they can be opened in the Program Analyzer. Program Analyzer functionality for these programs is limited to the Outline view.

Note

Before the Program Analyzer can analyze a PL/I program that contains preprocessor directives (other than %INCLUDE), it must be downloaded by the Metadata Analyzer so the Metadata Analyzer can resolve the preprocessor directives. The downloaded source may not match the collected source file because the downloaded source will have all preprocessor directives resolved. Further, any grammar errors will cause the collection to fail (rather than succeeding with errors) and must be resolved before the Metadata Analyzer can collect the source. Refer to the Metadata Analyzer help for how to set up collections to download source.

A read-only version of the source file appears in the Program Analyzer's Outline view and Structure Chart view.

Note

If you select a remote file and you haven't logged onto the mainframe yet started, the Login to Host dialog box appears. Enter your login credentials.

Note

License verification is done when the product is invoked. To set up licensing, refer to the Compuware Licensing Guide. Otherwise, a 45-day trial period is automatically provided.


Note

If severe errors exist, the Diagnostics view will appear instead of the Outline and Structure Chart views.



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*