Supplemental files and examples for this book can be found at http://examples.oreilly.com/9781565926769/. Please use a standard desktop web browser to access these files, as they may not be accessible from all ereader devices.
All code files or examples referenced in the book will be available online. For physical books that ship with an accompanying disc, whenever possible, weve posted all CD/DVD content. Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to .
Preface
This book explains how to write applications for CICSthe worlds favorite transaction processing system. Customer Information Control System (CICS) systems have been running for more than 30 years and CICS has changed dramatically during that time, from being a basic transaction processing monitor to being an advanced distributed application server.
Throughout its evolution, CICS has preserved and enhanced its support for developing and running a very large application workload. This book teaches you the traditional CICS skills and techniques that have delivered results for over 30 years that are still just as relevant today for building high-speed transaction processing applications. It also teaches the modern CICS skills and techniques that exploit todays advanced technologiesJava, Web, MQSeries, workstation toolstechnologies that modern businesses need to exploit in order to stay competitive.
The Books Audience
This book is for new and experienced CICS application developers; whether youre an undergraduate, a new employee, or an experienced CICS developer who wishes to update your skills, this book is aimed at you. , onwards, we assume youre an application programmer needing to develop CICS applications. These chapters teach specific CICS skills such as developing programs in COBOL (the business logic), CICS Java, and Visual Basic, or integrating MQSeries with CICS. They contain guidance about designing, coding, and running the components of a typical CICS sample application.
We point you to various books in the CICS library that fill in any gaps because, in a book this size, we wont be able to tell you all about CICS. We discuss, and base our examples on, a subset of the full CICS facilities. This makes things easier for you because it means we wont have to keep referring you to other books in the CICS library while youre learning. These other books are listed in the bibliography, and are shown in the library diagram for your particular release of CICS. The subset of CICS commands weve chosen gives you a sound framework for your first application program and offers a logical starting point for more advanced work.
The main purpose of this book is to provide a friendly, straightforward, and modern approach to the writing of CICS application programs. It follows the development of a sample application, and at the end of each part you should be able to generate the relevant code and run the application.
Organization of the Book
The book describes a COBOL application that creates, reads, updates, and deletes records from a database with and without a locking mechanism. In addition, the COBOL program includes modules that browse, capture errors, and use the CICS Basic Mapping System (BMS) for data input and output to a traditional green screen. There are five additional parts that describe how you can use CICS to access your core COBOL application:
Through a CICS Java application
Through a web-based application using a CORBA
By using the CICS Basic Mapping System for data input and output
By using Visual Basic to design and implement a CICS Client application
By integrating MQSeries with your CICS application
Each part describes the design of the component and how to write the code to implement the design.
Having written your application, you are guided through a step-by-step process to deploy your application into a CICS system. There is also advice on how to deal with the issues arising from large-scale deployment. Finally, there is a chapter describing some of the debugging facilities available in CICS.
About the CD-ROM
The CD-ROM accompanying this book contains the source code of the sample application that is discussed in this book. This can save you a lot of time by not having to enter the code. Some of the code has been compiled for use with CICS Transaction Server Version 1.3. If you want to use it with other CICS releases, you will have to re-compile the source code. describes how to transfer the code from the CD-ROM to your OS/390 system, to install the files and programs, and configure your CICS region so that you can run the application. The remaining components of the application access and use the COBOL programs you install on your mainframe.
In addition to the sample code, the CD-ROM contains the entire CICS Transaction Server Version 1.3 library in Portable Document Format (PDF) format. Together with this is a copy of the Adobe Acrobat reader. Other software includes the Java Development Kit (JDK) Version 1.1.8.
Refer to for detailed descriptions of the contents of the CD-ROM. The README files contains important information about running the sample application.
Weve also made the code sample available on the OReilly web site:
http://www.oreilly.com/catalog/cics
Conventions in This Book
Throughout this book, weve used the following conventions: