Tutorial: Performing impact analysis of GenAppC, a demo project
Out of the box, Wazi Analyze provides GenAppC as a demo project that is pre-scanned and ready to view. Learn how to get started with GenAppC and perform the analysis of the GenAppC scanned results.
GenAppC is a COBOL application that is taken from "General Insurance Application" (GenApp). GenApp is an IBM sample application for IBM CICS Transaction Server that simulates transactions that are made by an insurance company to create and manage its customer and insurance policies. For more information, see General Insurance Application.
Prerequisites
- Make sure that you have Docker installed and set up. For more information, see Prerequisite: Setting up Docker.
- Obtain the repository of the Wazi Analyze image.
- You are deploying the Wazi Analyze container from Wazi Analyze image.
- You are using Docker Desktop for Windows or Mac.
Procedures
- Run CMD to open a command prompt window or open Mac terminal from your machine.
- Run the following command to load Waiz Analyze image into
Docker.
Replacedocker load --input <wazi-analyze-archive-file-name.tar.gz>
<wazi-analyze-archive-file-name.tar.gz>
with the name of Wazi Analyze archive file that you obtained. - Go to Docker Desktop and select Images on the left
menu. You can see that the image is loaded into Docker.
- Start a Wazi Analyze container by running the following
command.
docker run -it -p 5000:5000 --name WA ibmcom/wazianalyze:1.3.0
- Go to Docker Desktop and select Containers/Apps on
the left menu. You can see that the Wazi Analyze container named WA is running on port 5000.
- On the terminal, run the following command to start Wazi Analyze
servers.
When servers are started up, you will see the following messages.wa-startup.sh
- When the command line prompts for your password input, enter wa1234 as a
password.
- Launch your browser and navigate to https://localhost:5000/explore.
Note: Wazi Analyze uses
https
protocol to communicate between browser and servers. Out of the box, a self-signed certificate is provided. You need to accept the risk of the unknown certificate and proceed. On your production environment, you should consider generating your verified certificate. For more information, see Security considerations. - On the Log in dialog box, enter wa1234 in the
Password field.
- Select GenAppC project from the Projects list to view GenAppC project.
- Type LGI on the Search box to search for a program
that you want to view the program call references.
- Type LGI*01 on the Search box.
You can use a wildcard symbol to search. ‘
*
’ is replaced by any one or more characters. The results show programs that start withLGI
and end with 01.You can also use ‘?’ in the search string. ‘?’ is replaced by any one character.
- Select LGICDB01 from the list. A program call graph appears.
- Select the LGICDB01 node to display the Properties pane that shows
detailed information for the LGICDB01 program. You can see the information
such as type, source type, incoming references, and outgoing references with the type of references
and all included files.
ProgramCall
from program LGICUS01 and one outgoing reference of typeProgramCall
to program LGSTSQ. It also includes seven copybook files. - Click the + icon next to the Relationship
depth field to increase the number of relationship depth to 2. An
additional node is displayed on the graph.
- Hover over the relationship line between LGICDB01 and LGSTSQ to see the type of
the relationship.
- Select the Options menu icon ( ) on the top right of LGICDB01 node and select View
source file references to display the relationship between source files of selected node.
- Select LGPOLICY.CPY node to open the Properties pane of LGPOLICY.CPY.
- Click the Close (X) icon on the Properties pane to close it.
- Select the Options menu icon ( ) on the upper right of LGPOLICY.CPY and select View
source file references.
- Select the Table view icon ( ) on the upper right header to change the graph view to table view. The
same information is displayed on table format.
- Select the History icon ( ) to see the graph that you previously viewed.
- Select LGICDB01 (depth = 2) view from the list of history views to view LGICDB01 program call references.
- Click the Close (X) icon on the History pane to close it.You can now see the LGICDB01 program call references in table format.
-
Select the Graph view icon () on the top right header to change the table view to graph view.
- Select the Export icon () to export the graph that is displayed.
- Select PDF from the Export Format field and keep the File name as default.
- Specify LGPOLICY_source_ref as the file name.
- Click Save to save the file.
- Select Open option to open the PDF on your browser. For Firefox, select
Open with Firefox option. You can select Save File
option to save the file to your local machine as well.PDF file opens in a new window.