Professional Documents
Culture Documents
Wen Z Lu (wenlu1@uk.ibm.com)
TXSeries Product Team
IBM
Alex Marshall
Software Engineer
Student
26 Nov 2007
Learn the basics of the IBM® Customer Information Control System (CICS). With a
hands-on exercise, learn how to get your first CICS application up and running on
your desktop using TXSeries® V6.1 for Windows®. The tutorial shows you how to
download and install a free trial version of TXSeries V6.1.
This tutorial is for newcomers to CICS, and does not require any explicit
programming experience.
Objectives
Upon completion of this tutorial, you will understand the value and basic concepts of
CICS. The hands-on experience will give you enough information to work with CICS
to solve more complex business problems.
Prerequisites
It is assumed you have a general familiarity with the Microsoft® Windows operating
system, Web-browsers such as Internet Explorer, and Windows utilities such as the
command line interface.
System requirements
To complete the steps in this tutorial, you need to install TXSeries for Multiplatforms
V6.1, which requires one of the following operating systems:
• Windows XP Professional with Service Pack 2
• Windows Server 2003 Standard Edition with Service Pack 1
• Windows Server 2003 Enterprise Edition with Service Pack 1
This tutorial was written using Windows XP Professional with Service Pack 2. You
must have Administrator privileges for your Microsoft Windows user account.
To ensure optimum data consistency, and to avoid cases of financial loss (such as
an interrupted credit/debit, leaving both accounts short), a transaction conforms to
the atomic, consistent, isolated, and durable (ACID) property. It must succeed or fail
as a complete unit and not in any intermediate state, guaranteeing the integrity of
data and operations.
Deployment
To deploy any transaction, or a CICS application, you need to consider how to:
• Write the CICS program
• Store data involved in a transaction
• Present the outcome of the transaction to the end user
Data logic
This, in effect, is a data store where data can be retrieved, updated, and
over-written to complete the transaction. An example is a bank balance after a
cash withdrawal from an ATM. The data logic is handled by data servers, or
enterprise information systems (EIS) that TXSeries connects to, such as IMS
and DB2. The exercise in this tutorial uses the Structure File System (SFS) that
is a part of TXSeries as a data store.
Business logic
Real business problems are solved by running a program in this tier containing
necessary instructions about what to do with data. With the business logic,
TXSeries acts as a business application server, processing a CICS application
reliably and securely.
Presentation logic
Deals with the user interface. This tutorial uses the CICS Universal Client.
Alternatively, you can have a Web application to connect to the business logic
running in CICS.
2. Save the setup file in a directory. Extract the files into a temporary folder,
such as Desktop for easy access.
5. Configure the users and groups for accessing CICS by setting your
Windows logon account. For example, Alex will be a member of cicsgroup
for access to execute CICS commands.
2. From the left menu select Users from Local Users and Groups.
3. Within this view, locate your current user account, right-click and
select properties.
7. Set the TXSeries service to run under this user to avoid any restrictions
on the execution of applications and services.
2. Locate TXSeries LWI Service in the list, right-click on it, and select
properties.
9. You must restart your computer to enable these changes. On reboot, the
TXSeries service will launch in the background.
1. From the Start menu select IBM > TXSeries for Multiplatforms and
launch IBM TXSeries Administration Tool.
2. It will ask you to log in. Use your Windows account name and password,
which are case sensitive.
1. Select Regions from the menu on the left and click All Regions.
2. Click Create.
3. Enter a name for the new CICS Region. Use Test for this tutorial.
Leave the File Management option set to SFS, which is the default.
Figure 3. Creating a new CICS Region
5. Create a listener for the region, for example by specifying the protocol
format:
2. Select listeners.
3. Click Add.
Figure 4. Creating a new listener
4. On the next panel, enter LST1 in the Listener Name field, change
the Protocol type to Named Pipe, and enter CICSCC for the Local
Named Pipe name.
5. Click Submit. A message should tell you the listener has been
created successfully.
7. Create an SFS Server for the region. A CICS Structures File System
(SFS) is a virtual storage access method. It is a record-oriented file
system that can provide indexed, relative, and sequential access to
file-based data. The SFS lets you store fully recoverable file-based data.
3. Select Create.
5. Click Submit. A message should indicate that the SFS has been
created successfully.
1. TXSeries comes with the source code for the IVP, but the compilation of
IVP is outside of the scope of this tutorial. Download and use the
pre-compiled IVP binaries in IVP-C.ZIP.
Download IVP-C.ZIP and extract the files into the
c:\opt\cics\samples\ivp\C directory, which should already exist but doesn't
contain any files.
cd c:\opt\cics\bin
Write down or remember the volume name because you'll need it for the
next command. The name of the SFS server is shown in bold.
4. Enter the following command to add the programs into the CICS region,
but substitute <sfs_volume_name> for the name of the SFS volume
returned by the previous command.
6. When the region starts, which may take a few moments, a message
confirms the success of the process.
2. Scroll down to the first server definition and change the server name to
our TXSeries region name, Test.
5. Now that the terminal is configured you can connect to the region. From
the Windows Start menu select Programs > IBM >TXSeries for
Multiplatforms > Start Local Terminal. From the list of servers, select
TEST and click OK to connect.
6. The terminal, which is now connected to the Test region, should appear
blank with a green line along the bottom. The cursor position is
highlighted by a flashing underscore.
To enter the transaction name, type MENU in the top left of the terminal
and press the right-hand CTRL key to execute the MENU application.
7. The application will be executed by CICS, and the output displayed on the
terminal. Using the simple menu based system you can add and create
records that are saved in the SFS region. To create a record:
2. You can repeat this process, incrementing the number field, to add
more records.
3. To try the Inquiry option, enter INQY and 000001. The first record
you created will be displayed.
4. Now that you are familiar with using MENU, try the BRWS and UPDT
options.
Figure 7. Performing an inquiry
Congratulations! You have successfully run your first CICS application on your PC.
Section 6. Troubleshooting
If you are trying to complete this tutorial offline, disconnected from a Local Area
Network connection, you might require the Microsoft Loopback adapter. TXseries
relies upon the network layer to operate.
See Resources for more information about the Loopback adapter from Microsoft.
Section 7. Conclusion
In this tutorial you learned the basics of a CICS application, and took the first
practical step in running it on your desktop using TXSeries.
TXSeries and CICS Transaction Server for z/OS share the same design principles,
and TXSeries shares a subset of its functions. Any CICS application run or tested on
TXSeries can be easily migrated onto and integrated with Transaction Server for
z/OS to exploit the architectural advantages of the z/OS platform.
Downloads
Description Name Size Download method
TXSeries IVP Compiled Binaries ivp-c.zip 17KB HTTP
Resources
Learn
• The IBM Redbook Revealed! The Next Generation of Distributed CICS (ISBN
0-7384-9577-8) discusses distributed IBM Customer Information Control
System (CICS) solutions and how best to develop distributed CICS applications.
• Designing & Programming CICS Applications (ISBN 1-56592-676-5), O'Reilly
Media, introduces new users of IBM's mainframe (OS/390) to CICS features. It
shows experienced users how to integrate existing mainframe systems with
newer technologies, including the Web, CORBA, Java, CICS clients, and Visual
Basic, as well as how to link MQSeries and CICS.
• The TXSeries for Multiplatforms CICS Application Programming Guide
describes the IBM TXSeries for Multiplatforms application programming
interface (API). It explains how to prepare application programs that use CICS
on AIX, HP-UX, Solaris, and Windows systems.
• The TXSeries for Multiplatforms V6.1 CICS Installation Guide is useful for
installation questions.
• "Using IBM WebSphere Developer for System z and TXSeries for
Multiplatforms to build CICS applications" (developerWorks, Apr 2007) explains
how to write CICS applications in IBM COBOL using IBM WebSphere
Developer for System z v7.0 and IBM TXSeries for Multiplatforms v6.1.
• Find more information about the Loopback adapter from Microsoft.
• Browse the technology bookstore for books on these and other technical topics.
Get products and technologies
• Download a trial version of TXSeries for Windows V6.1.
Discuss
• Check out developerWorks blogs and get involved in the developerWorks
community.
Alex Marshall
Alex Marshall is a software engineering student from Durham University. He is
currently working for the CICS Test department as part of an internship with IBM. His
interests include transaction processing, Web development, and social networking.
His current research includes visualizing and providing tools for analyzing unusual
sources of temporal based datatr using Web-based mapping services.