Item Master File (VSAM)
 CICS Applications for Inquiry and Update
When technology complements business    Copyright © 1987-2012  SimoTime Enterprises  All Rights Reserved
  Table of Contents Version 10.11.01 
  Introduction
  The Item Master Inquiry Program
  The Item Master Update Program
  Item Master File (Copy Book for Record Layout)
  Summary
  Software Agreement and Disclaimer
  Downloads and Links to Similar Pages
  Glossary of Terms
  Comments, Suggestions or Feedback
  Company Overview
The SimoTime Home Page

Introduction
(Next) (Previous) (Table-of-Contents)

This example uses a a suite of COBOL programs and BMS mapsets to execute programs that will provide data file inquiry or update functionality for the Item Master File. The programs use command level CICS statements to access the VSAM Master Files and display information to a 3270 terminal or terminal emulator. The programs run on an IBM Mainframe System with CICS or a Microsoft Windows System with Micro Focus Server for Mainframe Migration.

The Item Master Inquiry Program
(Next) (Previous) (Table-of-Contents)

The Item Master Inquiry Screen contains a prompt for a new Item Number and the item information from a previous request. Once a new item number is entered the Item Master File is accessed and the new information is displayed.

 IT2INQ1                 Data Files and VSAM Data Sets               2009/08/03 
 STOA                         Item Inquiry Option                   14:32:51:92

          New Item #: 000000000001

              Item #: 000000000001
         Description: Distributor Cap
     Unit of Measure: Each
               Price: 6.98               Cost: 3.29




        Last Activity Date: 20111109   Time: 14334874   Token: 000




                     PF3=Menu                                           F12=Esc

A user may continue to enter new item numbers or press F3 to return to the Main Menu.

Review the Documentation for this suite of program members.

The Item Master Update Program
(Next) (Previous) (Table-of-Contents)

The Item Master Update Screen contains a prompt for a new Item Number and the item information from a previous request. Once a new item number is entered the Item Master File is accessed and the new information is displayed.

 IT2UPD1                 Data Files and VSAM Data Sets               2009/08/03 
 STOA                          Item Update Option                   14:32:51:92

          New Item #: 000000000001

              Item #: 000000000001
         Description: Distributor Cap
     Unit of Measure: Each
               Price: 6.98               Cost: 3.29




        Last Activity Date: 20111109   Time: 14334874   Token: 000




                     PF3=Menu                   F9=Updt                 F12=Esc

A user may continue to enter new customer numbers or press F3 to return to the Main Menu or update the customer information and press PF9 to update the record in Customer Master File..

Review the Documentation for this suite of program members.

Item Master File (Copy Book for Record Layout)
(Next) (Previous) (Table-of-Contents)

The item Master File is a VSAM, Key-Sequenced-Data-Set (KSDS). The length of the records in the data set is 512 bytes. The key field strats in position one (1) and is 12 bytes in length. The following (ITEMCB01.CPY) is the COBOL copy file that defines the record layout.

      *****************************************************************
      *               ITEMCB01.CPY - a COBOL Copy File                *
      *        An Item Master File used by the Demo programs.         *
      * This is a VSAM Keyed-Sequential-Data-Set or Key-Indexed File. *
      *         Copyright (C) 1987-2012 SimoTime Enterprises          *
      *                     All Rights Reserved                       *
      *              Provided by SimoTime Enterprises                 *
      *        Our e-mail address is: helpdesk@simotime.com           *
      *     Also, visit our Web Site at http://www.simotime.com       *
      *****************************************************************
      *
       01  ITEM-RECORD.
           05  ITEM-NUMBER              PIC X(12).
           05  ITEM-DATA.
               10  ITEM-DESCRIPTION     PIC X(48).
               10  ITEM-QTY-ONHAND      PIC 9(7)            COMP.
               10  ITEM-QTY-ALLOCATED   PIC 9(7)            COMP.
               10  ITEM-UNIT-OF-MEASURE PIC X(16).
               10  ITEM-COST            PIC S9(7)V9(2)      COMP-3.
               10  ITEM-PRICE           PIC S9(7)V9(2)      COMP-3.
               10  ITEM-LADATE          PIC X(8).
               10  ITEM-LATIME          PIC X(8).
               10  ITEM-TOKEN           PIC X(3).
               10  ITEM-DISCOUNT        OCCURS 3 TIMES.
                   15  ITEM-D-CODE      PIC X.
                   15  ITEM-D-PERCENT   PIC S9(3)V9(4).
               10  FILLER               PIC X(375).
      *
      ***  ITEMCB01 - End-of-Copy File - - - - - - - - - - - ITEMCB01 *
      *****************************************************************
      *

