This document was uploaded by user and they confirmed that they have the permission to share
it. If you are author or own the copyright of this book, please report to us by using this DMCA
report form. Report DMCA
Overview
Download & View Application Programming Transaction Manager as PDF for free.
Chapter 12. Sample Execs Using REXXTDLI . . . . SAY Exec: For Expression Evaluation . . . . . . . . PCBINFO Exec: Display PCBs Available in Current PSB . PART Execs: Database Access Example . . . . . . . DOCMD: IMS Commands Front End . . . . . . . . IVPREXX: MPP/IFP Front End for General Exec Execution
Appendix C. Device Compatibility with Previous Versions of MFS . . . Using STACK/UNSTACK to Convert MFS Device Formats to Symbolic Name Formats . . . . . . . . . . . . . . . . . . . . . . . . . 3270 Device Format Conversion Example . . . . . . . . . . . . . 3270 Printer and SLU 1 Compatibility . . . . . . . . . . . . . . . SLU P Compatibility . . . . . . . . . . . . . . . . . . . . . IBM 3278-52/3283-52 and IBM 5550 Family (as 3270) Compatibility . . . . Existing 3270 and IBM 5550 Family (as 3270) Compatibility . . . . . . .
. . . . . .
496 497 499 500 500 500
Appendix D. Spool API . . . . . . Understanding Parsing Errors . . . . Understanding Allocation Errors . . . Understanding Dynamic Output for Print Sample Program Using the Spool API .
and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact: IBM Corporation HHX/H1 555 Bailey Avenue San Jose, CA 95141-1003 U.S.A. Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee. The licensed program described in this information and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement, IBM International Program License Agreement, or any equivalent agreement between us. Any performance data contained herein was determined in a controlled environment. Therefore, the results obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurement may have been estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment. Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. All statements regarding IBM’s future direction or intent are subject to change or withdrawal without notice, and represent goals and objectives only. This information is for planning purposes only. The information herein is subject to change before the products described become available. This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. COPYRIGHT LICENSE: This information contains sample application programs in source language, which illustrates programming techniques on various operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of developing, using, marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. You may copy, modify, and distribute these sample programs in any form without payment to IBM for the purposes of developing, using, marketing, or distributing application programs conforming to IBM’s application programming interfaces.
Programming Interface Information This book is intended to help the application programmer write IMS application programs. This book primarily documents General-use Programming Interface and Associated Guidance Information provided by IMS. General-use programming interfaces allow the customer to write programs that obtain the services of IMS. However, this book also documents Product-sensitive Programming Interface and Associated Guidance Information provided by IMS. Product-sensitive programming interfaces allow the customer installation to perform tasks such as diagnosing, modifying, monitoring, repairing, tailoring, or tuning of IMS. Use of such interfaces creates dependencies on the detailed design or implementation of the IBM software product. Product-sensitive programming interfaces should be used only for these specialized purposes. Because of their dependencies on detailed design and implementation, it is to be expected that programs written to such interfaces may need to be changed to run with new product releases or versions, or as a result of service. Product-sensitive Programming Interface and Associated Guidance Information is identified where it occurs, either by an introductory statement to a chapter or section or by the following marking: Product-sensitive programming interface Product-sensitive Programming Interface and Associated Guidance Information... End of Product-sensitive programming interface
Trademarks The following terms, are trademarks of the IBM Corporation in the United States or other countries or both: AD/Cycle C/370 C/MVS C++/MVS CICS COBOL/370 DATABASE 2 DB2 IBM
IMS IMS/ESA Language Environment MVS MVS/ESA MVS/XA RACF SAA Series/1 VTAM Notices
xiii
Other company, product, and service names, which may be denoted by a double asterisk (**), may be trademarks or service marks of others.
Product Names In v v v v
this book, the following licensed programs have shortened names: “C/C++ for MVS/ESA” is referred to as either “C/MVS” or “C++/MVS”. “COBOL for MVS & VM” is referred to as “COBOL”. “DB2 for MVS/ESA” is referred to as “DB2”. “Language Environment for MVS & VM” is referred to as “Language Environment”. v “PL/I for MVS & VM” is referred to as “PL/I”.
xiv
Application Programming: Transaction Manager
Preface This book is a guide to application programming in a Data Communication (DC) environment. This book provides guidance for the tasks involved in creating and running application programs. It covers basic information on coding transaction management message calls for DC programs, and it provides information on creating REXX EXECs under Time-Sharing Option Extensions (TSO/E). This book is designed for IMS/ESA (hereafter referred to in this book as IMS) application and system programmers who use the DC environment of the IMS Transaction Manager (TM). The combination of the IMS Transaction Manager and the IMS Database Manager is equivalent to IMS DB/DC. This book also contains information on the Data Communications Control (DCCTL) environment. DCCTL is generated by IMS TM, contains no database components, and is designed to function as a transaction manager for non-IMS database management systems. This edition is available in hardcopy, PDF and BookManager formats. You can get the most current versions of the PDF and BookManager formats by going to the IMS Web site at www.ibm.com/ims and linking to the Library page.
Summary of Contents This publication has five parts: v Part 1, “Writing Application Programs” provides basic information on coding DL/I calls for IMS TM application programs. v Part 2, “Message Format Service” discusses application programming with MFS. v Part 3, “IMS Adapter for REXX” discusses the IMS interface for REXX (REXXTDLI), and provides information you can use to interactively develop REXX EXECs under TSO/E and execute them in IMS MPPs, BMPs, IFPs, or batch regions. v Part 4, “For Your Reference” provides additional reference information you need to write your application program. v Part 5, Appendixes contains the following: – Sample exit routines – Sample applications – MFS definitions for intersystem communication – Device compatibility with previous versions of MFS – Spool API – Using the DL/I test program
Prerequisite Knowledge IBM offers a wide variety of classroom and self-study courses to help you learn IMS. For a complete list, see the IMS home page on the World Wide Web at: www.ibm.com/ims Before using this book, you should understand the concepts of application design presented in IMS Version 7 Application Programming: Design Guide, which assumes you understand basic IMS concepts and the IMS/ESA environments.
This book is an extension to IMS Version 7 Application Programming: Design Guide. The IMS concepts explained in this manual are limited to those concepts pertinent to developing and coding application programs. You should also know how to use assembler language, C language, COBOL, Pascal, or PL/I.
Terminology In this book, the term external subsystems refers to subsystems that are not CCTL subsystems, unless indicated otherwise. One example of an external subsystem is DATABASE 2 (DB2). For definitions of terminology used in this book and references to related information in other books, see IMS Version 7 Master Index and Glossary.
Syntax Diagrams The following rules apply to the syntax diagrams used in this book: Arrow symbols Read the syntax diagrams from left to right, from top to bottom, following the path of the line. ───
Indicates the beginning of a statement.
───
Indicates that the statement syntax is continued on the next line.
───
Indicates that a statement is continued from the previous line.
───
Indicates the end of a statement.
Diagrams of syntactical units other than complete statements start with the ─── symbol and end with the ─── symbol. Conventions v Keywords, their allowable synonyms, and reserved parameters, appear in uppercase for MVS and OS/2 operating systems, and lowercase for UNIX operating systems. These items must be entered exactly as shown. v Variables appear in lowercase italics (for example, column-name). They represent user-defined parameters or suboptions. v When entering commands, separate parameters and keywords by at least one blank if there is no intervening punctuation. v Enter punctuation marks (slashes, commas, periods, parentheses, quotation marks, equal signs) and numbers exactly as given. v Footnotes are shown by a number in parentheses, for example, (1). v A symbol indicates one blank position. Required items Required items appear on the horizontal line (the main path). REQUIRED_ITEM
Optional Items Optional items appear below the main path. REQUIRED_ITEM
xvi
Application Programming: Transaction Manager
optional_item
If an optional item appears above the main path, that item has no effect on the execution of the statement and is used only for readability. REQUIRED_ITEM
optional_item
Multiple required or optional items If you can choose from two or more items, they appear vertically in a stack. If you must choose one of the items, one item of the stack appears on the main path. REQUIRED_ITEM
required_choice1 required_choice2
If choosing one of the items is optional, the entire stack appears below the main path. REQUIRED_ITEM
optional_choice1 optional_choice2
Repeatable items An arrow returning to the left above the main line indicates that an item can be repeated.
REQUIRED_ITEM repeatable_item
If the repeat arrow contains a comma, you must separate repeated items with a comma. , REQUIRED_ITEM repeatable_item
A repeat arrow above a stack indicates that you can specify more than one of the choices in the stack. Default keywords IBM-supplied default keywords appear above the main path, and the remaining choices are shown below the main path. In the parameter list following the syntax diagram, the default choices are underlined. REQUIRED_ITEM
default_choice
optional_choice optional_choice
IMS-specific syntax information Fragments Sometimes a diagram must be split into fragments. The fragments are represented by a letter or fragment name, set off like this: | A |.
Preface
xvii
The fragment follows the end of the main diagram. The following example shows the use of a fragment. STATEMENT item 1 item 2