![]() |
Application Properties Repository Inquiry and Update using CICS |
| When technology complements business | Copyright © 1987-2012 SimoTime Enterprises All Rights Reserved |
| The SimoTime Home Page |
This example uses a a suite of COBOL programs and BMS mapsets to display a screen that will prompt a user for a source member name. Once a source member name is entered the program will access the Application Properties Repository (APMASTER is a VSAM, KSDS). The programs use command level CICS statements to access APMASTER 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.
To display the Application Properties screen a COBOL program and a BMS screen is used. The Application Properties Screen contains a prompt for a new Source Member Name and the source member information from a previous request. Once a new source member name is entered the Application Properties Repository is accessed and the new information is displayed. Various EXEC CICS commands are used to access the repository and re-display the screen.
AP2UPD1 Application Inventory of Program Members 2009/08/04
STOA Source Code Repository - Update Option 17:44:00:14
Enter Next SCDB ID: CBLJUSC1.CBL 00
SCDB ID: CBLJUSC1.CBL 00
Language Member Type
Used: CBL CBL
User Override: UNKNOWN UNKNOWN
SimoLYZE Scan: CBL CBL
Records Comments Blank Lines Lines of Code
447 135 20 292
Last Activity Date: 20090706 Time: 22490106 Status: A
F3=Menu F9=Updt F12=Esc |
The Application Properties Repository is a VSAM, Key Sequenced Data Structure (or KSDS). It has a record length of 1,024 bytes with a 18 byte key starting in position 1 of the record. The following copy file (APMASTB1.CPY) shows the record structure.
*****************************************************************
* APMASTB1 is a COBOL Copy File *
* Copy File for SIMOLYZE Application Properties Repository *
* This is a VSAM Keyed Sequence Data Structure (KSDS) *
* or a Micro Focus Keyed-Index 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 APMASTER-RECORD.
05 APMASTER-KEY.
10 APMASTER-KEY-16 PIC X(16).
10 APMASTER-RECORD-ID PIC 9(2).
05 APMASTER-DATA.
10 APMASTER-RECORD-STATUS PIC X.
10 APMASTER-LAST-ACTIVITY-DATE PIC X(8).
10 APMASTER-LAST-ACTIVITY-TIME PIC X(8).
10 APMASTER-MEMBER-DATE PIC X(8).
10 APMASTER-MEMBER-TIME PIC X(8).
10 APMASTER-LANGUAGE PIC X(8).
10 APMASTER-LANGUAGE-USER PIC X(8).
10 APMASTER-LANGUAGE-MFA PIC X(8).
10 APMASTER-TYPE PIC X(8).
10 APMASTER-TYPE-USER PIC X(8).
10 APMASTER-TYPE-MFA PIC X(8).
10 APMASTER-CICS PIC X.
10 APMASTER-CICS-USER PIC X.
10 APMASTER-CICS-MFA PIC X.
10 APMASTER-SQL PIC X.
10 APMASTER-SQL-USER PIC X.
10 APMASTER-SQL-MFA PIC X.
10 APMASTER-FLAGS.
15 APMASTER-FLAG-01 PIC X.
15 APMASTER-FLAG-02 PIC X.
15 APMASTER-FLAG-03 PIC X.
15 APMASTER-FLAG-04 PIC X.
15 APMASTER-FLAG-05 PIC X.
15 APMASTER-FLAG-06 PIC X.
15 APMASTER-FLAG-07 PIC X.
15 APMASTER-FLAG-08 PIC X.
10 APMASTER-FLAGS-USER.
15 APMASTER-FLAG-U1 PIC X.
15 APMASTER-FLAG-U2 PIC X.
15 APMASTER-FLAG-U3 PIC X.
15 APMASTER-FLAG-U4 PIC X.
15 APMASTER-FLAG-U5 PIC X.
15 APMASTER-FLAG-U6 PIC X.
15 APMASTER-FLAG-U7 PIC X.
15 APMASTER-FLAG-U8 PIC X.
10 APMASTER-RECORDS PIC 9(8).
10 APMASTER-BLANK-LINES PIC 9(8).
10 APMASTER-COMMENTS PIC 9(8).
10 APMASTER-LINES-OF-CODE PIC 9(8).
10 APMASTER-LA-DATE PIC X(8).
10 APMASTER-LA-TIME PIC X(8).
10 APMASTER-LA-TOKEN PIC 9(3).
10 APMASTER-FILLER-00 PIC X(100).
10 APMASTER-MVS-MEMBER-NAME PIC X(16).
10 APMASTER-PCNAME PIC X(256).
10 APMASTER-MAKEACTION PIC X(224).
10 APMASTER-HOSTNAME PIC X(256).
*
*** APMASTB1 - End-of-Copy File - - - - - - - - - - - APMASTB1 *
*****************************************************************
*
The purpose of this suite of program is to provide examples that use command level CICS in COBOL programs to access VSAM, Key-Sequenced-Data-Sets (KSDS) and display the information using standard BMS screen definitions to a 3270 terminal or terminal emulator. Also, this document may be used to assist 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.
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.
This section includes links to documents with additional information that is beyond the scope and purpose of this document. The first sub-section requires an internet connection, the second sub-section references locally available documents.
Note: A SimoTime License is required for the items to be made available on a local server.
The following links will require an internet connect.
A good place to start is The SimoTime Home Page for access to white papers, program examples and product information.
You may download this example at the download list of evaluation packages.
Explore The ASCII and EBCDIC translation tables. These tables are provided for individuals that need to better understand the bit structures and differences of the encoding formats.
Explore The File Status Return Codes to interpret the results of accessing VSAM data sets and QSAM files.
Explore The Micro Focus Web Site for more information about products and services available from Micro Focus.
The following links may be accessible without an internet connection.
Check out The CICS Connection for more examples of mainframe CICS coding techniques and sample code.
Explore The File Status Return Codes to interpret the results of accessing VSAM data sets and QSAM files.
Check out The SimoTime Glossary for a list of terms and definitions used in the documents provided by SimoTime.
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.
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 |
| Application Properties, Repository Inquiry and Update using CICS |
| Copyright © 1987-2012 SimoTime Enterprises All Rights Reserved |
| When technology complements business |
| http://www.simotime.com |