Summary
(Next) (Previous) (Table-of-Contents)

The purpose of this suite of programs is to provide examples that use command level CICS in COBOL programs to access a Item Master FIle that is a VSAM, Key-Sequenced-Data-Sets (KSDS) and display the information using standard BMS screen definitions to a 3270 terminal or terminal emulator.

This document imay be used as a tutorial for new programmers or as a quick reference for experienced programmers. In the world of programming there are many ways to solve a problem. This documents and the links to other documents are intended to provide a choice of alternatives.

Software Agreement and Disclaimer
(Next) (Previous) (Table-of-Contents)

Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to SimoTime Enterprises. Once the fee is received by SimoTime the latest version of the software, documentation or training material will be delivered and a license will be granted for use within an enterprise, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Enterprises.

SimoTime Enterprises makes no warranty or representations about the suitability of the software, documentation or learning material for any purpose. It is provided "AS IS" without any expressed or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Enterprises shall not be liable for any direct, indirect, special or consequential damages resulting from the loss of use, data or projects, whether in an action of contract or tort, arising out of or in connection with the use or performance of this software, documentation or training material.

Downloads and Links to Similar Pages
(Next) (Previous) (Table-of-Contents)

This section includes links to documents with additional information that is beyond the scope and purpose of this document.

You may download this example at http://www.simotime.com/sim4dzip.htm#zPACKcicscm01.

Explore an Extended List of Software Technologies that are available for review and evaluation. The software technologies (or Z-Packs) provide individual programming examples, documentation and test data files in a single package. The Z-Packs are usually in zip format to reduce the amount of time to download.

A good place to start is The SimoTime Home Page for access to white papers, program examples and product information.

Note: You must be attached to the Internet to download a Z-Pack or view the list.

Check out The CICS Connection for more examples of mainframe CICS coding techniques and sample code.

Check out The non-Relational Data Connection that provides documents and examples for the processing (transfer, convert, compare, create and delete) of non-relational or traditional sequential files, VSAM Data Sets, Generation Data Groups (GDG's) and Partitioned Data Sets (PDS's).

Explore The File Status Return Codes to interpret the results of accessing VSAM data sets and QSAM files.

Glossary of Terms
(Next) (Previous) (Table-of-Contents)

Check out  The SimoTime Glossary  for a list of terms and definitions used in the documents provided by SimoTime.

Comments, Suggestions or Feedback
(Next) (Previous) (Table-of-Contents)

This document was created and is maintained by SimoTime Enterprises.

If you have any questions, suggestions, comments or feedback please call or send an e-mail to: helpdesk@simotime.com

We appreciate hearing from you.

Company Overview
(Next) (Previous) (Table-of-Contents)

Founded in 1987, SimoTime Enterprises is a privately owned company. We specialize in the creation and deployment of business applications using new or existing technologies and services. We have a team of individuals that understand the broad range of technologies being used in today's environments. This includes the smallest thin client using the Internet and the very large mainframe systems. There is more to making the Internet work for your company's business than just having a nice looking WEB site. It is about combining the latest technologies and existing technologies with practical business experience. It's about the business of doing business and looking good in the process. Quite often, to reach larger markets or provide a higher level of service to existing customers it requires the newer Internet technologies to work in a complementary manner with existing corporate mainframe systems.

Whether you want to use the Internet to expand into new market segments or as a delivery vehicle for existing business functions simply give us a call or check the web site at http://www.simotime.com


Return-to-Top
CICS File Management, Item Master File, CICS Applications for Inquiry and Update
Copyright © 1987-2012 SimoTime Enterprises  All Rights Reserved
When technology complements business
http://www.simotime.com