The simple Sample Application contains batch and online processing coded in the following languages:Figure 3‑1 Simple App StructureFigure 3‑2 Simple App Coponent Architecture
Listing 3‑1 MAPM000 - Simple App Main MenuListing 3‑2 MAPM003 - Customer listListing 3‑3 MAPM001 - Customer detailed informationListing 3‑4 MAPM002 - Customer maintenancePGMM002 receives an action code and, when needed, a customer identification number. The action to be performed is displayed on the screen (CREATE, UPDATE or DELETE).This program lists the customers stored in the VSAM file. A limited number of customers are displayed on each screen – the PF7 and PF8 keys give access to the previous and next pages. A non-blank character at the beginning of a customer's line gives access to the detailed customer information screen (see program PGMM001).Each input sequential file record contains a three characters action code (ADD, UPD or DEL) and the customer data required when creating a new customer or updating an existing one. Each input line updates the VSAM customer file. Customer data from the sequential file is supposed to be valid so that no control is performed by the PGMMB02 batch program.IDCAMS is used to REPRO the VSAM file into a sequential file which can easily be read in the z/OS environment.Figure 3‑3 VSAM customers file Initial loadFigure 3‑4 VSAM file update
Table 3‑1 VSAM Customer Fle Description Listing 3‑5 VSAM customer file COBOL descriptionListing 3‑6 Simple App Initial ReportListing 3‑7 Simple App Updated Customer File Report
1. Access your CICS environment and enter the Simple App main transaction code M000 to connect to the application.
2. The Main menu is dispalayed. Enter 000003 in the Customer identifier field and press the PF08 key to inquire on the customer.
1. From the Main menu enter 000003 in the Customer identifier field and press the PF06 key to update customer information.
2. In the update screen all data may be modified. The screen header shows the action UPDATE. Change the customer’s address and press ENTER.
3. Press PF12 to confirm the updates. A Maintenance OK messageis displayed in the screen footer. To cancel your input, press PF03 in order to return to the Main menu.
1. From the Main menu, press PF04 to access the Customer List first page.
2.
1. From the Main menu press PF05, the following screen is displayed.Action is set to CREATE in the screen header and fields are unprotected.
Table 3‑2 Simple App CICS APIs