Tutorial: Updating the scan options for the GenAppC project
Learn how to update a scan option for the GenAppC project and then observe the changes to the scan results after your update.
Prerequisite
You have completed the Tutorial: Performing impact analysis of GenAppC, a demo project.
Notes: The steps below are based on the following assumptions.
- You are deploying the Wazi Analyze container from a Wazi Analyze image.
- You are using Docker Desktop for Windows or Mac.
Procedures
To update a scan option for the GenAppC project, complete the following steps:
- If you have not yet done so, navigate to https://localhost:5000/login and log in to Wazi Analyze with the password wa1234.
- Select the History icon (
) to see the
graph that you previously viewed. - Select the LGICDB01.CBL view from the saved views.

- Click the Close (X) icon on the History pane to close it.
- Observe the graph that is displayed.
You will see the relationship of LGICDB01.CBL with system copybooks, for example, DFHEIVAR.CPY, DFHEIBLK.CPY, DIBSTAT.CPY, and DEFVAR.CPY. It is because that theOPTION_IBM_ALLSRCEDGESis enabled in the configuration file (.datfile) of GenAppC project.Note: When theOPTION_IBM_ALLSRCEDGESoption is enabled, Wazi Analyze displays the relationships between files to system copybooks and macros that are used by internal processing. For more information, see Understanding scan options for the demo project GenAppC. - On the terminal, run the following command to shut down Wazi Analyze
servers.
When the servers are shut down, you will see the following message.wa-shutdown.shShutting down Wazi Analyze servers Wazi Analyze servers shutdown complete - Open the configuration file for GenAppC under the
/home/wazi/data/GenAppC directory. If you use the VI editor, you can run
the following command to open the
file.
You will notice that thevi /home/wazi/data/GenAppC/GenAppC.datOPTION_IBM_ALLSRCEDGESis enabled (set to 1) along with the other options that are described in Understanding scan options for the demo project GenAppC. - Disable the
OPTION_IBM_ALLSRCEDGESoption by changing the setting to zero as the following example.OPTION_IBM_ALLSRCEDGES=0 - Press Esc + :wq to save the changes.
- Scan the GenAppC project by running the following
command.
wa-scan.sh GenAppC - On the terminal, run the following command to start the Wazi Analyze
servers.
When servers are started up, you will see the following messages.wa-startup.sh
- When the terminal prompts for your password input, enter wa1234.

- Navigate to https://localhost:5000/login and log in to Wazi Analyze with the password wa1234
- Select the History icon (
) to see the
graph that you previously viewed. - Select the LGICDB01.CBL view from the saved views to observe the changes
to the scan results after your update to the option.You will notice that all of the system copybooks are not displayed on the graph since the

OPTION_IBM_ALLSRCEDGESoption is disabled.
Since you have learned how to update a scan option for the GenAppC project, you can try to update the other scan options available. For more information about the scan options of GenAppC, see Understanding scan options for the demo project GenAppC.