Skip to Content
Designing and Programming CICS Applications
book

Designing and Programming CICS Applications

by John Horswill, Members of the CICS Development Team at IBM Hursley
July 2000
Intermediate to advanced
414 pages
9h 41m
English
O'Reilly Media, Inc.
Content preview from Designing and Programming CICS Applications

Chapter 5. Programming the COBOL Business Logic

In this chapter:

You are now ready to write the COBOL code of the sample application. This chapter describes:

  • Writing CICS programs in COBOL

  • Dealing with file handling in CICS programs

  • Saving data using a scratchpad facility

  • Moving control from one program to another in the application

  • The queuing facilities of temporary storage and transient data

  • Handing errors in you programs

Writing CICS Programs in COBOL

The source programs are listed on the CD-ROM that is packaged with this book. They include a step-by-step description of what the code does. This chapter is about programming the business logic component, other services including Basic Mapping Support (BMS), the CICS supplied services for formatting a green screen, are described in “Programming the 3270 Presentation Logic Component” in Chapter 11.

Invoking CICS Services

When you need a CICS system service—for example, when reading a record from a file—you just include a CICS command in your code. CICS commands look like:

EXEC CICS function
          [option (argument)][option ...]... [terminator]

The options for this command are:

Terminator

The terminator is language dependent. For COBOL, the reserved word is either END-EXEC or a period (full stop). The full stop option should be avoided since it ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ABCs of IBM z/OS System Programming Volume 1

ABCs of IBM z/OS System Programming Volume 1

Karan Singh, Paul Rogers
ABCs of IBM z/OS System Programming Volume 1

ABCs of IBM z/OS System Programming Volume 1

Lydia Parziale, Luiz Fadel, Stanley Jon
Application Development for IBM CICS Web Services

Application Development for IBM CICS Web Services

James O'Grady, Ian Burnett, Jim Harrison, San Yong Liu, Xue Yong Zhang
Architect's Guide to IBM CICS on System z

Architect's Guide to IBM CICS on System z

Phil Wakelin, Ahmed Farrag, Steve Hobson, Manuel Jaen, Tommy Joergensen, Thiago Rotta

Publisher Resources

ISBN: 9781449311933Errata Page