CICS Application Programming Reference
CICS Application Programming Reference
IBM
Application Programming Reference
Version 4 Release 1
SC33-1170-03
CICS for MVS/ESA. IBM
Application Programming Reference
Version 4 Release 1
SC33-1170-03
Note!
Before using this information and the product it supports, be sure to read the general information under “Notices” on page vii.
This edition applies to Version 4 Release 1 of the IBM licensed program Customer Information Control System/Enterprise Systems
Architecture (CICS/ESA), program number 5655-018, and to all subsequent versions, releases, and modifications until otherwise indicated in
new editions. Consult the latest edition of the applicable IBM system bibliography for current information on this product.
This is the second edition of the Application Programming Reference for CICS/ESA 4.1. It is based on the first edition, SC33-1170-00, which is
now obsolete. Changes from the first edition are marked by the ‘+’ sign to the left of the changes. The vertical lines in the left-hand margins
indicate changes made between the CICS/ESA 3.3 edition and the CICS/ESA 4.1 first edition.
The CICS/ESA 3.3 edition remains applicable and current for users of CICS/ESA 3.3.
Order publications through your IBM representative or the IBM branch office serving your locality. Publications are not stocked at the address
given below.
At the back of this publication is a page entitled “Sending your comments to IBM”. If you want to make comments, but the methods described
are not available to you, please address them to:
When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any way it believes appropriate
without incurring any obligation to you.
Copyright International Business Machines Corporation 1982, 1997. All rights reserved.
US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Contents
Notices . . . . . . . . . . . . . . . . . . . . . . . . . . vii CONVERSE (3650-3680) . . . . . . . . . . . . . . . . 47
Programming interface information . . . . . . . . . . . . vii CONVERSE (3767) . . . . . . . . . . . . . . . . . . . 47
Trademarks and service marks . . . . . . . . . . . . . . vii CONVERSE (3770) . . . . . . . . . . . . . . . . . . . 48
CONVERSE (3790 full-function or inquiry) . . . . . . . 48
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . ix CONVERSE (3790 3270-display) . . . . . . . . . . . 49
Determining if a publication is current . . . . . . . . . ix CONVERSE (non-VTAM default) . . . . . . . . . . . . 53
Bibliography . . . . . . . . . . . . . . . . . . . . . . . . x CONVERSE (MRO) . . . . . . . . . . . . . . . . . . 53
CICS/ESA 4.1 library . . . . . . . . . . . . . . . . . x CONVERSE (System/3) . . . . . . . . . . . . . . . . 54
Other CICS books . . . . . . . . . . . . . . . . . . . xi CONVERSE (System/7) . . . . . . . . . . . . . . . . 54
Books from related libraries . . . . . . . . . . . . . . . xi CONVERSE (2260) . . . . . . . . . . . . . . . . . . . 55
CONVERSE (2741) . . . . . . . . . . . . . . . . . . . 56
Summary of changes . . . . . . . . . . . . . . . . . xiii CONVERSE (2770) . . . . . . . . . . . . . . . . . . . 57
Changes for the first edition of the CICS/ESA 4.1 book xiii CONVERSE (2780) . . . . . . . . . . . . . . . . . . . 57
| Changes for the second edition of the CICS/ESA 4.1 CONVERSE (3270 display) . . . . . . . . . . . . . . 58
| book . . . . . . . . . . . . . . . . . . . . . . . . . . xiv CONVERSE (3600 BTAM) . . . . . . . . . . . . . . . 58
CONVERSE (3735) . . . . . . . . . . . . . . . . . . . 60
Chapter 1. Commands . . . . . . . . . . . . . . . . . 1 CONVERSE (3740) . . . . . . . . . . . . . . . . . . . 60
Command format . . . . . . . . . . . . . . . . . . . . . 1 DELAY . . . . . . . . . . . . . . . . . . . . . . . . . 65
| CICS syntax notation used in this book . . . . . . . . . 1 DELETE . . . . . . . . . . . . . . . . . . . . . . . . 67
# Possible ABEND AICA timeout . . . . . . . . . . . . . . 2 DELETEQ TD . . . . . . . . . . . . . . . . . . . . . . 70
Argument values . . . . . . . . . . . . . . . . . . . . . 2 DELETEQ TS . . . . . . . . . . . . . . . . . . . . . . 71
| MVS/ESA restrictions . . . . . . . . . . . . . . . . . . . 4 DEQ . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
CICS-value data areas (cvdas) . . . . . . . . . . . . . . 5 DUMP TRANSACTION . . . . . . . . . . . . . . . . . 74
LENGTH options . . . . . . . . . . . . . . . . . . . . . 5 ENDBR . . . . . . . . . . . . . . . . . . . . . . . . . 77
NOHANDLE option . . . . . . . . . . . . . . . . . . . . 5 ENQ . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
RESP and RESP2 options . . . . . . . . . . . . . . . . 5 ENTER TRACENUM . . . . . . . . . . . . . . . . . . 80
| CICS/ESA interface to JES . . . . . . . . . . . . . . . . 6 EXTRACT ATTACH (LUTYPE6.1) . . . . . . . . . . . 82
| Using the CICS interface to JES . . . . . . . . . . . . . 8 EXTRACT ATTACH (MRO) . . . . . . . . . . . . . . 84
Commands by function . . . . . . . . . . . . . . . . . . 9 EXTRACT ATTRIBUTES (APPC) . . . . . . . . . . . 86
ABEND . . . . . . . . . . . . . . . . . . . . . . . . . 12 EXTRACT ATTRIBUTES (MRO) . . . . . . . . . . . . 87
ADDRESS . . . . . . . . . . . . . . . . . . . . . . . 13 EXTRACT LOGONMSG . . . . . . . . . . . . . . . . 88
ADDRESS SET . . . . . . . . . . . . . . . . . . . . . 15 EXTRACT PROCESS . . . . . . . . . . . . . . . . . 89
ALLOCATE (APPC) . . . . . . . . . . . . . . . . . . 16 EXTRACT TCT . . . . . . . . . . . . . . . . . . . . . 91
ALLOCATE (LUTYPE6.1) . . . . . . . . . . . . . . . 18 FORMATTIME . . . . . . . . . . . . . . . . . . . . . 92
ALLOCATE (MRO) . . . . . . . . . . . . . . . . . . . 20 | FREE . . . . . . . . . . . . . . . . . . . . . . . . . . 95
ASKTIME . . . . . . . . . . . . . . . . . . . . . . . . 21 FREE (APPC) . . . . . . . . . . . . . . . . . . . . . 96
ASSIGN . . . . . . . . . . . . . . . . . . . . . . . . . 22 FREE (LUTYPE6.1) . . . . . . . . . . . . . . . . . . 97
BIF DEEDIT . . . . . . . . . . . . . . . . . . . . . . 30 FREE (MRO) . . . . . . . . . . . . . . . . . . . . . . 98
BUILD ATTACH (LUTYPE6.1) . . . . . . . . . . . . . 31 FREEMAIN . . . . . . . . . . . . . . . . . . . . . . . 99
BUILD ATTACH (MRO) . . . . . . . . . . . . . . . . 33 GDS ALLOCATE . . . . . . . . . . . . . . . . . . . . 102
CANCEL . . . . . . . . . . . . . . . . . . . . . . . . 35 GDS ASSIGN . . . . . . . . . . . . . . . . . . . . . . 104
| CHANGE PASSWORD . . . . . . . . . . . . . . . . . 37 GDS CONNECT PROCESS . . . . . . . . . . . . . . 105
CHANGE TASK . . . . . . . . . . . . . . . . . . . . 38 GDS EXTRACT ATTRIBUTES . . . . . . . . . . . . . 107
CONNECT PROCESS . . . . . . . . . . . . . . . . . 39 GDS EXTRACT PROCESS . . . . . . . . . . . . . . 108
CONVERSE (VTAM default) . . . . . . . . . . . . . . 41 GDS FREE . . . . . . . . . . . . . . . . . . . . . . . 109
CONVERSE (APPC) . . . . . . . . . . . . . . . . . . 41 GDS ISSUE ABEND . . . . . . . . . . . . . . . . . . 110
CONVERSE (LUTYPE2/LUTYPE3) . . . . . . . . . . 42 GDS ISSUE CONFIRMATION . . . . . . . . . . . . . 111
CONVERSE (LUTYPE4) . . . . . . . . . . . . . . . . 42 GDS ISSUE ERROR . . . . . . . . . . . . . . . . . . 112
CONVERSE (LUTYPE6.1) . . . . . . . . . . . . . . . 43 GDS ISSUE PREPARE . . . . . . . . . . . . . . . . 113
CONVERSE (SCS) . . . . . . . . . . . . . . . . . . . 43 GDS ISSUE SIGNAL . . . . . . . . . . . . . . . . . . 114
CONVERSE (3270 logical) . . . . . . . . . . . . . . . 44 GDS RECEIVE . . . . . . . . . . . . . . . . . . . . . 115
CONVERSE (3600-3601) . . . . . . . . . . . . . . . . 44 GDS SEND . . . . . . . . . . . . . . . . . . . . . . . 117
CONVERSE (3600-3614) . . . . . . . . . . . . . . . . 45 GDS WAIT . . . . . . . . . . . . . . . . . . . . . . . 119
CONVERSE (3650 interpreter) . . . . . . . . . . . . . 45 GETMAIN . . . . . . . . . . . . . . . . . . . . . . . . 120
CONVERSE (3650-3270) . . . . . . . . . . . . . . . . 46 HANDLE ABEND . . . . . . . . . . . . . . . . . . . . 123
CONVERSE (3650-3653) . . . . . . . . . . . . . . . . 46 HANDLE AID . . . . . . . . . . . . . . . . . . . . . . 125
Contents v
vi CICS/ESA Application Programming Reference
Notices
The following paragraph does not apply in any country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION “AS IS” WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or
implied warranties in certain transactions, therefore this statement may not apply to you.
References in this publication to IBM products, programs, or services do not imply that IBM intends to make these available in
all countries in which IBM operates. Any reference to an IBM product, program, or service is not intended to state or imply that
only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not
infringe any of the intellectual property rights of IBM may be used instead of the IBM product, program, or service. The
evaluation and verification of operation in conjunction with other products, except those expressly designated by IBM, are the
responsibility of the user.
Licensees of this program who wish to have information about it for the purpose of enabling: (i) the exchange of information
between independently created programs and other programs (including this one) and (ii) the mutual use of the information
which has been exchanged, should contact Laboratory Counsel, MP151, IBM United Kingdom Laboratories, Hursley Park,
Winchester, Hampshire, England SO21 2JN. Such information may be available, subject to appropriate terms and conditions,
including in some cases, payment of a fee.
IBM may have patents or pending patent applications covering subject matter in this document. The furnishing of this
document does not give you any license to these patents. You can send license inquiries, in writing, to the IBM Director of
Licensing, IBM Corporation, 500 Columbus Avenue, Thornwood, New York 10594, U.S.A..
General-use programming interfaces allow the customer to write programs that obtain the services of CICS.
ACF/VTAM AFP AT
BookManager C/370 CICS
CICS OS/2 CICS/ESA CICS/MVS
CICS/VSE DATABASE 2 DB2
ESA/370 IBM IBMLink
IMS/ESA MVS/ESA MVS/SP
RACF System/370 Systems Application Architecture
SAA SQL/DS VTAM
Who this book is for: The book is intended primarily for use by application programmers, but will also be useful to system
programmers and systems analysts.
What you need to know to understand this book: We assume that you have some experience in writing programs in
COBOL, C, PL/I, or assembler language. You should also have a knowledge of the CICS concepts and terminology introduced
in the CICS/ESA 3.3 Facilities and Planning Guide and you should have read the CICS Application Programming Primer (VS
COBOL II) and the CICS/ESA Application Programming Guide.
How to use this book: This book is for reference. Each of the commands has a standard format, as follows:
The syntax of the command
A description of what the command does
An alphabetical list of the options and their functions
An alphabetical list of conditions, and their causes, that can occur during execution of a command.
Notes on terminology
ASM is used sometimes as the abbreviation for assembler language.
| What this book does not cover: The EXEC CICS commands for system programming; that is COLLECT, DISABLE,
| ENABLE, INQUIRE, PERFORM, RESYNC, and SET are not covered in this book but you will find them in the CICS/ESA
| System Programming Reference.
The EXEC CICS FEPI commands available for use with the CICS/ESA Front End Programming Interface feature are not
discussed in this book, but in the CICS/ESA Front End Programming Interface Feature User’s Guide.
For CICS Transaction Server books, these softcopy updates appear regularly on the Transaction Processing and Data
Collection Kit CD-ROM, SK2T-0730-xx. Each reissue of the collection kit is indicated by an updated order number suffix (the
-xx part). For example, collection kit SK2T-0730-06 is more up-to-date than SK2T-0730-05. The collection kit is also clearly
dated on the cover.
Here’s how to determine if you are looking at the most current copy of a publication:
A publication with a higher suffix number is more recent than one with a lower suffix number. For example, the publication
with order number SC33-0667-02 is more recent than the publication with order number SC33-0667-01. (Note that suffix
numbers are updated as a product moves from release to release, as well as for hardcopy updates within a given release.)
When the softcopy version of a publication is updated for a new collection kit the order number it shares with the hardcopy
version does not change. Also, the date in the edition notice remains that of the original publication. To compare softcopy
with hardcopy, and softcopy with softcopy (on two editions of the collection kit, for example), check the last two characters
of the publication’s filename. The higher the number, the more recent the publication. For example, DFHPF104 is more
recent than DFHPF103. Next to the publication titles in the CD-ROM booklet and the readme files, asterisks indicate
publications that are new or changed.
Updates to the softcopy are clearly marked by revision codes (usually a “#” character) to the left of the changes.
General
CICS Family: Library Guide GC33-1226 April 1995
Master Index SC33-1187 October 1994
User’s Handbook SX33-1188 April 1997
Glossary (softcopy only) GC33-1189 n/a
Administration
Installation Guide GC33-1163 April 1997
System Definition Guide SC33-1164 April 1997
Customization Guide SC33-1165 April 1997
Resource Definition Guide SC33-1166 April 1997
Operations and Utilities Guide SC33-1167 April 1997
CICS-Supplied Transactions SC33-1168 April 1997
Programming
Application Programming Guide SC33-1169 October 1994
Application Programming Reference SC33-1170 April 1997
System Programming Reference SC33-1171 April 1997
Sample Applications Guide SC33-1173 October 1994
Distributed Transaction Programming Guide SC33-1174 October 1994
Front End Programming Interface User’s Guide SC33-1175 October 1994
Diagnosis
Problem Determination Guide SC33-1176 October 1994
Messages and Codes GC33-1177 April 1997
Diagnosis Handbook LX33-6093 October 1994
Diagnosis Reference LY33-6082 April 1997
Data Areas LY33-6083 April 1997
Supplementary Data Areas LY33-6081 October 1994
Closely-Connected Program Interface LY33-6084 November 1996
Communication
Intercommunication Guide SC33-1181 April 1997
Server Support for CICS Clients SC33-1591 February 1996
CICS Family: Inter-product Communication SC33-0824 October 1996
CICS Family: Communicating from CICS on System/390 SC33-1697 October 1996
Special topics
Recovery and Restart Guide SC33-1182 October 1994
Performance Guide SC33-1183 October 1994
CICS-IMS Database Control Guide SC33-1184 October 1994
CICS-RACF Security Guide SC33-1185 October 1994
Shared Data Tables Guide SC33-1186 October 1994
External CICS Interface SC33-1390 April 1997
CICS ONC RPC Feature for MVS/ESA Guide SC33-1119 February 1996
CICS Web Interface Guide SC33-1892 November 1996
The book that you are reading was republished in hardcopy format in April 1997 to incorporate updated information previously
available only in softcopy. The right-hand column in the above table indicates the latest hardcopy editions of the CICS/ESA
books available in April 1997. A book with a date earlier than April 1997 remains the current edition for CICS/ESA 4.1. Note
that it is possible that other books in the library will be updated after April 1997.
When a new order is placed for the CICS/ESA 4.1 product, the books shipped with that order will be the latest hardcopy
editions.
The style of IBM covers changes periodically. Books in this library have more than one style of cover.
For information about the softcopy books, see “Determining if a publication is current” on page ix. The softcopy books are
regularly updated to include the latest information.
CICS Clients
CICS Clients: Administration, SC33-1436
CICS Family: Client/Server Programming, SC33-1435
These books contain information about IMS application
Books from related libraries programming for CICS users, and tell you how to write
online, batch, or CICS shared database programs that use
MVS: see the following books:
the EXEC DLI interface or the DL/I CALL interface with the
MVS/ESA System Programming Library: Application DL/I interface block (DIB). If you use the DL/I CALL interface
Development 31-Bit Addressing, GC28-1820 with the TCA, you should see the CICS/OS/VS Version 1
MVS/ESA System Programming Library: Application Release 7 Application Programmer’s Reference Manual
Development Guide, GC28-1821 (Macro Level).
MVS/ESA System Programming Library: System
Note: The EXEC DLI interface is no longer documented in
Generation, GC28-1825
the CICS/ESA Application Programming Reference.
MVS/ESA System Programming Library: Initialization
and Tuning, GC28-1828 Systems Network Architecture: See the following
MVS/ESA System Programming Library: Application Systems Network Architecture (SNA) book for further
Development Guide, GC28-1852 information about SNA:
MVS/ESA System Programming Library: Application
Development Guide - Extended Addressability, Sessions between Logical Units, GC20-1868.
GC28-1854
MVS/ESA System Programming Library: Application Systems Application Architecture: See the following
Development Macro Reference, GC28-1857 Systems Application Architecture (SAA) for further
| MVS/ESA JCL User’s Guide, GC28-1473 information about SAA:
| MVS/ESA Operations: Systems Commands, GC28-1826 SAA Common Programming Interface Communications
ESA/370 Principles of Operation, SA22-7200. Reference, SC26-4399.
Data facility product: SQL: For information about executing SQL in a CICS
MVS/ESA Data Administration: Macro Instruction application program see the following books:
Reference, SC26-4506 IBM DATABASE 2 Application Programming Guide for
MVS/ESA VSAM Administration: Macro Instruction CICS Users, SC26-4080
Reference, SC26-4517 IBM DATABASE 2 Reference, SC26-4078.
MVS/ESA VSAM Administration Guide, SC26-4518.
Other related books: You may also want to refer to the
IMS: For information about IMS, see the following books. following IBM books:
If you use the CICS-DL/I interface, see one of the following
IMS books: Distributed Processing Programming Executive/Distributed
Presentation Services (DPPX/DPS):
IMS/VS Version 2 Application Programming for
CICS/OS/VS Users, SC26-4177 DPPX/Distributed Presentation Services Version 2
IMS Application Programming: Design Guide, System Programming Guide, SC33-0117
SC26-4279
IMS Application Programming: EXEC DLI Commands OS/VS COBOL Compiler and Library Programmer’s Guide,
manual, SC26-4280 SC28-6483
IMS Application Programming: DL/I Calls manual,
VS COBOL II Application Programming Guide, SC26-4045
SC26-4274.
OS PL/I Version 2 Programming Guide, SC26-4307
Preface xi
An Introduction to the IBM 3270 Information Display System,
GA27-2739
Chapter 1. Commands 3
If the UNALIGNED attribute is added to the ENTRY string. The length is equal to the maximum length
declarations generated by the CICS translator by a allowed for the name. The value of the character string
DEFAULT DESCRIPTORS statement, data-area or is the name to be used by the argument.
pointer-reference arguments to CICS commands must also
“filename”, as used in FILE(filename), specifies the
be UNALIGNED. Similarly for the ALIGNED attribute,
name of the file. It has 1–8 characters from A–Z, 0–9,
data-area or pointer-reference arguments must be ALIGNED.
$, @, and #, (lowercase characters are converted to
uppercase).
Many commands involve the transfer of data between the
application program and CICS. “systemname”, as used in SYSID(systemname),
specifies the name of the system the request is directed
In most cases, the length of the data to be transferred must to. It has 1–4 characters from A–Z, 0–9, $, @, and #,
be provided by the application program. However, if a data (lowercase characters are converted to uppercase).
area is specified as the source or target, it is not necessary
“label” refers to a destination address to which control is
to provide the length explicitly, because the
transferred. It can be replaced by the label of the
command-language translator generates a default length
destination instruction or by the label of an address
value of either STG(data-area) or CSTG(data-area), as
constant for the destination. This constant must not
appropriate.
specify a length.
You can also use the expression =A(dest) where “dest”
Assembler-language argument values is a relocatable expression denoting the destination.
In general, an argument may be either the address of the For example, the following commands are equivalent:
data or the data itself (in assembler-language terms, either a HANDLE CONDITION ERROR(DEST)
relocatable expression or an absolute expression). HANDLE CONDITION ERROR(ADCON)
HANDLE CONDITION ERROR(=A(DEST))
A relocatable expression must not contain unmatched ..
.
brackets (outside quotation marks) or unmatched quotation DEST BR 14
marks (apart from length-attribute references). If this rule is ADCON DC A(DEST)
obeyed, any expression can be used, including literal
constants, such as =AL2(100), forms such as 20(0,R11), and “hhmmss” can be replaced by a self-defining decimal
forms that use the macro-replacement facilities. constant, or an assembler-language reference to a field
defined as PL4. The value must be of the form
An absolute expression must be a single term that is either a 0HHMMSS+ where:
length-attribute reference, or a self-defining constant. HH represents hours from 00 through 99
MM represents minutes from 00 through 59
Care must be taken with equated symbols, which should be
SS represents seconds from 00 through 59.
used only when referring to registers (pointer references). If
an equated symbol is used for a length, for example, it is Many commands involve the transfer of data between the
treated as the address of the length and an unpredictable application program and CICS.
error occurs.
In most cases, the length of the data to be transferred must
The argument values can be replaced as follows: be provided by the application program. However, if a data
“data-value” can be replaced by a relocatable expression area is specified as the source or target, it is not necessary
that is an assembler-language reference to data of the to provide the length explicitly, because the
correct type for the argument, or by a constant of the command-language translator generates a default length.
correct type for the argument.
For example:
“data-area” can be replaced by a relocatable expression
xxx DC CL8
that is an assembler-language reference to data of the
.
correct type for the argument.
.
“cvda” is described in “CICS-value data areas (cvdas)” EXEC CICS ... LENGTH(L'xxx)
on page 5.
“ptr-value” can be replaced by an absolute expression
that is an assembler-language reference to a register. | MVS/ESA restrictions
“ptr-ref” can be replaced by an absolute expression that | The following general restrictions apply to all CICS
is an assembler-language language reference to a | commands:
register.
| The restrictions that apply to CICS commands that access
“name” can be replaced either by a character string in | user
single quotation marks, or by an assembler-language
language relocatable expression reference to a character | The program must be in primary addressing mode when
There are options on a number of commands that describe # For transient data, and file control commands, the data set
or define a resource. CICS supplies, in CICS-value data definitions may themselves impose further restrictions.
areas, the values associated with these options. The options
are shown in the syntax of the commands with the term
“cvda” in parentheses. NOHANDLE option
You pass a cvda value in two different ways: You can use the NOHANDLE option with any command to
specify that you want no action to be taken for any condition
You can assign a cvda value with the translator routine
| or AID resulting from the execution of that command. For
DFHVALUE. This allows you to change a cvda value in
| further information about the NOHANDLE option, see the
the program as the result of other run-time factors.
| CICS/ESA Application Programming Guide.
For example:
MOVE DFHVALUE(NOTPURGEABLE) TO AREA-A. | Note that using the C language implies NOHANDLE on all
EXEC CICS WAIT EXTERNAL ECBLIST() NUMEVENTS() | commands.
PURGEABILITY(AREA-A).
If the required action is always the same, you can
declare the value directly. RESP and RESP2 options
For example: You can use the RESP option with any command to test
EXEC CICS WAITCICS ECBLIST() NUMEVENTS() PURGEABLE. whether a condition was raised during its execution. With
some commands, when a condition can be raised for more
You receive a cvda value by defining a fullword binary data | than one reason, you can, if you have already specified
area and then testing the returned value with the translator | RESP, use the RESP2 option to determine exactly why a
routine DFHVALUE. For example: condition occurred.
EXEC CICS CONNECT PROCESS .... STATE(AREA-A) RESP(xxx)
IF AREA-A = DFHVALUE(ALLOCATED) .... “xxx” is a user-defined fullword binary data area. On
IF AREA-A = DFHVALUE(CONFFREE) ....
return from the command, it contains a value
corresponding to the condition that may have been
raised, or to a normal return, that is,
LENGTH options xxx=DFHRESP(NORMAL). You can test this value by
means of DFHRESP, as follows:
In VS COBOL II, PL/I, and assembler language, the
translator defaults certain lengths, # EXEC CICS WRITEQ TS FROM(abc)
# QUEUE(qname)
# Apar PQ06624 # NOSUSPEND
# RESP(xxx)
# Documentation for Apar PQ06624 added 20/08/97 # RESP2(yyy)
# .
# .
# if the NOLENGTH translator option is not specified. This # IF xxx=DFHRESP(NOSPACE) THEN ...
means they are optional in programs that specify data areas.
The above form of DFHRESP applies to both COBOL
In OS/VS COBOL and C, all LENGTH options must be and PL/I.
specified. An example of a similar test in C:
When a CICS command offers the LENGTH option, it is
generally expressed as a signed halfword binary value. This
puts a theoretical upper limit of 32 763 bytes on LENGTH. In
Chapter 1. Commands 5
switch (xxx) { | JES2
case DFHRESP(NORMAL) : break;
case DFHRESP(INVREQ) : Invreq_Cond(); | Number of SYSOUT data sets
break; | There is an upper limit to the number of data sets
default : Errors(); | that can be created by a single job. If this limit is
} | exceeded during a CICS run, subsequent
An example of a similar test in assembler language: | SPOOLOPEN OUTPUT requests return the
| ‘ALLOCERR’ condition.
CLC xxx,DFHRESP(NOSPACE)
| Output queue and job queue sizes
which the translator changes to:
CLC xxx,=F'18' | The number of Job Output Elements and Job Queue
| Elements may need to be increased to
As the use of RESP implies NOHANDLE, you must be | accommodate the additional output processing.
careful when using RESP with the RECEIVE command, | Timely processing of the data sets created using this
because NOHANDLE overrides the HANDLE AID | interface minimizes this requirement.
command as well as the HANDLE CONDITION
command, with the result that PF key responses are | Spool space
ignored. | Although the spool space for a data set created
| using this interface is reused after it has been
RESP2(yyy)
| processed, some control information is retained for
“yyy” is a user-defined fullword binary data area. On
| the life of the job. You may have to increase the
return from the command, it contains a value that further
| spool file allocation to allow for this.
qualifies the response to certain commands. Unlike the
RESP values, RESP2 values have no associated
symbolic names and there is no translator built-in | JES3
function corresponding to DFHRESP, so you must test
| Job queue size
the fullword binary value itself. RESP2 values are given
in the description of each command that returns them. | The number of Job Queue Elements may need to be
| increased to accommodate the additional output
| processing. Also, more JSAM buffers may be
| CICS/ESA interface to JES | required. Timely processing of the data sets created
| using this interface minimizes this requirement.
| The CICS interface to JES (the Job Entry Subsystem | Spool space
| component of MVS) provides specialist programmer EXEC
| commands for accessing the system spool files maintained | Although the spool space for a data set created
| by JES2 and JES3. You can support the requirements of | using this interface is reused after it has been
| other products to exchange files with other systems | processed, some control information is retained for
| connected through a JES remote spooling communications | the life of the job. You may have to increase the
| subsystem (RSCS) network. The term JES is used to refer | spool file allocation to allow for this.
| to both JES2 and JES3.
| There are internal limits in JES2 and JES3 that you should
| consider when you are designing applications to use this
| interface. Some of these internal limits can depend on which
| release of JES you are using. You should therefore read the
| following in conjunction with the appropriate JES
| documentation.
SPOOLOPEN OUTPUT
USERID('*') NODE('*')
CICS JES
TOKEN JES SPOOL
SPOOLWRITE TOKEN
SPOOLWRITE TOKEN
SPOOLWRITE TOKEN
SPOOLCLOSE TOKEN
MVS VM1
RSCS
CICS JES
JES SPOOL
SPOOLOPEN
OUTPUT
USERID ('USER1')
NODE ('VM1')
USER1
MVS
SPOOLOPEN INPUT
USERID('SYS1CICS')
VM1
CICS JES TOKEN
RSCS
SPOOLREAD TOKEN JES SPOOL
RECORD
CP TAG DEV PUN
Data Set NODE('MVS')
Name USERID('SYS1CICS')
SPOOLREAD TOKEN
ENDFILE RESP
SPOOLCLOSE TOKEN
Chapter 1. Commands 7
| transaction using the interface, their files can be
| Using the CICS interface to JES | differentiated by using different writer names or different
| classes within a single writer name. Furthermore, you should
| To use the CICS interface to JES, you must code DFHSIT
| ensure that the transactions either terminate or wait for a
| SPOOL=YES.
| short period between SPOOLCLOSE and a subsequent
| You must specify RESP or NOHANDLE on the EXEC CICS | SPOOLOPEN. If you do not do this, one transaction can
| SPOOLCLOSE, SPOOLOPEN, SPOOLREAD, and | prevent others from using the interface.
| SPOOLWRITE commands. RESP bears a one-to-one
| correspondence with HANDLE CONDITION. If you do not | JES exits
| code RESP, your program abends. You can also code the
| Both JES2 and JES3 provide a way of screening incoming
| RESP2 option.
| files. For JES2, the TSO/E Interactive Data Transmission
| NOHANDLE, RESP, and RESP2 are not shown in the syntax | Facility Screening and Notification exit is used. The JES3
| boxes or in the option lists for the EXEC CICS SPOOL | equivalent is the Validate Incoming Netdata File exit.
| commands described in this manual. At the end of the
| You should review any use your installation makes of these
| description of each spool command, there is a list of RESP
| exits to ensure that files that are to be read using the CICS
| values and the RESP2 values that are specific to the
| interface to JES are correctly processed.
| CICS-JES interface.
| In case (3), the transaction should then retrieve the file with
| SPOOLREAD commands, and proceed to SPOOLCLOSE as
| rapidly as possible to release the path for other users. This
| is especially important for input from JES because the input
| path is single-threaded. When there is more than one
Built-in functions
APPC mapped conversation
BIF DEEDIT
ALLOCATE (APPC)
CONNECT PROCESS
CONVERSE (APPC) Console support
EXTRACT ATTRIBUTES (APPC) WRITE OPERATOR
EXTRACT PROCESS
FREE (APPC)
ISSUE ABEND Diagnostic services
ISSUE CONFIRMATION DUMP TRANSACTION
ISSUE ERROR ENTER TRACENUM
ISSUE PREPARE
ISSUE SIGNAL (APPC)
RECEIVE (APPC) Environment services
SEND (APPC) ADDRESS
WAIT CONVID ADDRESS SET
ASSIGN
Authentication
| CHANGE PASSWORD Exception support
SIGNOFF HANDLE CONDITION
SIGNON IGNORE CONDITION
| VERIFY PASSWORD POP HANDLE
PUSH HANDLE
Chapter 1. Commands 9
File control Syncpoint
DELETE SYNCPOINT
ENDBR SYNCPOINT ROLLBACK
READ
READNEXT
READPREV
Task control
RESETBR CHANGE TASK
REWRITE DEQ
STARTBR ENQ
UNLOCK SUSPEND
WRITE WAIT EXTERNAL
WAITCICS
Interval control
ASKTIME
Temporary storage control
CANCEL DELETEQ TS
DELAY READQ TS
FORMATTIME WRITEQ TS
POST
RETRIEVE
START
Terminal control
WAIT EVENT ALLOCATE (LUTYPE6.1)
ALLOCATE (MRO)
BUILD ATTACH (LUTYPE6.1)
Journaling BUILD ATTACH (MRO)
WAIT JOURNALNUM CONVERSE (default)
WRITE JOURNALNUM CONVERSE (LUTYPE2/LUTYPE3)
CONVERSE (LUTYPE4)
CONVERSE (LUTYPE6.1)
Monitoring CONVERSE (MRO)
MONITOR CONVERSE (SCS)
CONVERSE (System/3)
CONVERSE (System/7)
Program control CONVERSE (2260)
LINK CONVERSE (2741)
LOAD CONVERSE (2770)
RELEASE CONVERSE (2780)
RETURN CONVERSE (3270 display)
XCTL CONVERSE (3270 logical)
CONVERSE (3600 BTAM)
CONVERSE (3600-3601)
Security CONVERSE (3600-3614)
QUERY SECURITY CONVERSE (3650 interpreter)
CONVERSE (3650-3270)
CONVERSE (3650-3653)
| Spool Interface (JES) CONVERSE (3650-3680)
| SPOOLCLOSE CONVERSE (3735)
| SPOOLOPEN INPUT CONVERSE (3740)
| SPOOLOPEN OUTPUT CONVERSE (3767)
| SPOOLREAD CONVERSE (3770)
| SPOOLWRITE CONVERSE (3790 full-function or inquiry)
CONVERSE (3790 3270-display)
EXTRACT ATTACH (LUTYPE6.1)
Storage control EXTRACT ATTACH (MRO)
FREEMAIN EXTRACT ATTRIBUTES (MRO)
GETMAIN EXTRACT LOGONMSG
EXTRACT TCT
FREE (LUTYPE6.1)
| FREE
Chapter 1. Commands 11
ABEND
ABEND
Function
Terminate task abnormally.
Command syntax
──ABEND──┬──────────────┬──┬────────┬──┬────────┬──"
└─ABCODE(name)─┘ └─CANCEL─┘ └─NODUMP─┘
ABEND options
ABCODE(name)
specifies that main storage related to the task that is
| being terminated is to be dumped. The ABCODE is
| used as a transaction dumpcode to identify the dump.
| The name should have four characters and should not
| contain any leading or imbedded blanks. If ABCODE is
| not coded, the dump is identified by ????.
Do not start the name with the letter A, because this is
reserved for CICS itself.
CANCEL
specifies that exits established by HANDLE ABEND
commands are to be ignored. An ABEND CANCEL
command cancels all exits at any level in the task (and
terminates the task abnormally). If the PL/I STAE
execution-time option has been specified, an abnormal
termination exit is established by PL/I. This exit is
revoked by the CANCEL option.
NODUMP
specifies an abend without causing a dump to be taken.
ADDRESS
Function
Get access to CICS storage areas.
Command syntax
──ADDRESS──┬───────────────────┬──┬───────────────┬──┬──────────────┬──┬──────────────┬──────────────────
└─COMMAREA(ptr-ref)─┘ └─ACEE(ptr-ref)─┘ └─CWA(ptr-ref)─┘ └─EIB(ptr-ref)─┘
──┬────────────────┬──┬──────────────┬──"
└─TCTUA(ptr-ref)─┘ └─TWA(ptr-ref)─┘
Conditions:
INVREQ
ADDRESS accesses the following areas: is used to pass information between application
programs. The pointer reference is set to the address of
| the communication area available to the invoked
the current COMMAREA. If the COMMAREA does not
| program (COMMAREA)
exist, the pointer reference is set to the null value,
| the access control environment element (ACEE)
X'FF000000'.
| the common work area (CWA)
| the EXEC interface block (EIB) In C, you must use ADDRESS COMMAREA to get the
| the terminal control table user area (TCTUA) address of the communication area, because this is not
| the transaction work area (TWA). passed as an argument to a C main function.
Chapter 1. Commands 13
ADDRESS
TWA(ptr-ref)
passes information between application programs but
only if they are in the same task. The pointer reference
is set to the address of the TWA. If a TWA does not
exist, the pointer reference is set to the null value,
X'FF000000'.
If TASKDATALOC(ANY) is defined on the transaction
definition, the address of the data may be above or
below the 16MB line.
If TASKDATALOC(BELOW) is defined on the transaction
definition, and the data resides above the 16MB line, the
data is copied below the 16MB line, and the address of
this copy is returned.
ADDRESS condition
INVREQ
indicates that the TCTUA option is not allowed in a
server program invoked by a distributed program link
(RESP2=200).
Default action: terminate the task abnormally.
ADDRESS SET
Function
Set the address of a structure or pointer.
Command syntax
──ADDRESS──┬─SET(data-area)──USING(ptr-ref)─┬──"
| └─SET(ptr-ref)──USING(data-area)─┘
USING(ptr-ref/data-area)
| supplies a pointer value.
Chapter 1. Commands 15
ALLOCATE (APPC)
ALLOCATE (APPC)
Function
Acquire a session to a remote APPC logical unit for use by an APPC mapped conversation.
Command syntax
──ALLOCATE──┬─SYSID(systemname)──┬───────────────┬─┬──┬─────────┬──┬─────────────┬──"
│ └─PROFILE(name)─┘ │ └─NOQUEUE─┘ └─STATE(cvda)─┘
| └─PARTNER(name)────────────────────────┘
Conditions:
| CBIDERR, INVREQ, NETNAMEIDERR, PARTNERIDERR, SYSBUSY, SYSIDERR
ALLOCATE acquires the session and optionally selects a set ALLOCATE (APPC) options
of session-processing options. CICS makes one of the
sessions associated with the named system available to the | NOQUEUE
application program. | overrides the default action when a SESSBUSY or
| SYSBUSY condition arises. These conditions indicate
CICS returns, in EIBRSRCE in the EIB, the 4-byte CONVID | that the session requested is not immediately available.
(conversion identifier) that the application program uses in all | The default action is to suspend application execution
subsequent commands that relate to the conversation. | until the session is available. NOQUEUE inhibits this
| waiting; control returns immediately to the application
| If the session requested is not available, the application is | program instruction following the command.
| suspended until the session does become available. In such
| a case, the suspension of the application can be prevented | PARTNER(name)
| by specifying either the NOQUEUE or the NOSUSPEND | specifies the name (8 characters) of a set of definitions
| option. NOSUSPEND is still supported as an equivalent for | that include the names of a remote LU (NETNAME) and
| NOQUEUE, but NOQUEUE is the preferred keyword. | a communication profile to be used on the allocated
| session. You can use this option as an alternative to
| A session is available for allocation only if it is all of the | specifying SYSID and PROFILE explicitly.
| following:
PROFILE(name)
| A contention winner specifies the name (1–8 characters) of a set of
| Already bound session-processing options that are to be used during
| Not already allocated. the execution of mapped commands for the session
| specified in the SYSID option. If you specify SYSID and
# The action taken by CICS if a session is not immediately | omit PROFILE, a default profile (DFHCICSA) is selected.
# available depends on whether you specify NOQUEUE (or the
# equivalent NOSUSPEND option) and also on whether your STATE(cvda)
# application has executed a HANDLE command for the gets the state of the current conversation. The cvda
# SYSBUSY condition. The possible combinations are shown value returned by CICS is ALLOCATED.
# below:
SYSID(systemname)
# HANDLE for SYSBUSY condition issued | specifies the name (1–4 characters) by which the remote
# The command is not queued and control is returned | APPC LU is known to this CICS. This option requests
# immediately to the label specified in the HANDLE that one of the sessions to the named system is to be
# command, whether or not you have specified allocated.
# NOQUEUE. pt.No HANDLE issued for SYSBUSY
# condition pd.If you have specified NOQUEUE, the
# request is not queued and control is returned
ALLOCATE (APPC) conditions
# immediately to your application program. The CBIDERR
# SYSBUSY code (X'D3') is set in the EIBRCODE field of occurs if the requested PROFILE cannot be found.
# the EXEC interface block. You should test this field
Default action: terminate the task abnormally.
# immediately after issuing the ALLOCATE command.
# If you have omitted the NOQUEUE option, CICS queues INVREQ
# the request (and your application waits) until a session is occurs if the ALLOCATE command is not valid for the
# available. device to which it is directed.
| NETNAMEIDERR
| occurs if the name specified in the NETNAME parameter
| of the RDO definition for the PARTNER specified on the
| allocate command is invalid.
| Default action: terminate the task abnormally.
| PARTNERIDERR
| occurs if the name specified in the PARTNER option is
| not recognized by CICS.
| Default action: terminate the task abnormally.
SYSBUSY
| occurs for one of the following reasons:
SYSIDERR
occurs if CICS is unable to provide the application
program with a suitable session, for one of the following
reasons:
Chapter 1. Commands 17
ALLOCATE (LUTYPE6.1)
ALLOCATE (LUTYPE6.1)
Function
Acquire a session to a remote LUTYPE6.1 logical unit.
Command syntax
──ALLOCATE──┬─SESSION(name)─────┬──┬───────────────┬──┬─────────┬──"
└─SYSID(systemname)─┘ └─PROFILE(name)─┘ └─NOQUEUE─┘
Conditions:
CBIDERR, EOC, INVREQ, SESSBUSY, SESSIONERR, SYSBUSY, SYSIDERR
NOQUEUE SESSBUSY
overrides the default action when a SESSBUSY or occurs if the request for the specified session cannot be
SYSBUSY condition arises. These conditions indicate serviced immediately. This is only possible if
that the session requested is not immediately available. NOQUEUE is set.
The default action is to suspend application execution Default action: queue the request until a session is
until the session is available. NOQUEUE inhibits this available.
waiting; control returns immediately to the application
program instruction following the command. SESSIONERR
occurs if the name specified in the SESSION option is
PROFILE(name) not that of an LUTYPE6.1 session TCTTE, or if the
specifies the name (1–8 characters) of a set of session cannot be allocated because it is out of service.
session-processing options that are to be used during
Default action: terminate the task abnormally.
execution of terminal control commands for the session
specified in the SYSID or SESSION options. If the SYSBUSY
PROFILE option is omitted, a default profile | occurs for one of the following reasons:
(DFHCICSA) is selected.
| The request for a session cannot be serviced
SESSION(name) | immediately. This is only possible if NOQUEUE is
specifies the symbolic identifier (1–4 characters) of a | set.
session TCTTE. This option specifies the alternate
| The ALLOCATE command is issued when
facility to be used.
| persistent session recovery is still in process and
SYSID(systemname) | the sessions needed to satisfy the command are not
specifies the name (1–4 characters) of a system TCTSE. | yet recovered.
This option specifies that one of the sessions to the
| Default action: ignore the condition.
named system is to be allocated.
SYSIDERR
occurs if CICS is unable to provide the application
program with a suitable session, for one of the following
reasons:
Chapter 1. Commands 19
ALLOCATE (MRO)
ALLOCATE (MRO)
Function
Acquire an MRO session.
Command syntax
──ALLOCATE──SYSID(systemname)──┬─────────┬──┬─────────────┬──"
└─NOQUEUE─┘ └─STATE(cvda)─┘
Conditions:
INVREQ, SYSBUSY, SYSIDERR
STATE(cvda)
gets the state of the current conversation. The cvda
value returned by CICS is ALLOCATED.
SYSID(systemname)
specifies the name (1–4 characters) of a system TCTSE.
This option specifies that one of the sessions to the
named system is to be allocated.
ASKTIME
Function
Request current date and time of day.
Command syntax
──ASKTIME──┬────────────────────┬──"
└─ABSTIME(data-area)─┘
ASKTIME option
ABSTIME(data-area)
specifies the data area for the time, in packed decimal,
since 00:00 on 1 January 1900 (in milliseconds rounded
to the nearest hundredth of a second).
| You can use FORMATTIME to change the data into
| other familiar formats.
| For example, after execution of:
| EXEC CICS ASKTIME ABSTIME(utime)
| “utime” contains a value similar in format to
| 002837962864820.
The format of “data-area” is:
COBOL: PIC S9(15) COMP-3
C char data_area[8];
PL/I: FIXED DEC(15)
ASM: PL8
Chapter 1. Commands 21
ASSIGN
ASSIGN
Function
Request values from outside the application program’s local environment.
Command syntax
┌──
───────────────────────────┐ ┌─────────────────────────────┐
──ASSIGN───*┬─────────────────────────┬┴───*┬─────────────────────────┬┴──"
├─ABCODE(data-area)───────┤ ├─MAPWIDTH(data-area)─────┤
├─ABDUMP(data-area)───────┤ ├─MSRCONTROL(data-area)───┤
├─ABPROGRAM(data-area)────┤ ├─NATLANGINUSE(data-area)─┤
├─ALTSCRNHT(data-area)────┤ ├─NETNAME(data-area)──────┤
├─ALTSCRNWD(data-area)────┤ ├─NEXTTRANSID(data-area)──┤
├─APLKYBD(data-area)──────┤ ├─NUMTAB(data-area)───────┤
├─APLTEXT(data-area)──────┤ ├─OPCLASS(data-area)──────┤
├─APPLID(data-area)───────┤ ├─OPERKEYS(data-area)─────┤
| ├─ASRAINTRPT(data-area)───┤ ├─OPID(data-area)─────────┤
├─ASRAKEY(cvda)───────────┤ ├─OPSECURITY(data-area)───┤
├─ASRAPSW(data-area)──────┤ ├─ORGABCODE(data-area)────┤
├─ASRAREGS(data-area)─────┤ ├─OUTLINE(data-area)──────┤
| ├─ASRASPC(cvda)───────────┤ ├─PAGENUM(data-area)──────┤
| ├─ASRASTG(cvda)───────────┤ ├─PARTNPAGE(data-area)────┤
├─BTRANS(data-area)───────┤ ├─PARTNS(data-area)───────┤
├─CMDSEC(data-area)───────┤ ├─PARTNSET(data-area)─────┤
├─COLOR(data-area)────────┤ ├─PRINSYSID(data-area)────┤
├─CWALENG(data-area)──────┤ ├─PROGRAM(data-area)──────┤
├─DEFSCRNHT(data-area)────┤ ├─PS(data-area)───────────┤
├─DEFSCRNWD(data-area)────┤ ├─QNAME(data-area)────────┤
├─DELIMITER(data-area)────┤ ├─RESSEC(data-area)───────┤
├─DESTCOUNT(data-area)────┤ ├─RESTART(data-area)──────┤
| ├─DESTID(data-area)───────┤ ├─RETURNPROG(data-area)───┤
├─DESTIDLENG(data-area)───┤ ├─SCRNHT(data-area)───────┤
├─DSSCS(data-area)────────┤ ├─SCRNWD(data-area)───────┤
├─DS327O(data-area)───────┤ ├─SIGDATA(data-area)──────┤
├─EWASUPP(data-area)──────┤ ├─SOSI(data-area)─────────┤
├─EXTDS(data-area)────────┤ ├─STARTCODE(data-area)────┤
├─FACILITY(data-area)─────┤ ├─STATIONID(data-area)────┤
├─FCI(data-area)──────────┤ ├─SYSID(data-area)────────┤
├─GCHARS(data-area)───────┤ ├─TASKPRIORITY(data-area)─┤
├─GCODES(data-area)───────┤ ├─TCTUALENG(data-area)────┤
├─GMMI(data-area)─────────┤ ├─TELLERID(data-area)─────┤
├─HILIGHT(data-area)──────┤ ├─TERMCODE(data-area)─────┤
├─INITPARM(data-area)─────┤ ├─TERMPRIORITY(data-area)─┤
├─INITPARMLEN(data-area)──┤ ├─TEXTKYBD(data-area)─────┤
├─INPARTN(data-area)──────┤ ├─TEXTPRINT(data-area)────┤
| ├─INVOKINGPROG(data-area)─┤ ├─TRANPRIORITY(data-area)─┤
├─KATAKANA(data-area)─────┤ ├─TWALENG(data-area)──────┤
├─LANGINUSE(data-area)────┤ ├─UNATTEND(data-area)─────┤
├─LDCMNEM(data-area)──────┤ ├─USERID(data-area)───────┤
├─LDCNUM(data-area)───────┤ ├─USERNAME(data-area)─────┤
├─MAPCOLUMN(data-area)────┤ ├─USERPRIORITY(data-area)─┤
├─MAPHEIGHT(data-area)────┤ └─VALIDATION(data-area)───┘
└─MAPLINE(data-area)──────┘
Conditions:
INVREQ
ASSIGN gets values from outside the local environment of Where any of the following options apply to terminals or
the application program. The data obtained depends on the terminal-related data, the reference is always to the principal
specified options. Up to sixteen options can be specified in facility.
one ASSIGN command.
If the principal facility is a remote terminal, the data returned
is obtained from the local copy of the information; the request
is not routed to the system to which the remote terminal is that identifies the active and alternate CICS systems).
attached. An application program is unaffected by a takeover from
the active to the alternate.
Transaction routing is as far as possible transparent to the
ASSIGN command. In general, the values returned are the ASRAINTRPT(data-area)
same whether the transaction is local or remote. returns an 8-character program status word (PSW)
containing interrupt information at the point when the
For more details on these options, see the CICS/ESA | latest abend with a code of ASRA, ASRB, ASRD, or
Intercommunication Guide. | AICA occurred.
The field contains binary zeros if no ASRA, ASRB,
ASSIGN options ASRD, or AICA abend occurred during the execution of
the issuing transaction, or if the abend originally
ABCODE(data-area) occurred in a remote DPL server program.
returns a 4-character current abend code (abend codes
are documented in the CICS/ESA Messages and Codes | ASRAKEY(cvda)
manual). If an abend has not occurred, the variable is | returns the execution key at the time of the last ASRA,
set to blanks. | ASRB, AICA, or AEYD, abend, if any. The CVDA
| values on the ASRAKEY option are as follows:
ABDUMP(data-area)
returns a 1-byte value. X'FF' indicates that a dump has | CICSEXECKEY is returned if the task was executing in
been produced and that ABCODE contains an abend | CICS-key at the time of the last ASRA,
code. X'00' indicates either that no dump has been | ASRB, AICA, or AEYD abend. Note
produced, or that ABCODE contains blanks. | that all programs execute in CICS key
| if CICS subsystem storage protection is
ABPROGRAM(data-area) | not active.
returns an 8-character name of the failing program for
the latest abend. | USEREXECKEY
| is returned if the task was executing in
If the abend originally occurred in a DPL server program | user-key at the time of the last ASRA,
running in a remote system, ABPROGRAM returns the | ASRB, AICA, or AEYD abend.
DPL server program name.
| NONCICS is returned if the execution key at the
| This field is set to binary zeros if it is not possible to | time of the last abend was not one of
| determine the failing program at the time of the abend. | the CICS keys; that is, not key 8 or key
ALTSCRNHT(data-area) | 9.
returns the alternate screen height defined for the | NOTAPPLIC is returned if there has not been an
terminal as a halfword binary variable. If the task is not | ASRA, ASRB, AICA, or AEYD abend.
initiated from a terminal, INVREQ occurs.
ASRAPSW(data-area)
ALTSCRNWD(data-area) returns an 8-character program status word (PSW) at
returns the alternate screen width defined for the | the point when the latest abend with a code of ASRA,
terminal as a halfword binary variable. If the task is not | ASRB, ASRD, or AICA occurred.
initiated from a terminal, INVREQ occurs.
| The field contains binary zeros if no ASRA, ASRB,
APLKYBD(data-area) ASRD, or AICA abend occurred during the execution of
returns a 1-byte indicator showing whether the terminal the issuing transaction, or if the abend originally
keyboard has the APL keyboard feature. X'FF' occurred in a remote DPL server program.
indicates “yes”. X'00' indicates “no”. If the task is not
ASRAREGS(data-area)
initiated from a terminal, INVREQ occurs.
returns the contents of general registers 0–15 at the
APLTEXT(data-area) | point when the latest ASRA, ASRB, ASRD, or AICA
returns a 1-byte indicator showing whether the terminal | abend occurred.
keyboard has the APL text feature. X'FF' indicates The contents of the registers are returned in the data
“yes”. X'00' indicates “no”. If the task is not initiated area (64 bytes long) in the order 0, 1, ..., 14, 15.
from a terminal, INVREQ occurs.
| Note that the data area is set to binary zeros if no
APPLID(data-area) | ASRA, ASRB, ASRD, or AICA abend occurred during
returns an 8-character applid of the CICS system owning | the execution of the issuing transaction or the abend
the transaction. originally occurred in a remote DPL server program.
If your system is using XRF (that is, XRF=YES has been
specified in the system initialization parameters), the
value returned is the generic applid (that is, the applid
Chapter 1. Commands 23
ASSIGN
DESTIDLENG(data-area) GCODES(data-area)
returns a halfword binary length of the destination returns a halfword binary code page global identifier (the
identifier obtained by DESTID. If this option is specified CPGID). The value is a number in the range 1 through
before a batch data interchange command has been 65 534 representing the EBCDIC code page defining the
issued in the task, INVREQ occurs. code points for the characters that can be input or output
at the terminal. If the task is not initiated from a
DSSCS(data-area)
terminal, INVREQ occurs.
returns a 1-byte indicator showing whether the principal
facility is a basic SCS data stream device. (X'FF' for GMMI(data-area)
“yes”, or X'00' for “no”.) returns a 1-byte indicator showing whether a “good
morning” message applies to the terminal associated
DS3270(data-area)
with the running transaction. (X'FF' for “yes”, or X'00'
returns a 1-byte indicator showing whether the principal
for “no”.) If this option is specified and the current task
facility is a 3270 data stream device. (X'FF' for “yes”,
is not associated with a terminal, the INVREQ condition
or X'00' for “no”.)
occurs.
EWASUPP(data-area)
HILIGHT(data-area)
returns a 1-byte indicator showing whether Erase Write
returns a 1-byte indicator showing whether the terminal
Alternative is supported. (X'FF' for “yes”, X'00' for
is defined as having the extended highlight capability
“no”.)
(X'FF') or not (X'00'). If the task is not initiated from a
EXTDS(data-area) terminal, INVREQ occurs.
returns a 1-byte indicator showing whether the terminal
INITPARM(data-area)
accepts the 3270 extended data stream. Extended data
| returns the 60-character data-area containing any
stream capability is required for a terminal that supports
initialization parameters specified for the program in the
the query feature, color, extended highlighting,
INITPARM system initialization parameter. If there are
programmed symbols or validation. A terminal that
no parameters for the program, the area is filled with
accepts the query structured field command also has
binary zeros. (See the CICS/ESA System Definition
this indicator set. If extended data stream is on, the
Guide for further information about the INITPARM
device supports the write structured field COMMAND
option.)
and Outbound Query Structured field.
INITPARMLEN(data-area)
(For guidance information about query structured fields,
returns a halfword binary length of the INITPARM. If
see the CICS/ESA 3270 Data Stream Device Guide.)
there is no parameter for it, INITPARMLEN contains
If the task is not initiated from a terminal, INVREQ binary zeros.
occurs.
INPARTN(data-area)
FACILITY(data-area) returns the 1- or 2-character name of the most recent
returns a 4-byte identifier of the facility that initiated the | input partition. If no map has yet been positioned, or if
transaction; that is the facility control address as defined | BMS routing is in effect, or if the task is not initiated from
using the RDO option TYPETERM. If this option is | a terminal, INVREQ occurs.
specified, and there is no allocated facility, INVREQ
occurs. | INVOKINGPROG(data-area)
| returns the 8-character name of the application program
Note: You should always use the QNAME option
| that used the LINK or XCTL command to link or transfer
(described on page 27) to get the name of the transient
| control to the current program.
data intrapartition queue whose trigger level caused the
transaction to be initiated. | If you issue the ASSIGN INVOKINGPROG command in
| a remote program that was invoked by a distributed
FCI(data-area) | program link (DPL) command, CICS returns the name of
returns a 1-byte facility control indicator, see “ASSIGN | the program that issued the DPL command.
FCI” on page 351. This indicates the type of facility
| If you issue the ASSIGN INVOKINGPROG command in
associated with the transaction; for example, X'01'
| an application program at the highest level, CICS returns
indicates a terminal or logical unit. The obtained value
| eight blanks.
is always returned.
| If you issue the ASSIGN INVOKINGPROG command in
GCHARS(data-area)
| a
returns a halfword binary graphic character set global
| Apar 62320
identifier (the GCSGID). The value is a number in the
range 1 through 65 534 representing the set of graphic | Documentation for Apar 62320 added 15 Nov 1994
characters that can be input or output at the terminal. If | (TUCKER)
the task is not initiated from a terminal, INVREQ occurs.
Chapter 1. Commands 25
ASSIGN
# LANGINUSE(data-area) NETNAME(data-area)
# returns a 3-byte mnemonic code showing the language returns the 8-character name of the logical unit in the
# in use. 3-byte mnemonic has has a 1:1 correspondence VTAM network. If the task is not initiated from a
# with the 1-byte NATLANGINUSE option. See terminal, INVREQ occurs. If the principal facility is not a
# Appendix I, “National language codes” on page 373 for local terminal, the value returned is a null string.
# possible values of the code.
NEXTTRANSID(data-area)
LDCMNEM(data-area) returns the 4-character next transaction identifier as set
returns a 1-byte logical device code (LDC) mnemonic of by SET NEXTTRANSID or RETURN TRANSID. It
the destination that has encountered overflow. If this returns blanks if there are no more transactions.
option is specified when overflow processing is not in
NUMTAB(data-area)
effect, the value obtained not significant. If no BMS
returns a 1-byte number of the tabs required to position
commands have been issued, INVREQ occurs.
the print element in the correct passbook area of the
LDCNUM(data-area) 2980. If the task is not initiated from a terminal,
returns a 1-byte LDC numeric value of the destination INVREQ occurs.
that has encountered overflow. This indicates the type
OPCLASS(data-area)
of the LDC, such as printer or console. If this option is
returns, in a 24-bit string, the operator class used by
specified when overflow processing is not in effect, the
BMS for routing terminal messages, as defined in the
value obtained is not significant.
CICS segment.
MAPCOLUMN(data-area)
OPERKEYS(data-area)
returns a halfword binary number of the column on the
is accepted for compatibility with previous releases.
display containing the origin of the most recently
positioned map. If no map has yet been positioned, or if OPID(data-area)
BMS routing is in effect, or if the task is not initiated from returns, in a 24-bit string, the operator identification used
a terminal, INVREQ occurs. by BMS for routing terminal messages, as defined in the
CICS segment.
MAPHEIGHT(data-area)
# Apar 87704
returns a halfword binary height of the most recently
positioned map. If no map has yet been positioned, or if # Documentation for Apar 87704 added 19/12/96
BMS routing is in effect, or if the task is not initiated from
a terminal, INVREQ occurs.
# If the task is initiated from a remote terminal, the OPID
MAPLINE(data-area) # returned by this command is not necessarily that
returns a halfword binary number of the line on the # associated with the user that is signed on at the remote
display containing the origin of the most recently # terminal. If you wish to to know the OPID of the
positioned map. If no map has yet been positioned, or if # signed-on user, you should use the INQUIRE
BMS routing is in effect, or if the task is not initiated from
a terminal, INVREQ occurs.
# TERMINAL system programming command, which is An LU6.1 session to another CICS or IMS/VS
# described in the System Programming Reference. system
# Apar 92639 An APPC session to another CICS system, or to
another APPC system or device.
# - Following line removed, no longer true. If the
# task is not initiated from a terminal, INVREQ occurs. If the principal facility is not an MRO, LU6.1, or APPC
session, or if the task has no principal facility, INVREQ
# Apar PQ01572 occurs.
# The following paragraph was added by Apar Note: Special considerations apply generally when
# PQ01572 24/03/97 transaction routing. In particular an ASSIGN
PRINSYSID command cannot be used in a routed
# The OPID may also be different from that of the user transaction to find the name of the terminal-owning
# currently signed on, if it has been changed with the SET region. (See the CICS/ESA Intercommunication Guide
# TERMINAL command. for more information about transaction routing.)
OPSECURITY(data-area) PROGRAM(data-area)
is accepted for compatibility with previous releases. returns an 8-character name of the currently running
program.
ORGABCODE(data-area)
returns as a 4-byte original abend code in cases of PS(data-area)
repeated abends. returns a 1-byte indicator showing whether the terminal
is defined as having the programmed symbols capability
OUTLINE(data-area) (X'FF') or not (X'00'). If the task is not initiated from a
returns a 1-byte indicator showing whether the terminal terminal, INVREQ occurs.
is defined as having the field outlining capability (X'FF')
or not (X'00'). If the task is not initiated from a QNAME(data-area)
terminal, INVREQ occurs. returns a 4-character name of the transient data
intrapartition queue that caused this task to be initiated
PAGENUM(data-area) by reaching its trigger level. If the task is not initiated by
| returns a halfword binary current page number for the automatic transaction initiation (ATI), INVREQ occurs.
destination that has encountered an overflow. If this
option is specified when overflow processing is not in RESSEC(data-area)
effect, the value obtained is meaningless. If no BMS returns a 1-byte indicator showing whether resource
commands have been issued, INVREQ occurs. security checking has been defined for the transaction
running. (X for “yes”, blank for “no”.)
PARTNPAGE(data-area)
returns a 2-byte name of the partition that most recently RESTART(data-area)
caused page overflow. If no BMS commands have been returns a 1-byte indicator showing whether a restart of
issued, INVREQ occurs. the task (X'FF'), or a normal start of the task (X'00'),
has occurred.
PARTNS(data-area)
returns a 1-byte indicator showing whether the terminal | RETURNPROG(data-area)
supports partitions (X'FF') or not (X'00'). If the task is | returns the 8-character name of the program to which
not initiated from a terminal, INVREQ occurs. | control is to be returned when the current program has
| finished executing. The values returned depend on how
PARTNSET(data-area) | the current program was given control, as follows:
returns the name (1–6 characters) of the application
partition set. A blank value is returned if there is no | If the current program was invoked by a LINK
application partition set. If the task is not initiated from a | command, including a distributed program link,
terminal, INVREQ occurs. | RETURNPROG returns the same name as
| INVOKINGPROG.
PRINSYSID(data-area)
| If the current program was invoked by an XCTL
returns the 4-character name by which the other system
| command, RETURNPROG returns the name of the
is known in the local system; that is, the CONNECTION
| application program in the chain that last issued a
definition that defines the other system. For a
| LINK command. For example:
single-session APPC device defined by a terminal
definition, the returned value is the terminal identifier. | Program A links to program B
| Program B links to program C
This only applies when the principal facility is one of the | Program C transfers control to program D
following: | Program D issues an ASSIGN RETURNPROG command,
| and CICS returns the name of Program B.
An MRO session to another CICS system
Chapter 1. Commands 27
ASSIGN
| If the program that invoked the current program with DS A distributed program link (DPL) request, as in
| an XCTL command is at the highest level, CICS code D, with the exception that the program can
| returns eight blanks. issue syncpoint requests.
| If the ASSIGN RETURNPROG command is issued QD Transient data trigger level.
| in the program at the top level, CICS returns eight
S START command without data.
| blanks.
SD START command with data.
| If the ASSIGN RETURNPROG command is issued
| in a | SZ FEPI START command.
| Apar 62320 TD Terminal input.
USERNAME(data-area)
returns a 20-character name of the user obtained from
the external security manager (ESM).
USERPRIORITY(data-area)
returns a halfword binary operator priority (0–255).
VALIDATION(data-area)
returns a 1-byte indicator showing whether the terminal
is defined as having the validation capability (X'FF') or
not (X'00'). Validation capability consists of the
mandatory fill, mandatory enter, and trigger attributes. If
the task is not initiated from a terminal, INVREQ occurs.
Chapter 1. Commands 29
BIF DEEDIT
BIF DEEDIT
Function
Deediting (built-in function).
Command syntax
──BIF DEEDIT──FIELD(data-area)──┬────────────────────┬──"
└─LENGTH(data-value)─┘
Conditions:
| LENGERR
BIF DEEDIT provides the built-in function DEEDIT. It BIF DEEDIT options
specifies that alphabetic and special characters are removed
from an EBCDIC data field, and the remaining digits FIELD(data-area)
right-aligned and padded to the left with zeros as necessary. specifies the field to be edited.
LENGTH(data-value)
If the field ends with a minus sign or a carriage-return (CR),
specifies the field length in bytes.
a negative zone (X'D') is placed in the rightmost (low-order)
byte.
| BIF DEEDIT conditions
If the zone portion of the rightmost byte contains one of the
characters X'A' through X'F', and the numeric portion | LENGERR
contains one of the hexadecimal digits X'0' through X'9', | occurs if the LENGTH value is less than 1.
the rightmost byte is returned unaltered (see the example). | Default action: terminate the task abnormally.
This permits the application program to operate on a zoned
numeric field. The returned value is in the field that initially
contained the unedited data.
Example
EXEC CICS BIF DEEDIT
FIELD(CONTG)
LENGTH(9)
Function
Specify values for an LUTYPE6.1 attach header.
Command syntax
──BUILD ATTACH──ATTACHID(name)──┬───────────────┬──┬────────────────┬──┬────────────────┬────────────────
└─PROCESS(name)─┘ └─RESOURCE(name)─┘ └─RPROCESS(name)─┘
──┬─────────────────┬──┬─────────────┬──┬────────────────────┬──┬─────────────────────┬───────────────────
└─RRESOURCE(name)─┘ └─QUEUE(name)─┘ └─IUTYPE(data-value)─┘ └─DATASTR(data-value)─┘
──┬───────────────────┬──"
└─RECFM(data-value)─┘
BUILD ATTACH (LUTYPE6.1) specifies a set of values to be O–7 reserved - must be set to zero
placed in the named attach header control block. This 8-11 OOOO - user-defined
control block contains values that are to be sent in an 1111 - SCS data stream
LUTYPE6.1 attach FMH (Function Management Header) that 111O - 327O data stream
is constructed by CICS, and is sent only when a SEND 11O1 - structured field
11OO - logical record management
ATTACHID or CONVERSE ATTACHID command is
12-15 defined by the user if bits 8-11
executed. The specified values override existing values in
are set to OOOO; otherwise reserved
the control block; unspecified values are set to default (must be set to zero)
values.
A value of “structured field” indicates that chains begin
with four bytes of data that are used to interpret the
BUILD ATTACH (LUTYPE6.1) options following data: overall length (2 bytes), class identifier (1
byte), and subclass identifier (1 byte). A value of “logical
ATTACHID(name)
record management” indicates that chains can be split
specifies that the set of values is to be placed in an
into separate fields by the data receiver.
attach header control block identified by the specified
name (1–8 characters). If the option is omitted, a value of “user-defined” is
assumed.
DATASTR(data-value)
corresponds to the data stream profile field, ATTDSP, in IUTYPE(data-value)
an LUTYPE6.1 attach FMH. corresponds to the interchange unit field, ATTIU, in an
LUTYPE6.1 attach FMH.
For communication between two CICS systems, no
particular significance is attached by CICS to the data The “data-value” is a halfword binary. Only the
stream profile field in an attach FMH. For most CICS low-order 7 bits are used. The SNA-defined meanings
applications, the option can be omitted. of the bits are as follows:
Information about CICS to IMS communication is given O–1O reserved - must be set to zero
in the CICS/ESA Intercommunication Guide. For details 11 O - not end of multichain
of communication between a CICS system and any interchange unit
other subsystem, including details of structured fields 1 - end of multichain
and logical record management, refer to documentation interchange unit
12,13 reserved - must be set to zero
supplied by the subsystem about how to use the data
14,15 OO - multichain interchange
stream profile field in an attach FMH. unit
The “data-value” is a halfword binary. Only the O1 - single-chain
low-order byte is used. The SNA-defined meanings of interchange unit
the bits are as follows: 1O - reserved
11 - reserved
If the option is omitted, values of “not end of multichain
interchange unit” and “multichain interchange unit” are
assumed.
Chapter 1. Commands 31
BUILD ATTACH (LUTYPE6.1)
PROCESS(name) RPROCESS(name)
corresponds to the process name, ATTDPN, in an corresponds to the return-process name, ATTRDPN, in
LUTYPE6.1 attach FMH. an LUTYPE6.1 attach FMH.
For communication between two CICS systems, a For communication between two CICS systems, no
transaction running in one system can acquire a session significance is attached by CICS to the return-process
to the second system and can identify the transaction to name in an attach FMH.
be attached; in the second system, the identification is
For communication between a CICS system and another
carried in the first chain of data sent across the session.
subsystem, refer to documentation supplied by the
In general, the first four bytes of data identify the subsystem about how to use the return-process name
transaction to be attached. However an attach FMH, field in an attach FMH.
identifying the transaction to be attached, can be built
RRESOURCE(name)
and sent; the PROCESS option is used to specify the
corresponds to the return-resource name, ATTRPRN, in
transaction name. (Note that the receiving CICS system
an LUTYPE6.1 attach FMH.
uses just the first four bytes of the process name as a
transaction name.) For communication between two CICS systems, no
significance is attached by CICS to the return-resource
No significance is attached by CICS to process names in
name in an attach FMH.
attach FMHs sent in chains of data other than the first.
For communication between a CICS system and another
For communication between a CICS system and another
subsystem, refer to documentation supplied by the
subsystem, refer to documentation supplied by the
subsystem about how to use the return-resource name
subsystem about how to use the process name field in
field in an attach FMH.
an attach FMH.
QUEUE(name)
corresponds to the queue name, ATTDQN, in an
LUTYPE6.1 attach FMH.
For communication between two CICS systems, no
significance is attached by CICS to the queue name in
an attach FMH.
For communication between a CICS system and another
subsystem, refer to documentation supplied by the
subsystem about how to use the queue name field in an
attach FMH.
RECFM(data-value)
corresponds to the deblocking algorithm field, ATTDBA,
in an LUTYPE6.1 attach FMH.
For communication between two CICS systems, no
particular significance is attached by CICS to the
deblocking algorithm field in an attach FMH. For most
CICS applications, the option can be omitted.
The “data-value” is a halfword binary value. Only the
low-order byte is used. The SNA-defined meanings of
the bits are as follows:
O–7 reserved - must be set to zero
8-15 X'OO' - reserved
X'O1' - variable-length
variable-blocked
X'O2' - reserved
X'O3' - reserved
X'O4' - chain of RUs
X'O5'through X'FF' - reserved
If the option is omitted, a value of “chain of RUs” is
assumed.
RESOURCE(name)
corresponds to the resource name, ATTPRN, in an
LUTYPE6.1 attach FMH.
Function
Specify values for an MRO attach header.
Command syntax
──BUILD ATTACH──ATTACHID(name)──┬───────────────┬──┬────────────────┬──┬────────────────┬────────────────
└─PROCESS(name)─┘ └─RESOURCE(name)─┘ └─RPROCESS(name)─┘
──┬─────────────────┬──┬─────────────┬──┬────────────────────┬──┬─────────────────────┬───────────────────
└─RRESOURCE(name)─┘ └─QUEUE(name)─┘ └─IUTYPE(data-value)─┘ └─DATASTR(data-value)─┘
──┬───────────────────┬──"
└─RECFM(data-value)─┘
BUILD ATTACH (MRO) specifies a set of values to be following data; overall length (2 bytes), class identifier (1
placed in the named attach header control block. This byte), and subclass identifier (1 byte). A value of “logical
control block contains values that are to be sent in an MRO record management” indicates that chains can be split
attach FMH (Function Management Header) that is into separate fields by the data receiver.
constructed by CICS, and is sent only when a SEND
If the option is omitted, a value of “user-defined” is
ATTACHID or CONVERSE ATTACHID command is
assumed.
executed. The specified values override existing values in
the control block; unspecified values are set to default IUTYPE(data-value)
values. corresponds to the interchange unit field, ATTIU, in an
LUTYPE6.1 attach FMH.
For more information about MRO and IRC, see the
The “data-value” is a halfword binary. Only the
CICS/ESA Intercommunication Guide.
low-order 7 bits are used. The SNA-defined meanings
of the bits are as follows:
BUILD ATTACH (MRO) options O–1O reserved - must be set to zero
ATTACHID(name) 11 O - not end of multichain interchange unit
1 - end of multichain interchange unit
specifies that the set of values is to be placed in an
12,13 reserved - must be set to zero
attach header control block identified by the specified
14,15 OO - multichain interchange unit
name (1–8 characters). O1 - single chain interchange unit
DATASTR(data-value) 1O - reserved
corresponds to the data stream profile field, ATTDSP, in 11 - reserved
an LUTYPE6.1 attach FMH. If the option is omitted, values of “not end of multichain
For communication between two CICS systems, no interchange unit” and “multichain interchange unit” are
particular significance is attached by CICS to the data assumed.
stream profile field in an attach FMH. For most CICS PROCESS(name)
applications, the option can be omitted. corresponds to the process name, ATTDPN, in an
The “data-value” is a binary halfword. Only the LUTYPE6.1 attach FMH.
low-order byte is used. The SNA-defined meanings of For communication between two CICS systems, a
the bits are as follows: transaction running in one system can acquire a session
O–7 reserved - must be set to zero to the second system and can identify the transaction to
8-11 OOOO - user-defined be attached; in the second system the identification is
1111 - SCS data stream carried in the first chain of data sent across the session.
111O - 327O data stream In general, the first four bytes of data identify the
11O1 - structured field transaction to be attached. However an attach FMH,
11OO - logical record management identifying the transaction to be attached, can be built
12-15 defined by the user if bits 8-11 and sent; the PROCESS option is used to specify the
are set to OOOO; otherwise reserved
transaction name. (Note that the receiving CICS system
(must be set to zero)
uses just the first four bytes of the process name as a
A value of “structured field” indicates that chains begin transaction name.)
with four bytes of data that are used to interpret the
Chapter 1. Commands 33
BUILD ATTACH (MRO)
QUEUE(name)
corresponds to the queue name, ATTDQN, in an attach
FMH.
For communication between two CICS systems, no
significance is attached by CICS to the queue name in
an attach FMH.
For communication between a CICS system and another
subsystem, refer to documentation supplied by the
subsystem about how to use the queue name field in an
attach FMH.
RECFM(data-value)
corresponds to the deblocking algorithm field, ATTDBA,
in an LUTYPE6.1 attach FMH.
For communication between two CICS systems, no
particuorithm field,gES ponds to the o7ubsystem about how to use the queue name field in an
attach FMH.
RECFM(data-value)
CANCEL
CANCEL
Function
Cancel interval control requests.
Command syntax
| ──CANCEL──┬───────────────────────────────────────────────────────┬──"
| └─REQID(name)──┬───────────────┬──┬───────────────────┬─┘
| └─TRANSID(name)─┘ └─SYSID(systemname)─┘
| Conditions:
| ISCINVREQ, NOTAUTH, NOTFND, SYSIDERR
Chapter 1. Commands 35
CANCEL
CANCEL conditions
ISCINVREQ
occurs when the remote system indicates a failure that
does not correspond to a known condition.
Default action: terminate the task abnormally.
NOTAUTH
| occurs when a resource security check has failed on the
| specified TRANSID or on the TRANSID of the START
| command that corresponds to the request identification.
Default action: terminate the task abnormally.
NOTFND
occurs if the request identifier specified fails to match an
unexpired interval control command.
Default action: terminate the task abnormally.
SYSIDERR
| occurs when the SYSID option specifies a name that is
| neither the local system nor a remote system (made
| known to CICS by defining a CONNECTION). It also
occurs when the link to the remote system is closed.
Default action: terminate the task abnormally.
| CHANGE PASSWORD
| Function
| Change the password recorded by an external security manager (ESM) for a specified userid.
| Command syntax
|
| ──CHANGE PASSWORD(data-value)──NEWPASSWORD(data-value)──USERID(data-value)──┬──────────────────────┬─────
| └─ESMREASON(data-area)─┘
| ──┬────────────────────┬──"
| └─ESMRESP(data-area)─┘
| Conditions:
| INVREQ, NOTAUTH, USERIDERR
| Unlike the SIGNON command, CHANGE PASSWORD does | CHANGE PASSWORD conditions
| not depend upon the principal facility, so it can be issued
| when the facility is an APPC session. | INVREQ
| occurs in any of the following situations:
| Warning: Clear password fields after use
| There is an unknown return code in ESMRESP from
| You should clear the password fields on the EXEC CICS | the external security manager (RESP2=13).
| commands that have a password option as soon as | The CICS external security manager interface is not
| possible after use. This is to ensure that passwords are | initialized (RESP2=18).
| not revealed in system or transaction dumps.
| The external security manager is not responding
| (RESP2=29).
| USERID(data-value)
| specifies the userid, 8 characters, of the user whose
| password is being changed.
Chapter 1. Commands 37
CHANGE TASK
CHANGE TASK
Function
Change priority of a task.
Command syntax
──CHANGE TASK──┬──────────────────────┬──"
| └─PRIORITY(data-value)─┘
Conditions:
INVREQ
RCF 11362/11353
Documentation for RCFs 11362 and 11353 added
22/11/96
If you omit the PRIORITY option, the task does not lose
control and the priority remains the same. This is effectively
a no-op.
CONNECT PROCESS
Function
Initiate APPC mapped conversation.
Command syntax
──CONNECT PROCESS──┬─CONVID(name)──┬──┬─PROCNAME(data-area)──┬────────────────────────┬─┬────────────────
└─SESSION(name)─┘ │ └─PROCLENGTH(data-value)─┘ │
| └─PARTNER(name)───────────────────────────────────┘
──┬───────────────────────────────────────────────┬──SYNCLEVEL(data-value)──┬─────────────┬──"
└─PIPLIST(data-area)──┬───────────────────────┬─┘ └─STATE(cvda)─┘
└─PIPLENGTH(data-value)─┘
Conditions:
| INVREQ, LENGERR, NOTALLOC, PARTNERIDERR, TERMERR
CONNECT PROCESS allows an application to specify a One byte is sufficient to identify a CICS transaction. The
process name and synchronization level to be passed to APPC architecture allows a range of 1–64 bytes but
CICS and used when the remote partner is attached. leaves each product free to set its own maximum. CICS
complies by allowing a range of 1–64 bytes. If the
remote system is CICS, this option can specify the
CONNECT PROCESS options 4-byte transaction identifier or the TPNAME value given
CONVID(name) in the relevant TRANSACTION definition. Alternatively,
identifies, as a 4-character name, the conversation which you can examine the full identifier by coding the user
the command relates to. The name specifies the token exit XZCATT.
returned by a previously executed ALLOCATE command | No character checking is performed on the TPN by
in EIBRSRCE in the EIB. | CICS.
For compatibility with earlier releases, SESSION is For programming information about the user exit
accepted as a synonym for CONVID. New programs XZCATT, see the CICS/ESA Customization Guide.
should use CONVID.
SESSION(name)
| PARTNER(name) specifies the symbolic identifier (1–4 characters) of a
| specifies the name (8 characters) of a set of definitions session TCTTE. This option specifies the alternate
| that includes the name (or extended name) of a remote facility to be used.
| partner transaction (TPNAME or XTPNAME). You can
| use this option as an alternative to PROCNAME and STATE(cvda)
| PROCLENGTH. gets the state of the current conversation. The cvda
values returned by CICS are:
PIPLENGTH(data-value)
specifies the total length (halfword binary value) of the ALLOCATED
specified process initialization parameter (PIP) list. CONFFREE
CONFRECEIVE
PIPLIST(data-area) CONFSEND
specifies the PIP data to be sent to the remote system. FREE
The PIP list consists of variable-length records, each PENDFREE
containing a single PIP. A PIP starts with a 2-byte PENDRECEIVE
inclusive length field (LL), followed by a 2-byte reserved RECEIVE
field, and then the parameter data. ROLLBACK
PROCLENGTH(data-value) SEND
specifies the length (as a halfword binary value in the SYNCFREE
range 1–64) of the name specified by the PROCNAME SYNCRECEIVE
option. SYNCSEND
PROCNAME(data-area)
specifies the partner process (that is, the transaction) to
be attached in the remote system.
Chapter 1. Commands 39
CONNECT PROCESS
LENGERR
occurs in any of the following situations:
NOTALLOC
occurs if the specified CONVID value does not relate to
a conversation owned by the application.
Default action: terminate the task abnormally.
| PARTNERIDERR
| occurs if the name specified in the PARTNER option is
| not recognized by CICS.
| Default action: terminate the task abnormally.
TERMERR
occurs for a session-related error. Any action on that
conversation other than a FREE causes an ATCV
abend.
Function
Communicate on standard CICS terminal support.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘ └─DEST(name)─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR
This form of the CONVERSE command is used by all CICS-supported VTAM terminals for which the other CONVERSE
descriptions are not appropriate.
CONVERSE (APPC)
Function
Communicate on an APPC mapped conversation.
Command syntax
──CONVERSE──┬──────────────┬──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬──────────
└─CONVID(name)─┘ └─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──┬─────────────┬──"
└─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘ └─STATE(cvda)─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, INVREQ, LENGERR, NOTALLOC, SIGNAL, TERMERR
Chapter 1. Commands 41
CONVERSE (VTAM)
CONVERSE (LUTYPE2/LUTYPE3)
Function
Communicate on a 3270-display logical unit (LUTYPE2) or 3270-printer logical unit (LUTYPE3).
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─┬──────────────────────┬──┬─────────────────────┬─┬──┬─TOLENGTH(data-area)──┬─────────────────────────
| │ └─ERASE──┬───────────┬─┘ └─CTLCHAR(data-value)─┘ │ └─TOFLENGTH(data-area)─┘
| │ ├─DEFAULT───┤ │
| │ └─ALTERNATE─┘ │
└─STRFIELD──────────────────────────────────────────┘
──┬────────────────────────┬──┬─────────┬──┬────────────┬──┬──────┬──"
| ├─MAXLENGTH(data-value)──┤ └─DEFRESP─┘ └─NOTRUNCATE─┘ └─ASIS─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
| EOC, LENGERR, TERMERR
CONVERSE (LUTYPE4)
Function
Communicate on an LUTYPE4 logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬─────────┬──┬────────────────────────┬──┬─────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ └─DEFRESP─┘ ├─MAXLENGTH(data-value)──┤ └─FMH─┘ └─NOTRUNCATE─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, EODS, IGREQCD, INBFMH, LENGERR, SIGNAL, TERMERR
CONVERSE (LUTYPE6.1)
Function
Communicate on an LUTYPE6.1 logical unit.
Command syntax
──CONVERSE──┬───────────────────────────────────────────────────────┬──┬───────────────┬─────────────────
└─FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─────┬─┘ ├─CONVID(name)──┤
└─FROMFLENGTH(data-value)─┘ └─FMH─┘ └─SESSION(name)─┘
──┬────────────────┬──┬─INTO(data-area)─┬──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬───────────
| └─ATTACHID(name)─┘ └─SET(ptr-ref)────┘ └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤
| └─MAXFLENGTH(data-value)─┘
──┬────────────┬──┬─────────┬──"
└─NOTRUNCATE─┘ └─DEFRESP─┘
Conditions:
CBIDERR, EOC, INBFMH, LENGERR, NOTALLOC, SIGNAL, TERMERR
CONVERSE (SCS)
Function
Communicate on a 3270 SCS printer logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬─────────┬──┬──────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─DEFRESP─┘ └─STRFIELD─┘ └─NOTRUNCATE─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR, TERMERR
CONVERSE communicates on a 3270 SNA character string (SCS) printer logical unit. The SCS printer logical unit accepts a
character string as defined by Systems Network Architecture (SNA). Some devices connected under SNA can send a signal
that can be detected by the HANDLE CONDITION SIGNAL command, which in turn can invoke an appropriate handling
routine. If necessary, a WAIT SIGNAL command can be used to make the application program wait for the signal. The PA
keys on a 3287 can be used in this way, or with a RECEIVE command.
Chapter 1. Commands 43
CONVERSE (VTAM)
Function
Communicate on a 3270 logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─┬──────────────────────┬──┬─────────────────────┬─┬──┬─TOLENGTH(data-area)──┬─────────────────────────
| │ └─ERASE──┬───────────┬─┘ └─CTLCHAR(data-value)─┘ │ └─TOFLENGTH(data-area)─┘
| │ ├─DEFAULT───┤ │
| │ └─ALTERNATE─┘ │
└─STRFIELD──────────────────────────────────────────┘
──┬────────────────────────┬──┬─────────┬──┬────────────┬──┬──────┬──"
| ├─MAXLENGTH(data-value)──┤ └─DEFRESP─┘ └─NOTRUNCATE─┘ └─ASIS─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR, TERMERR
CONVERSE (3600-3601)
Function
Communicate on a 3600 (3601) logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬───────────┬──┬─────────┬──┬────────────────────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ ├─LDC(name)─┤ └─DEFRESP─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─FMH───────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, EODS, INBFMH, LENGERR, SIGNAL, TERMERR
CONVERSE communicates on a 3600 logical unit. This form of the CONVERSE command also applies to the 4700 and the
3630 plant communication system.
A logical device code (LDC) is a code that can be included in an outbound FMH (Function Management Header) to specify the
disposition of the data (for example, to which subsystem terminal it should be sent). Each code can be represented by a
unique LDC mnemonic.
The installation can specify up to 256 2-character mnemonics for each TCTTE, and two or more TCTTEs can share a list of
these mnemonics. A numeric value (0 through 255) corresponds to each LDC mnemonic for each TCTTE.
A 3600 device and a logical page size are also associated with an LDC. “LDC” or “LDC value” is used in this book to refer to
the code specified by the user; “LDC mnemonic” refers to the 2-character symbol that represents the LDC numeric value.
When the LDC option is specified in the CONVERSE command, the numeric value associated with the mnemonic for the
particular TCTTE is inserted in the FMH. This value is chosen by the installation, and is interpreted by the 3601 application
program.
# On output, the FMH can be built by the application program or by CICS. If your program supplies the FMH, you place it at the
# front of your output data and specify the FMH option on your CONVERSE command. If you omit the FMH option, CICS will
# provide an FMH but you must reserve the first three bytes of the message for CICS to fill in.
CONVERSE (3600-3614)
Function
Communicate on a 3600 (3614) logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬─────────┬──┬────────────────────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ └─DEFRESP─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR, TERMERR
The data stream and communication format used between a CICS application program and a 3614 is determined by the 3614.
The application program is therefore device dependent when handling 3614 communication.
For further information about designing 3614 application programs for CICS, refer to the CICS/OS/VS IBM 4700/3600/3630
Guide.
Function
Communicate on a 3650 interpreter logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬─────────┬──┬─────┬──┬────────────────────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ └─DEFRESP─┘ └─FMH─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, EODS, INBFMH, LENGERR, TERMERR
Chapter 1. Commands 45
CONVERSE (VTAM)
CONVERSE (3650-3270)
Function
Communicate on a 3650 host conversational (3270) logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬─────────────────────┬──┬──────────────────────┬──┬─────────┬──┬─────┬───────
└─TOFLENGTH(data-area)─┘ └─CTLCHAR(data-value)─┘ └─ERASE──┬───────────┬─┘ └─DEFRESP─┘ └─FMH─┘
| ├─DEFAULT───┤
| └─ALTERNATE─┘
──┬────────────────────────┬──┬────────────┬──"
| ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR, TERMERR
CONVERSE (3650-3653)
Function
Communicate on a 3650 host conversational (3653) logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬─────────┬──┬────────────────────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ └─DEFRESP─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, LENGERR, TERMERR
CONVERSE (3650-3680)
Function
Communicate on a 3650 host command processor (3680) logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬─────┬──┬─────────┬──┬────────────────────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ └─FMH─┘ └─DEFRESP─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR, TERMERR
CONVERSE (3767)
Function
Communicate on a 3767 interactive logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬─────────┬──┬────────────────────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ └─DEFRESP─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, LENGERR, SIGNAL, TERMERR
CONVERSE communicates on a 3767 interactive logical unit. This command also applies to the 3770 interactive logical unit.
Chapter 1. Commands 47
CONVERSE (VTAM)
CONVERSE (3770)
Function
Communicate on a 3770 batch logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬─────────┬──┬─────┬──┬────────────────────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ └─DEFRESP─┘ └─FMH─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, EODS, INBFMH, LENGERR, SIGNAL, TERMERR
Function
Communicate on a 3790 full-function or inquiry logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬─────┬──┬─────────┬──┬────────────────────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ └─FMH─┘ └─DEFRESP─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, EODS, INBFMH, LENGERR, SIGNAL, TERMERR
Function
Communicate on a 3790 (3270-display) logical unit.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬─────────┬──┬─────────────────────┬──────────────────────────────────────────
└─TOFLENGTH(data-area)─┘ └─DEFRESP─┘ └─CTLCHAR(data-value)─┘
──┬──────────────────────────────────────────────────────────────────┬──"
| └─ERASE──┬───────────┬──┬────────────────────────┬──┬────────────┬─┘
| ├─DEFAULT───┤ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─ALTERNATE─┘ └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR, TERMERR
Chapter 1. Commands 49
CONVERSE (VTAM)
CONVERSE (VTAM) options option is meaningful only for terminals defined using
DFHTCT TYPE=SDSCI with DEVICE=TCAM.
| ALTERNATE
If you use the DEST option, you must be aware of any
| sets the terminal to use the ALTERNATE screen size.
restrictions placed on device-dependent data streams by
ASIS the message control facility in use. See the section on
indicates that output is to be sent in transparent mode CICS-TCAM interface in the CICS/ESA Customization
(with no recognition of control characters and accepting Guide for programming information.
any of the 256 possible combinations of eight bits as
ERASE
valid transmittable data).
specifies that the screen printer buffer or partition is to
Note: If you are using a katakana terminal, you might be erased and the cursor returned to the upper left
see some messages containing mixed English and corner of the screen. (This option applies only to the
katakana characters. That is because katakana 3270, or 8775, and to the 3604 Keyboard Display.)
terminals cannot display mixed-case output. Uppercase
The first output operation in any transaction, or in a
characters in the data stream appear as uppercase
series of pseudoconversational transactions, should
English characters, but lowercase characters appear as
always specify ERASE. For transactions attached to
katakana characters. If this happens, ask your system
| 3270 screens or printers, unless explicitly overridden by
programmer to specify MSGCASE=UPPER in the
| the DEFAULT or ALTERNATE option, this also ensures
system initialization parameters so that messages
that the correct screen size is selected, as defined for
contain uppercase characters only. This note applies to
| the transaction by the SCRNSZE option in the profile
any command that is used to receive katakana
| definition.
characters, not just to CONVERSE commands.
FMH
ATTACHID(name)
specifies that a function management header has been
specifies that an attach header (created by a BUILD
included in the data to be written. If the ATTACHID
ATTACH command) is to precede, and be concatenated
option is specified as well, the concatenated FMH flag is
with, the user data supplied in the FROM option.
# set in the attach FMH. The use of FMH is optional and
“name” (1–8 characters) identifies the attach header
# is not supported for all terminal types. If not supplied,
control block to be used in the local task.
# CICS takes no action, except for 3600/4700 terminals,
CONVID(name) # where an FMH is mandatory. In this case, if FMH is not
identifies the conversation to which the command # specified, CICS supplies one and places it in the first 3
relates. The 4-character name identifies either the token # bytes of the message, which you must reserve for this
returned by a previously executed ALLOCATE command # purpose.
in EIBRSRCE in the EIB, or the token representing the
FROM(data-area)
principal session (returned by a previously executed
specifies the data to be written to the terminal or logical
ASSIGN command).
unit, or sent to the partner transaction. This option may,
For compatibility with earlier releases, SESSION is when relevant, be omitted if ATTACHID is specified.
accepted as a synonym for CONVID. New programs
should use CONVID. FROMFLENGTH(data-value)
is a fullword alternative to FROMLENGTH.
| If the option is omitted, the principal facility for the task is
| used by default. FROMLENGTH(data-value)
specifies the length, as a halfword binary value, of the
CTLCHAR(data-value) data. For a description of a safe upper limit, see
specifies a 1-byte write control character (WCC) that “LENGTH options” on page 5.
controls the CONVERSE command. A COBOL user
must specify a data area containing this character. INTO(data-area)
specifies the receiving field for the data read from the
If the option is omitted, all modified data tags are reset
terminal or logical unit, or the application target data
to zero, and the keyboard is restored.
area into which data is to be received from the
| DEFAULT application program connected to the other end of the
| sets the terminal to use the DEFAULT screen size. current conversation.
DEFRESP LDC(name)
indicates that a definite response is required when the specifies the 2-character mnemonic used to determine
output operation has been completed. the appropriate logical device code (LDC) numeric value.
The mnemonic identifies an LDC entry in the terminal
DEST(name) control table TYPE=LDC.
specifies the 4-byte symbolic name of the TCAM
destination to which the message is to be sent. This
MAXFLENGTH(data-value) ALLOCATED
is a fullword alternative to MAXLENGTH. CONFFREE
CONFRECEIVE
MAXLENGTH(data-value)
CONFSEND
specifies the maximum amount (halfword binary value)
FREE
of data that CICS is to recover in response to a
PENDFREE
CONVERSE (default) command. If INTO is specified,
PENDRECEIVE
MAXLENGTH overrides the use of TOLENGTH as an
RECEIVE
input to CICS. If SET is specified, MAXLENGTH
ROLLBACK
provides a way for the program to limit the amount of
SEND
data it receives at one time.
SYNCFREE
| If the value specified is less than zero, zero is assumed. SYNCRECEIVE
SYNCSEND
If the length of data exceeds the value specified and the
NOTRUNCATE option is not present, the data is STRFIELD
truncated to that value and the LENGERR condition specifies that the data area specified in the FROM
occurs. The data area specified in the TOLENGTH option contains structured fields. If this option is
option is set to the original length of data. specified, the contents of all structured fields must be
If the length of data exceeds the value specified and the handled by the application program. The CONVERSE
NOTRUNCATE option is present, CICS retains the command must be used if the data area contains a read
remaining data and uses it to satisfy subsequent partition structured field. (Structured fields are described
RECEIVE commands. The data area specified in the in the CICS/ESA 3270 Data Stream Device Guide.)
TOLENGTH option is set to the length of data returned. CTLCHAR and ERASE are mutually exclusive with
If no argument is coded for MAXLENGTH, CICS defaults STRFIELD, and their use with STRFIELD generates an
to TOLENGTH. error message.
NOTRUNCATE TOFLENGTH(data-area)
specifies that, when the data available exceeds the is a fullword alternative to TOLENGTH.
length requested, the remaining data is not to be
TOLENGTH(data-area)
discarded but is to be retained for retrieval by
specifies the length (halfword binary value) of the data to
subsequent RECEIVE commands.
be received. If you specify INTO, but omit
SESSION(name) MAXLENGTH, “data-area” specifies the maximum length
specifies the symbolic identifier (1–4 characters) of a that the program accepts. If the value is less than zero,
session TCTTE. This option specifies the alternate zero is assumed.
facility to be used. If both this option and CONVID are If the length of the data exceeds the value specified, but
omitted, the principal facility for the task is used. NOTRUNCATE is omitted, the data is truncated to that
value, and the LENGERR condition occurs. When the
SET(ptr-ref)
data is received, the data area is set to the length of the
specifies the pointer reference to be set to the address
data.
of the data read from the terminal. pointer reference,
unless changed by other commands or statements, is For a description of a safe upper limit, see “LENGTH
valid until the next CONVERSE (default) command or options” on page 5.
the end of task.
If DATALOCATION(ANY) is associated with the CONVERSE (VTAM) conditions
application program, the address of the data can be Some of the following conditions can occur in combination
above or below the 16MB line. with others. CICS checks for these conditions in the
If DATALOCATION(BELOW) is associated with the following order:
application program, and the data resides above the 1. EODS
16MB line, the data is copied below the 16MB line, and 2. INBFMH
the address of this copy is returned. 3. EOC.
If TASKDATAKEY(USER) is specified for the running
task, and storage protection is active, the data returned If more than one occurs, only the first is passed to the
is in a user-key. If TASKDATAKEY(CICS) is specified application program. EIBRCODE, however, is set to indicate
and storage protection is active, the data returned is in a all the conditions that occurred.
CICS-key. CBIDERR
STATE(cvda) occurs if the requested attach header control block
gets the state of the current conversation. The cvda named in ATTACHID cannot be found.
values returned by CICS are:
Chapter 1. Commands 51
CONVERSE (VTAM)
Default action: terminate the task abnormally. Default action: terminate the task abnormally with abend
code ATNI.
INBFMH
occurs if a request/response unit (RU) contains a
function management header (FMH). Field EIBFMH
contains this indicator and it should be used in
preference to INBFMH. The IGNORE CONDITION
command can be used to ignore the condition.
Default action: terminate the task abnormally.
INVREQ
occurs in any of the following situations:
LENGERR
occurs in any of the following situations:
NOTALLOC
occurs if the facility specified in the command is not
owned by the application, or does not relate to a
conversation owned by the application.
Default action: terminate the task abnormally.
Function
Communicate on standard CICS terminal support.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘ └─DEST(name)─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR
This form of the CONVERSE command is used by all CICS-supported terminals for which the other CONVERSE descriptions
are not appropriate.
CONVERSE (MRO)
Function
Communicate on an MRO session.
Command syntax
──CONVERSE──┬───────────────┬──┬────────────────┬────────────────────────────────────────────────────────
├─CONVID(name)──┤ └─ATTACHID(name)─┘
└─SESSION(name)─┘
──┬───────────────────────────────────────────────────────┬──┬─INTO(data-area)─┬──────────────────────────
└─FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─────┬─┘ └─SET(ptr-ref)────┘
└─FROMFLENGTH(data-value)─┘ └─FMH─┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──┬─────────┬──┬─────────────┬──"
| └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘ └─DEFRESP─┘ └─STATE(cvda)─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
CBIDERR, EOC, INBFMH, LENGERR, NOTALLOC, TERMERR
CONVERSE communicates on an MRO session. For more information about MRO and IRC, see the CICS/ESA
Intercommunication Guide.
Chapter 1. Commands 53
CONVERSE (non-VTAM)
CONVERSE (System/3)
Function
Communicate on a System/3 terminal.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──┬────────────┬──┬──────┬──"
| └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘ └─DEST(name)─┘ └─ASIS─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR
CONVERSE communicates on a System/3 terminal. CONVERSE in this form also applies to the following devices:
2770 data communication system
2780 data transmission terminal
3660 supermarket scanning system
3780 communication terminal.
CONVERSE (System/7)
Function
Communicate on a System/7 terminal.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────┬──┬──────┬──┬───────────┬──"
└─TOFLENGTH(data-area)─┘ └─DEST(name)─┘ └─ASIS─┘ └─PSEUDOBIN─┘
Conditions:
LENGERR
Transactions are normally initiated from the System/7 by issuing a 4-character transaction code that is transmitted in BCD
mode. Pseudobinary mode can be used only while communicating with an active CICS transaction; it cannot be used to
initiate the transaction. The message length is given as the number of words to be transmitted (not as the number of
characters).
When a transaction is initiated on a System/7, CICS services that System/7 only for the duration of the transaction; that is, to
ensure efficient use of the line, any other System/7s on the same line are locked out for the duration of the transaction. CICS
application programs for the multipoint System/7 should be designed with the shortest possible execution time.
The first word (two characters) of every message sent to the System/7 must be an identification word, except words beginning
with “@”, which are reserved by CICS.
When the PSEUDOBIN option is specified on RECEIVE or SEND, the length of the data area provided by the application
program must be at least twice that of the data to be read.
In the case of a System/7 on a dial-up (switched) line, the System/7 application program must, initially, transmit a
four-character terminal identification. (This terminal identification is generated during preparation of the TCT through use of the
DFHTCT TYPE=TERMINAL, TRMIDNT=parameter specification.) CICS responds with either a ‘ready’ message, indicating that
the terminal identifier is valid and that the System/7 may proceed as if it were on a leased line, or an ‘INVALID TERMINAL
IDENTIFICATION’ message, indicating that the terminal identifier sent by the System/7 did not match the TRMIDNT=
parameter specification.
Whenever CICS initiates the connection to a dial-up System/7, CICS writes a null message, consisting of three idle characters,
prior to starting the transaction. If there is no program resident in the System/7 capable of supporting the Asynchronous
Communication Control Adapter (ACCA), BTAM error routines cause a data check message to be recorded on the CICS (host)
system console. This is normal if the task initiated by CICS is to IPL the System/7. Although the data check message is
printed, CICS ignores the error and continues normal processing. If a program capable of supporting the ACCA is resident in
the System/7 at the time this message is transmitted, no data check occurs.
When a disconnect is issued to a dial-up System/7, the “busy” bit is sometimes left on in the interrupt status word of the ACCA.
If the line connection is reestablished by dialing from the System/7 end, the ‘busy’ condition of the ACCA prevents message
transmission from the System/7. To overcome this problem, the System/7 program must reset the ACCA after each disconnect
and before message transmission is attempted. This can be done by issuing the following instruction:
PWRI O,8,3,O RESET ACCA
This procedure is not necessary when the line is reconnected by CICS (that is, by an automatically initiated transaction).
CONVERSE (2260)
Function
Communicate on a 2260 or 2265 display station.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──┬─────────────────────┬───────────
| └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘ └─CTLCHAR(data-value)─┘
| └─MAXFLENGTH(data-value)─┘
──┬──────────────────────┬──┬────────────┬──┬─────────┬──"
| └─LINEADDR(data-value)─┘ └─DEST(name)─┘ └─LEAVEKB─┘
Conditions:
LENGERR
Chapter 1. Commands 55
CONVERSE (non-VTAM)
CONVERSE (2741)
Function
Communicate on a 2741 communication terminal.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──┬────────────┬──"
| └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘ └─DEST(name)─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR, RDATT, WRBRK
Read attention
If the terminal operator presses the attention key on the 2741 after typing a message, it is recognized as a read attention if:
Read attention is supported by the system
The message is read by a RECEIVE command.
When this occurs, control is transferred to a CICS read-attention exit routine, if it has been generated into the system. This
routine is a skeleton program that can be tailored by the system programmer to carry out actions such as the following:
Perform data analysis or modification on a read attention.
Return a common response to the terminal operator following a read attention.
Return a response and request additional input that can be read into the initial input area or into a new area.
Request new I/O without requiring a return to the task to request additional input.
When the read-attention exit routine is completed, control is returned to the application program at the address specified in the
HANDLE CONDITION RDATT command. The return is made when either of the following occurs:
The exit routine issues no more requests for input.
The exit routine issues a RECEIVE request and the operator terminates the input with a carriage return. (If the operator
terminates the input with an attention, the exit routine is reentered and is free to issue another RECEIVE request.)
If a HANDLE CONDITION RDATT command is not included in the application program or read attention is not supported, the
attention is treated as if the return key had been pressed.
Write break
If the terminal operator presses the attention key on the 2741 while a message is being received, it is recognized as a write
break if:
Write break is supported by the system.
A HANDLE CONDITION WRBRK command is active in the application program.
When this occurs, the remaining portion of the message is not sent to the terminal. The write is terminated as though it were
successful, and a new-line character (X'15') is sent to cause a carrier return. Control is returned to the application program at
the address specified for the WRBRK condition.
If a HANDLE CONDITION WRBRK command is not included in the application program or if write break is not supported, the
break is treated as an I/O error.
CONVERSE (2770)
The support and command syntax for 2770 is the same as for System/3, see“CONVERSE (System/3)” on page 54.
The 2770 recognizes a read interrupt and responds by transmitting the contents of the I/O buffer. After the contents of the
buffer have been transmitted, the 2770 responds to the next read continue with an EOT. If the I/O buffer is empty, the 2770
transmits an EOT. CICS issues a read interrupt and read continue to relinquish use of the line and to enable the application
program to write to the 2770.
Input from a 2770 consists of one or more logical records. CICS provides one logical record for each read request to the
application program. The size of a logical record cannot exceed the size of the I/O buffer. If the input spans multiple buffers,
multiple reads must be issued by the application program.
The 2265 component of the 2770 Data Communication System is controlled by data stream characters, not by BTAM macros;
appropriate screen control characters should be included in the output area.
For 2770 input, data is deblocked to ETX, ETB, RS, and US characters. These characters are moved with the data to the
input area but are not included in the data length; characters such as NL, CR, and LF are passed in the input area as data.
CONVERSE (2780)
The support and command syntax for 2780 is the same as for System/3, see “CONVERSE (System/3)” on page 54.
Output to a 2780 requires that the application program contains an appropriate “escape sequence” for component selection
associated with the output message. For details of the 2780, see the publication IBM 2780 Data Transmission Terminal:
Component Description.
Chapter 1. Commands 57
CONVERSE (non-VTAM)
Function
Communicate on a 3270 information display system (TCAM).
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬────────────────────────────────────
| └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─MAXFLENGTH(data-value)─┘
──┬─┬──────────────────────┬──┬─────────────────────┬─┬──┬────────────┬──┬──────┬──"
| │ └─ERASE──┬───────────┬─┘ └─CTLCHAR(data-value)─┘ │ └─DEST(name)─┘ └─ASIS─┘
| │ ├─DEFAULT───┤ │
| │ └─ALTERNATE─┘ │
└─STRFIELD──────────────────────────────────────────┘
Conditions:
LENGERR
Function
| Communicate on a 3600 finance communication system (BTAM) - only valid for remote terminals.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──┬──────┬──"
| └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘ └─ASIS─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR
CONVERSE communicates on a 3600 finance communication system. This form of the CONVERSE command also applies to
| the 4700 finance communication system. See “BTAM programmable terminals” on page 358.
Input
The unit of transmission from a 3601 Finance Communication Controller to CICS is a segment consisting of the start-of-text
data-link control character (STX), the 1-byte identification of the 3600 logical workstation that issued the processor write, the
data, and either an end-of-block (ETB) or an end-of-text (ETX) control character.
A logical workstation sends a message either in one segment, in which case the segment ends with ETX, or in more than one
segment, in which case only the last segment ends with ETX, all others ending with ETB.
The input area passed to the user-written application program consists of the data only. The 1-byte field TCTTEDLM, which
can be obtained using an ASSIGN DELIMITER command, contains flags describing the data-link control character (ETB, ETX,
or IRS) that ended the segment. The application program can issue terminal control commands to read the data until it
receives a segment ending with ETX. If blocked data is transmitted, it is received by CICS as blocks of segments. Only the
first segment in a block starts with the STX control character, and all segments are separated by IRS characters. None of the
segments contains ETB or ETX characters except the last, which has the ETX character.
For blocked input, the flags in TCTTEDLM only indicate end of segment, not end of message. The CICS application program
still receives only the data, but user-defined conventions may be required to determine the end of the message.
The field TCTTEDLM also indicates the mode of the input, either transparent or nontransparent. Blocked input is
nontransparent.
The terminal control facility does not pass input containing a start-of-header (SOH) data-link control character to a user-written
application program. If it receives an SOH, it sets an indicator in TCTTEDLM, passes the input to the user exit in the terminal
control facility, and then discards it.
Output
When an application program issues a SEND command, the terminal control facility determines, from the value specified in the
BUFFER parameter of the DFHTCT TYPE=TERMINAL system macro, the number of segments to be built for the message. It
sends the message to the 3600 logical unit either in one segment consisting of a start-of-text character (STX), the data, and an
end-of-text character (ETX); or in more than one segment, in which case only the last ends with ETX, all others ending with
ETB.
The host input buffer of the 3600 controller and the input segment of the receiving logical unit must be large enough to
accommodate the data sent by CICS. However, space for the data-link control characters need not be included. The 3600
application program reads the data from the host, by means of an LREAD, until it has received the entire message.
CICS system output messages begin with DFH followed by a 4-byte message number and the message text. These
messages are sent in nontransparent mode. CICS user-written application programs should not send messages starting with
DFH to the 3601.
Resend message
When a logical unit sends a message to the host and a ‘short on storage’ condition exists or the input is unsolicited (the active
task associated with the terminal has not issued a read), the terminal control facility sends a “resend” message to the logical
unit. No message is sent to the destinations CSMT or CSTL.
The first eight bytes of data sent to CICS can be used by the 3600 application program to define a convention to associate
responses received from CICS with transactions sent to the host; for example, sequence numbers could be used.
If a CICS user-written application program has already issued a SEND command when a resend situation occurs, the resend
message is not sent to the 3601 until the user-written application program message has been sent. A 3600 logical unit cannot
receive a resend message while receiving a segmented message.
Only one resend message at a time can be queued for a logical unit. If a second resend situation occurs before CICS has
written the first, a resend message is sent containing the eight bytes of data that accompanied the second input transaction
from the 3600 logical unit.
The resend message is sent in transparent mode if the input data from the 3601 to be retransmitted is received by CICS in
transparent mode. Otherwise it is sent in nontransparent mode.
Chapter 1. Commands 59
CONVERSE (non-VTAM)
CONVERSE (3735)
Function
Communicate on a 3735 programmable buffered terminal.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──┬──────┬──"
| └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘ └─ASIS─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
EOF, LENGERR
CONVERSE communicates on a 3735 programmable buffered terminal. The 3735 programmable buffered terminal may be
serviced by CICS in response to terminal-initiated input (automatic answering), or as a result of an automatic calling or
time-initiated transaction.
CONVERSE (3740)
Function
Communicate on a 3740 data entry system.
Command syntax
──CONVERSE──FROM(data-area)──┬─FROMLENGTH(data-value)──┬──┬─INTO(data-area)─┬────────────────────────────
└─FROMFLENGTH(data-value)─┘ └─SET(ptr-ref)────┘
──┬─TOLENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──┬──────┬──"
| └─TOFLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘ └─ASIS─┘
| └─MAXFLENGTH(data-value)─┘
Conditions:
LENGERR
In batch mode, many files are exchanged between the 3740 and CICS in a single transmission. The transmission of an input
batch must be complete before an output transmission can be started.
ASIS
indicates that output is to be sent in transparent mode (with no recognition of control
characters and accepting any of the 256 possible combinations of eight bits as valid
transmittable data).
Note: If you are using a katakana terminal, you might see some messages containing
mixed English and katakana characters. That is because katakana terminals cannot
display mixed-case output. Uppercase characters in the data stream appear as
uppercase English characters, but lowercase characters appear as katakana characters.
If this happens, ask your system programmer to specify MSGCASE=UPPER in the
system initialization parameters so that messages contain uppercase characters only.
ATTACHID(name)
specifies that an attach header (created by a BUILD ATTACH command) is to precede,
and be concatenated with, the user data supplied in the FROM option. “name” (1–8
characters) identifies the attach header control block to be used in the local task.
CONVID(name)
identifies the conversation to which the command relates. The 4-character name
identifies either the token returned by a previously executed ALLOCATE command in
EIBRSRCE in the EIB, or the token representing the principal session (returned by a
previously executed ASSIGN command).
CTLCHAR(data-value)
specifies a 1-byte write control character (WCC1) that controls the CONVERSE
command. A COBOL user must specify a data area containing this character. If the
option is omitted, all modified data tags are reset to zero and the keyboard is restored.
| DEFAULT
| set the terminal to use the DEFAULT screen size.
DEFRESP
indicates that a definite response is required when the output operation has been
completed.
DEST(name)
specifies the 4-byte symbolic name of the TCAM destination to which the message is to
be sent. This option is meaningful only for terminals defined using DFHTCT
TYPE=SDSCI with DEVICE=TCAM.
If you use the DEST option, you must be aware of any restrictions placed on
device-dependent data streams by the message control facility in use. See the section
on the CICS-TCAM interface in the CICS/ESA Customization Guide for programming
information.
ERASE
specifies that the screen printer buffer or partition is to be erased and the cursor
returned to the upper left corner of the screen. (This option applies only to the 3270, or
8775, and to the 3604 Keyboard Display.)
The first output operation in any transaction, or in a series of pseudoconversational
transactions, should always specify ERASE. For transactions attached to 3270 screens
| or printers, unless explicitly overridden by the DEFAULT or ALTERNATE option, this
| also ensures that the correct screen size is selected, as defined for the transaction by
| the SCRNSZE option in the profile definition.
Chapter 1. Commands 61
CONVERSE (non-VTAM)
FMH
specifies that a function management header has been included in the data to be
written. If the ATTACHID option is specified as well, the concatenated FMH flag is set
in the attach FMH.
FROM(data-area)
specifies the data to be written to the terminal or logical unit, or sent to the partner
transaction. This option may, when relevant, be omitted if ATTACHID is specified.
FROMFLENGTH(data-value)
is a fullword alternative to FROMLENGTH.
FROMLENGTH(data-value)
specifies the length, as a halfword binary value, of the data to be written. If you use this
option, you must also specify FROM. For a description of a safe upper limit, see
“LENGTH options” on page 5.
INTO(data-area)
specifies the receiving field for the data read from the logical unit or terminal.
LEAVEKB
specifies that the keyboard is to remain locked at the completion of the data transfer.
LINEADDR(data-value)
specifies that the writing is to begin on a specific line of a 2260/2265 screen. The data
value is a halfword binary value in the range 1 through 12 for a 2260, or 1 through 15
for a 2265.
MAXFLENGTH(data-value)
is a fullword alternative to MAXLENGTH.
MAXLENGTH(data-value)
specifies the maximum amount (halfword binary value) of data that CICS is to recover in
response to a CONVERSE command. If INTO is specified, MAXLENGTH overrides the
use of TOLENGTH as an input to CICS. If SET is specified, MAXLENGTH provides a
way for the program to limit the amount of data it receives at one time.
| If the value specified is less than zero, zero is assumed.
If the length of data exceeds the value specified and the NOTRUNCATE option is not
present, the data is truncated to that value and the LENGERR condition occurs. The
data area specified in the TOLENGTH option is set to the original length of data.
If the length of data exceeds the value specified and the NOTRUNCATE option is
present, CICS retains the remaining data and uses it to satisfy subsequent RECEIVE
commands. The data area specified in the TOLENGTH option is set to the length of
data returned.
If no argument is coded for MAXLENGTH, CICS defaults to TOLENGTH.
NOTRUNCATE
specifies that, when the data available exceeds the length requested, the remaining data
is not to be discarded but retained for retrieval by subsequent RECEIVE commands.
PSEUDOBIN
specifies that the data being read and written is to be translated from System/7
pseudobinary representation to hexadecimal.
SESSION(name)
specifies the symbolic identifier (1–4 characters) of a session TCTTE. This option
specifies the alternate facility to be used. If both this option and CONVID are omitted,
the principal facility for the task is used.
SET(ptr-ref)
specifies a pointer reference to be set to the address of data received from the
conversation partner in an MRO conversation. The pointer reference, unless changed
by other commands or statements, is valid until the next CONVERSE (MRO) command
or the end of task.
If DATALOCATION(ANY) is associated with the application program, the address of the
data can be above or below the 16MB line.
If DATALOCATION(BELOW) is associated with the application program, and the data
resides above the 16MB line, the data is copied below the 16MB line, and the address
of this copy is returned.
If TASKDATAKEY(USER) is specified for the running task, and storage protection is
active, the data returned is in a user-key. If TASKDATAKEY(CICS) is specified and
storage protection is active, the data returned is in a CICS-key.
STATE(cvda)
gets the state of the transaction program. The cvda values returned by CICS are:
ALLOCATED
FREE
PENDFREE
RECEIVE
ROLLBACK
SEND
SYNCFREE
SYNCRECEIVE
SYNCSEND
STRFIELD
specifies that the data area specified in the FROM option contains structured fields. If
this option is specified, the contents of all structured fields must be handled by the
application program. The CONVERSE command, rather than a SEND command, must
be used if the data area contains a read partition structured field. (Structured fields are
described in the CICS/ESA 3270 Data Stream Device Guide.)
CTLCHAR and ERASE are mutually exclusive with STRFIELD, and their use with
STRFIELD generates an error message.
TOFLENGTH(data-area)
is a fullword alternative to TOLENGTH.
TOLENGTH(data-area)
specifies the length, as a halfword binary value, of the data to be received. If you
specify INTO, but omit MAXLENGTH, “data-area” specifies the maximum length that the
program accepts. If the value is less than zero, zero is assumed.
If the length of the data exceeds the value specified, but NOTRUNCATE is omitted, the
data is truncated to that value, and the LENGERR condition occurs. When the data is
received, the data area is set to the length of the data.
For a description of a safe upper limit, see “LENGTH options” on page 5.
If more than one occurs, only the first is passed to the application program. EIBRCODE,
however, is set to indicate all the conditions that occurred.
CBIDERR
occurs if the requested attach header control block named in ATTACHID cannot be
found.
Default action: terminate the task abnormally.
Chapter 1. Commands 63
CONVERSE (non-VTAM)
EOC
occurs when a request/response unit (RU) is received with the end-of-chain indicator
set. Field EIBEOC also contains this indicator.
Default action: ignore the condition.
INBFMH
occurs if a request/response unit (RU) contains a function management header (FMH).
Field EIBFMH contains this indicator and it should be used in preference to INBFMH.
The IGNORE CONDITION command can be used to ignore the condition.
Default action: terminate the task abnormally.
LENGERR
occurs in any of the following situations:
Data is discarded by CICS because its length exceeds the maximum that the
program accepts and the NOTRUNCATE option is not specified.
An out-of-range value is supplied in the FROMLENGTH option.
NOTALLOC
occurs if the facility specified in the command is not owned by the application.
Default action: terminate the task abnormally.
TERMERR
occurs for a session-related error.
A CANCEL TASK request by a user node error program (NEP) may cause this condition
if the task has an outstanding terminal control request active when the node abnormal
condition program handles the session error.
Default action: terminate the task abnormally with abend code ATNI.
WRBRK
occurs if the “send” part of the conversation is terminated by the attention (ATTN) key
rather than the return key.
Default action: ignore the condition.
DELAY
Function
Delay the processing of a task.
Command syntax
┌─INTERVAL()──────────────────────┐
──DELAY──┼──────────────────────────────────┼──┬─────────────┬──"
├─INTERVAL(hhmmss)─────────────────┤ └─REQID(name)─┘
├─TIME(hhmmss)─────────────────────┤
│ ┌──
───────────────────────┐ │
| ├─FOR───*┬─HOURS(data-value)───┬┴───┤
| │ ├─MINUTES(data-value)─┤ │
| │ └─SECONDS(data-value)─┘ │
│ ┌──
───────────────────────┐ │
| └─UNTIL───*┬─HOURS(data-value)───┬┴─┘
| ├─MINUTES(data-value)─┤
| └─SECONDS(data-value)─┘
Conditions:
EXPIRED, INVREQ
DELAY suspends the processing of the issuing task for a SECONDS(3723) means one hour, two minutes, and
specified interval of time or until a specified time of day. It three seconds.
supersedes any previously initiated POST command for the
task.
DELAY options
| The default is INTERVAL(0), but for C the default is FOR FOR
| HOURS(0) MINUTES(0) SECONDS(0). specifies the duration of the delay.
The following example shows you how to suspend the HOURS(data-value)
processing of a task for five minutes: a fullword binary value in the range 0–99.
EXEC CICS DELAY
INTERVAL(hhmmss)
INTERVAL(5OO)
REQID('GXLBZQMR') | specifies, in packed decimal format, the interval of time
that is to elapse from the time when the DELAY
EXEC CICS DELAY FOR MINUTES(5) command is issued. The mm and ss are in the range
0–59. The time specified is added to the current clock
The following example shows you how, at 09:00, to suspend
time by CICS when the command is executed to
the processing of a task until 12:45:
calculate the expiration time.
EXEC CICS DELAY
TIME(1245OO) | When using the C language, you are recommended to
REQID('UNIQCODE') | use the FOR/UNTIL HOURS, MINUTES, and SECONDS
| options as C does not provide a packed decimal data
There are two ways to enter the time under FOR or UNTIL. | type. You may use INTERVAL, but if the value specified
| is not an integer constant, the application is responsible
A combination of at least two of HOURS(0–99),
| for ensuring that the value passed to CICS is in packed
MINUTES(0–59) and SECONDS(0–59). HOURS(1)
| decimal format.
SECONDS(3) would mean one hour and three seconds
(the minutes default to zero). MINUTES(data-value)
Any one of HOURS(0–99), MINUTES(0–5999), or | specifies a fullword binary value in the range 0–59, when
SECONDS(0–359 999). HOURS(1) means one hour. | HOURS or SECONDS are also specified, or 0–5999
MINUTES(62) means one hour and two minutes. | when MINUTES is the only option specified.
Chapter 1. Commands 65
DELAY
REQID(name)
specifies a name (1–8 characters), which should be
| unique, to identify the DELAY request. Using this option
| to specify an application-defined name enables another
| transaction to cancel the DELAY request.
| To enable other tasks to cancel unexpired DELAY
| requests, you must make the request identifier
| dynamically available. For example, storing it in a TS
| queue, whose name is known to other applications that
| may want to cancel the DELAY request, is one way you
| can pass a request identifier to other transactions.
SECONDS(data-value)
| specifies a fullword binary value in the range 0–59, when
| HOURS or MINUTES are also specified, or 0–359 999
| when SECONDS is the only option specified.
TIME(hhmmss)
| specifies, in packed decimal format, the time when the
| task should resume processing.
| When using the C language, you are recommended to
| use the FOR/UNTIL HOURS, MINUTES, and SECONDS
| options as C does not provide a packed decimal data
| type. You may use TIME, but if the value specified is
| not an integer constant, the application is responsible for
| ensuring that the value passed to CICS is in packed
| decimal format. See the section about expiration times
in the CICS/ESA Application Programming Guide.
UNTIL
| specifies the time at the end of the delay and when the
| task should resume processing.
DELAY conditions
EXPIRED
occurs if the time specified has already expired when the
command is issued.
Default action: ignore the condition.
INVREQ
occurs in any of the following situations:
DELETE
Function
| Delete a record from a file — VSAM KSDS, VSAM RRDS, and data tables only.
Command syntax
──DELETE──FILE(filename)─────────────────────────────────────────────────────────────────────────────────
──┬──────────────────────────────────────────────────────────────────────────────────┬────────────────────
| ├─TOKEN(data-value)────────────────────────────────────────────────────────────────┤
└─RIDFLD(data-area)──┬───────────────────────────────────────────────────────────┬─┘
└─KEYLENGTH(data-value)──┬────────────────────────────────┬─┘
└─GENERIC──┬───────────────────┬─┘
└─NUMREC(data-area)─┘
──┬───────────────────┬──┬─────┬──"
└─SYSID(systemname)─┘ ├─RBA─┤
└─RRN─┘
Conditions:
| DISABLED, DUPKEY, FILENOTFOUND, ILLOGIC, INVREQ, IOERR, ISCINVREQ, LOADING, NOTAUTH, NOTFND,
NOTOPEN, SYSIDERR
DELETE deletes a record from a file on a KSDS, a path over DELETE options
| a KSDS, a CICS or user-maintained data table, or an RRDS.
| You cannot delete from a VSAM ESDS. All references to FILE(filename)
| KSDS apply equally to CICS maintained data tables and, specifies the name of the file to be accessed.
| except where stated otherwise, to paths over a KSDS. If SYSID is specified, the data set to which this file refers
The file may be on a local or a remote system. You identify, is assumed to be on a remote system irrespective of
in the RIDFLD option, the specific record to be deleted. whether the name is defined in the FCT. Otherwise, the
FCT entry is used to find out whether the data set is on
You can delete a group of records in a similar way with a a local or a remote system.
single invocation of this command, identifying the group by
| the GENERIC option (not available for user-maintained data GENERIC (KSDS)
| tables or RRDS). specifies that the search key is a generic key with a
length specified in the KEYLENGTH option. The search
| You can also use this command to delete a single record for a record is satisfied when a record is found with a
| that has previously been retrieved for update (by a READ key that has the same starting characters (generic key)
| UPDATE command). In this case, you must not specify the as those specified.
| RIDFLD option.
If you specify GENERIC, you must also specify RIDFLD.
When this command is used to delete records from a | You cannot use GENERIC for user-maintained data
CICS-maintained data table, the update is made to both the | tables.
source VSAM KSDS data set and the in-memory data table.
KEYLENGTH(data-value)
| When this command is used to delete records from a specifies the length (halfword binary) of the key that has
| user-maintained data table, the update is made only to the been specified in the RIDFLD option, except when RBA
| in-memory data table. or RRN is specified, in which case it is not valid. This
option must be specified if GENERIC is specified, and it
The following example shows you how to delete a group of may be specified whenever a key is specified. However,
records in a VSAM data set: if the length specified is different from the length defined
EXEC CICS DELETE for the data set and the operation is not generic, the
FILE('MASTVSAM') INVREQ condition occurs.
RIDFLD(ACCTNO)
The INVREQ condition also occurs if you specify
KEYLENGTH(len)
GENERIC, and the KEYLENGTH is not less than that
GENERIC
NUMREC(NUMDEL) specified in the VSAM definition.
You should not specify a zero value of KEYLENGTH
because the results of this are unpredictable.
Chapter 1. Commands 67
DELETE
NUMREC(data-area) (KSDS) This condition cannot occur when deleting a record just
specifies a halfword binary data area that CICS sets to read for update.
the number of deleted records.
Default action: terminate the task abnormally.
RBA (KSDS except for paths over KSDS)
DUPKEY
specifies that the record identification field specified in
occurs if a record is accessed by way of an alternate
the RIDFLD option contains a relative byte address.
index with the NONUNIQUEKEY attribute, and another
This option should be used only when deleting records
alternate index record with the same key follows
using relative byte addresses instead of keys to identify
(RESP2=140).
the records.
Default action: terminate the task abnormally.
| You cannot use RBA for user-maintained data tables.
FILENOTFOUND
RIDFLD(data-area)
occurs if the file name referred to in the FILE option
# specifies the record identification field. When combined
cannot be found in the FCT (RESP2=1).
# with RBA or RRN this is a 4-character field. The
| contents can be a key, a relative byte address, or a Default action: terminate the task abnormally.
| relative record number. For a relative byte address or a
ILLOGIC
relative record number, the format of this field must be
occurs if a VSAM error occurs that does not fall within
fullword binary. For a relative byte address, the RIDFLD
one of the other CICS response categories
can be greater than or equal to zero. For a relative
(RESP2=110).
record number, the RIDFLD can be greater than or
equal to 1. # (See EIBRCODE in the EXEC interface block; refer to
Appendix A, “EXEC interface block” on page 343 for
The contents must be a key for user-maintained data
details.)
tables.
Default action: terminate the task abnormally.
You must specify this option if you have also specified
GENERIC. INVREQ
occurs in any of the following situations:
RRN (VSAM RRDS)
specifies that the record identification field specified in Delete operations are not allowed according to the
the RIDFLD option contains a relative record number. file entry specification in the FCT (RESP2=20).
This option should be used only with files referencing
| When the user-maintained data table was defined
relative record data sets.
| as a CICS file, the definition did not allow for delete
SYSID(systemname) | operations (RESP2=20).
specifies the name (1–4 characters) of the system the A DELETE command is issued for a file referring to
request is directed to. a VSAM ESDS (RESP2=21).
If you specify SYSID, and omit both RBA and RRN, you A generic delete is issued for a file that is not a
must also specify KEYLENGTH; it cannot be found in VSAM KSDS (RESP2=22).
the FCT.
The KEYLENGTH and GENERIC options are
| TOKEN(data-value) specified, and the length specified in the
| specifies as a fullword binary value a unique request KEYLENGTH option is greater than or equal to the
| identifier for a DELETE, and is used to associate it with length of a full key (RESP2=25).
| a previous READ for UPDATE request. This is an input
The KEYLENGTH option is specified (but the
| value returned by the task to file control.
GENERIC option is not specified), and the specified
length does not equal the length defined for the data
DELETE conditions set to which this file refers (RESP2=26).
Note: RESP2 values are not set for files that are on remote A DELETE command is issued for a file referring to
systems. a BDAM data set (RESP2=27).
| for example if GENERIC were specified Default action: terminate the task abnormally.
| (RESP2=44).
NOTOPEN
| A DELETE instruction includes a token whose value occurs in any of the following situations (RESP2=60):
| cannot be matched against any token in use for an
| existing READ for UPDATE request (RESP2=47). The requested file is CLOSED and UNENABLED.
The CLOSED, UNENABLED state is reached after a
| An attempt is made to function-ship a request which
CLOSE request has been received against an
| includes a TOKEN keyword (RESP2=48).
OPEN ENABLED file and the file is no longer in
Default action: terminate the task abnormally. use. This state can also be specified as the initial
state by means of the FILSTAT parameter of the file
IOERR
control table TYPE=FILE, or by defining a file using
occurs if there is an I/O error during the file control
the RDO options STATUS=UNENABLED and
operation (RESP2=120). An I/O error is any unusual
OPENTIME=FIRSTREF.
event that is not covered by a CICS condition.
The requested file is OPEN and in use by other
For VSAM files, IOERR normally indicates a hardware
transactions, but a CLOSE request against the file
error.
has been received.
(Further information is available in the EXEC interface
This condition does not occur if the request is made to
block; refer to Appendix A, “EXEC interface block” on
either a CLOSED, ENABLED file or a CLOSED,
page 343 for details.)
DISABLED file. In the first case, the file is opened as
Default action: terminate the task abnormally. part of executing the request. In the second case, the
DISABLED condition occurs.
ISCINVREQ
occurs when the remote system indicates a failure that This condition also cannot occur when deleting a record
does not correspond to a known condition (RESP2=70). just read for update.
Default action: terminate the task abnormally. Default action: terminate the task abnormally.
| LOADING SYSIDERR
| occurs if a delete request is issued for a user-maintained | occurs when the SYSID option specifies a name that is
| data table that is currently being loaded (RESP2=104). | neither the local system nor a remote system (made
| known to CICS by defining a CONNECTION).
| A user-maintained data table cannot be modified during
SYSIDERR also occurs when the link to the remote
| loading.
system is closed (RESP2=130).
| Default action: terminate the task abnormally.
Default action: terminate the task abnormally.
NOTAUTH
occurs when a resource security check has failed on
FILE(filename) (RESP2=101).
Default action: terminate the task abnormally.
NOTFND
occurs if an attempt to delete a record based on the
search argument provided is unsuccessful (RESP2=80).
| A NOTFND condition occurs, for VSAM only, if the
| RIDFLD specifies a track address outside the extent of a
| BDAM data set.
| For user-maintained data tables, this condition occurs if
| an attempt to delete a record is unsuccessful because
| there is no entry with the specified key in the data table.
# This can occur on an attempt to delete a record using a
# DELETE without RIDFLD, if the delete is associated with
# a READ UPDATE request for a record that this
# transaction has deleted (using DELETE with RIDFLD)
# after it was read for update (RESP2=80).
This does not mean that there is no such record in the
source data set; it may be that such a record is present
but was either rejected during initial loading by the user
exit XDTRD, or was subsequently deleted from the
user-maintained data table.
Chapter 1. Commands 69
DELETEQ TD
DELETEQ TD
Function
Delete all transient data.
Command syntax
──DELETEQ TD──QUEUE(name)──┬───────────────────┬──"
└─SYSID(systemname)─┘
Conditions:
DISABLED, INVREQ, ISCINVREQ, NOTAUTH, QIDERR, SYSIDERR
DELETEQ TD conditions
DISABLED
occurs when the queue has been disabled.
Default action: terminate the task abnormally.
INVREQ
occurs if DELETEQ names an extrapartition queue.
Default action: terminate the task abnormally.
ISCINVREQ
occurs when the remote system indicates a failure that
does not correspond to a known condition.
Default action: terminate the task abnormally.
DELETEQ TS
Function
Delete a temporary storage queue.
Command syntax
──DELETEQ TS──QUEUE(name)──┬───────────────────┬──"
└─SYSID(systemname)─┘
Conditions:
INVREQ, ISCINVREQ, NOTAUTH, QIDERR, SYSIDERR
DELETEQ TS conditions
INVREQ
occurs when the queue was created by CICS internal
code.
Default action: terminate the task abnormally.
ISCINVREQ
occurs when the remote system indicates a failure that
does not correspond to a known condition.
Default action: terminate the task abnormally.
NOTAUTH
occurs when a resource security check has failed on
QUEUE(name).
Default action: terminate the task abnormally.
Chapter 1. Commands 71
DEQ
DEQ
Function
Schedule use of a resource by a task (dequeue).
Command syntax
┌─LUW───────────────┐
──DEQ──RESOURCE(data-area)──┬────────────────────┬──┼───────────────────┼──"
└─LENGTH(data-value)─┘ ├─MAXLIFETIME(cvda)─┤
└─TASK──────────────┘
Conditions:
INVREQ, LENGERR
LENGERR
means that the value you specified for the LENGTH
option is outside the range 1 through 255 (RESP2=1).
Chapter 1. Commands 73
DUMP TRANSACTION
DUMP TRANSACTION
Function
Request a transaction dump.
Command syntax
──DUMP TRANSACTION──DUMPCODE(name)──┬──────────────────────────────────────────┬──┬──────────┬───────────
└─FROM(data-area)──┬─LENGTH(data-value)──┬─┘ └─COMPLETE─┘
└─FLENGTH(data-value)─┘
──┬─────┬──┬───────────────────────────────────────────────────────────────────────┬──┬──────┬────────────
└─TRT─┘ └─SEGMENTLIST(data-area)──LENGTHLIST(data-area)──NUMSEGMENTS(data-area)─┘ └─TASK─┘
──┬─────────┬──┬─────────┬──┬──────────┬──┬────────┬──┬─────┬──┬─────┬──┬─────┬──┬─────┬──┬─────┬─────────
└─STORAGE─┘ └─PROGRAM─┘ └─TERMINAL─┘ └─TABLES─┘ └─DCT─┘ └─FCT─┘ └─PCT─┘ └─PPT─┘ └─SIT─┘
──┬─────┬──┬───────────────────┬──"
└─TCT─┘ └─DUMPID(data-area)─┘
Conditions:
INVREQ, IOERR, NOSPACE, NOSTG, NOTOPEN, OPENERR, SUPPRESSED
DUMP TRANSACTION dumps all, a series, or any single DUMP TRANSACTION options
main storage area related to a task, any or all of the CICS
tables (DCT, FCT, PCT, PPT, SIT, or TCT), or all of these COMPLETE
together. dumps all main storage areas related to a task, all the
CICS tables, and the DL/I control blocks.
Note that if you issue a DUMP TRANSACTION for a
DCT
DUMPCODE that is defined in the transaction dump table
dumps the destination control table.
with SYSDUMP, you also get a system dump.
DUMPCODE(name)
The following example shows how to request a dump of all specifies a name (1–4 characters) that identifies the
the task-related storage areas, the terminal control table, and | dump. If the name contains any leading or imbedded
a specified data area: | blanks, the dump is produced but INVREQ is raised. No
EXEC CICS DUMP TRANSACTION | entry is added to the system dump table.
DUMPCODE('name')
FROM(data-area) If you omit all the options except DUMPCODE, you get
LENGTH(data-value) the same TASK, but without the DL/I control blocks.
Common system area (CSA), including the user’s All program storage areas containing user-written
portion of the CSA (CWA). application programs active on behalf of the
# requesting task
Apar 63695
Register save areas (RSAs) indicated by the RSA
# Documentation for Apar 63695 added 6 Jan
chain off the TCA
# 1995 (TUCKER)
Either the terminal control table terminal entry
# If TRAN is specified for the TRTRANTY SIT (TCTTE) or the destination control table entry
# parameter, only the trace entries associated with the associated with the requesting task.
# current task are formatted. If TRTRANTY=ALL is Whenever the TCTTE is dumped, the terminal control
# specified, the entire internal trace table is formatted. table user area (if any) and the message control blocks
# This only applies when the CICS trace facility is (if any) associated with the TCTTE are dumped.
# active.
SEGMENTLIST(data-area)
Either the terminal control table terminal entry
specifies a list of addresses, which are the starting
(TCTTE) or the destination control table entry
points of the segments to be dumped. Each segment is
associated with the requesting task.
a task-related storage area. You must use both the
Whenever the TCTTE is dumped, the terminal control NUMSEGMENTS and LENGTHLIST options when you
table user area (if any) and the message control blocks use the SEGMENTLIST option.
(if any) associated with the TCTTE are dumped. The
SIT
latter are used by basic mapping support.
dumps the system initialization table.
LENGTH(data-value)
STORAGE
specifies the length (halfword binary) of the data area
specifies that storage areas associated with this task are
specified in the FROM option. For a description of a
to be dumped, as follows:
safe upper limit, see “LENGTH options” on page 5.
LENGTH and FLENGTH are mutually exclusive. Task control area (TCA) and, if applicable, the
transaction work area (TWA)
LENGTHLIST(data-area)
Common system area (CSA), including the user’s
| specifies a list of fullword binary values showing the
portion of the CSA (CWA)
| lengths of the storage areas to be dumped. This
| corresponds to the list of segments specified in the Trace entries relating to the task written to the
SEGMENTLIST option. You must use both the internal trace table (only when the CICS trace
SEGMENTLIST and NUMSEGMENTS options when you facility is active)
use the LENGTHLIST option. All transaction storage areas
NUMSEGMENTS(data-area) Either the terminal control table terminal entry
specifies the number (fullword binary) of areas to be (TCTTE) or the destination control table entry
dumped. You must use both the SEGMENTLIST and associated with the requesting task.
LENGTHLIST options when you use the
NUMSEGMENTS option. Whenever the TCTTE is dumped, the terminal control
table user area (if any) and the message control blocks
PCT (if any) associated with the TCTTE are dumped.
| formats a summary of each installed transaction
| definition. TABLES
dumps the DCT, FCT, PCT, PPT, SIT, and the TCT.
PPT
dumps the processing program table. TASK
specifies that storage areas associated with this task are
PROGRAM to be dumped, as follows:
specifies that program storage areas associated with this
task are to be dumped, as follows: | A summary of the transaction environment
| associated with this task
Task control area (TCA) and, if applicable, the
Common system area (CSA), including the user’s
transaction work area (TWA)
portion of the CSA (CWA)
Common system area (CSA), including the user’s
Trace entries relating to the task written to the
portion of the CSA (CWA)
internal trace table (only when the CICS trace
Trace entries relating to the task written to the facility is active)
internal trace table (only when the CICS trace
All program storage areas containing user-written
facility is active)
application programs active on behalf of the
requesting task
Chapter 1. Commands 75
DUMP TRANSACTION
TCT NOSTG
dumps the terminal control table. occurs if CICS has run out of working storage
(RESP2=5).
TERMINAL
| Default action: terminate the task abnormally.
specifies that storage areas associated with the terminal
are to be dumped, as follows: NOTOPEN
occurs if the current CICS dump data set is not open
Task control area (TCA) and, if applicable, the
(RESP2=6).
transaction work area (TWA)
| Default action: terminate the task abnormally.
Common system area (CSA), including the user’s
portion of the CSA (CWA) OPENERR
Trace entries relating to the task written to the occurs if there is an error on opening, closing, or writing
internal trace table (only when the CICS trace to the current CICS dump routine (RESP2=7).
facility is active) | Default action: terminate the task abnormally.
All terminal input/output areas (TIOAs) chained off
SUPPRESSED
the terminal control table terminal entry (TCTTE) for
occurs in any of the following situations:
the terminal associated with the requesting task as
long as the request is not a write, or storage The transaction dump is suppressed by MAXIMUM
freezing is on for the task or the terminal in table (RESP2=1).
Either the terminal control table terminal entry The transaction dump is suppressed by
(TCTTE) or the destination control table entry NOTRANDUMP in table (RESP2=2).
associated with the requesting task.
The transaction dump is suppressed by a user exit
Whenever the TCTTE is dumped, the terminal control program (RESP2=3).
table user area (if any) and the message control blocks
| Default action: terminate the task abnormally.
(if any) associated with the TCTTE are dumped. The
latter are used by basic mapping support.
TRT
dumps the trace entries relating to the task written to the
internal trace table.
ENDBR
Function
End browse of a file.
Command syntax
──ENDBR──FILE(filename)──┬───────────────────┬──┬───────────────────┬──"
└─REQID(data-value)─┘ └─SYSID(systemname)─┘
Conditions:
FILENOTFOUND, ILLOGIC, INVREQ, ISCINVREQ, NOTAUTH, SYSIDERR
| ENDBR ends a browse on a file or data table (CICS or # (See EIBRCODE in the EXEC interface block; refer to
| user-maintained) on a local or a remote system. Appendix A, “EXEC interface block” on page 343 for
details.)
You should always issue an end browse (ENDBR) command
Default action: terminate the task abnormally.
before performing any update operations on the same data
set (READ UPDATE, DELETE with RIDFLD, or WRITE), and INVREQ
before a syncpoint. You only need issue ENDBR after a occurs if the REQID, if any, does not match that of any
successful STARTBR. successful STARTBR command (RESP2=35).
Default action: terminate the task abnormally.
ENDBR options
ISCINVREQ
FILE(filename) occurs when the remote system indicates a failure that
specifies the name of the file being browsed. does not correspond to a known condition (RESP2=70).
If SYSID is specified, the data set to which this file refers Default action: terminate the task abnormally.
is assumed to be on a remote system irrespective of
whether the name is defined in the FCT. Otherwise, the NOTAUTH
FCT entry is used to find out whether the data set is on occurs when a resource security check has failed on
a local or a remote system. FILE(filename) (RESP2=101).
Default action: terminate the task abnormally.
REQID(data-value)
specifies a unique (halfword binary value) request SYSIDERR
identifier for a browse, used to control multiple browse | occurs when the SYSID option specifies a name that is
operations on a data set. If this option is not specified, a | neither the local system nor a remote system (made
default value of zero is assumed. | known to CICS by defining a CONNECTION).
SYSIDERR also occurs when the link to the remote
SYSID(systemname)
system is closed (RESP2=130).
specifies the name (1–4 characters) of the system the
request is directed to. Default action: terminate the task abnormally.
ENDBR conditions
Note: RESP2 values are not set for files that are on remote
systems.
FILENOTFOUND
occurs if the name referred to in the FILE option cannot
be found in the FCT (RESP2=1).
Default action: terminate the task abnormally.
ILLOGIC (VSAM)
occurs if a VSAM error occurs that does not fall within
one of the other CICS response categories
(RESP2=110).
Chapter 1. Commands 77
ENQ
ENQ
Function
Schedule use of a resource by a task (enqueue).
┌─LUW───────────────┐
──ENQ──RESOURCE(data-area)──┬────────────────────┬──┼───────────────────┼──┬───────────┬──"
└─LENGTH(data-value)─┘ ├─MAXLIFETIME(cvda)─┤ └─NOSUSPEND─┘
└─TASK──────────────┘
Conditions:
ENQBUSY, LENGERR, INVREQ
ENQ causes further execution of the task issuing the ENQ same location or to different locations, but the contents
command to be synchronized with the availability of the of the locations must be the same. The length must be
specified resource; control is returned to the task when the supplied in the LENGTH option.
resource is available. EXEC CICS ENQ
RESOURCE(SOCSECNO)
A resource in the context of this command is any string of LENGTH(8)
1–255 bytes, established by in-house standards, to protect
against conflicting actions between tasks, or to cause single
threading within a program. | Resource unavailability
If a task enqueues on a resource but does not dequeue from | If a resource is not available when ENQUEUED, the
it, CICS automatically releases the resource during syncpoint | application program is suspended until it becomes available.
processing (including DL/I, PCB, and TERM calls), or when | However, if the NOSUSPEND option has been specified and
the task is terminated. Option LUW on MAXLIFETIME forces | the resource is unavailable, the ENQBUSY condition is
the dequeue at the end of a logical unit of work (LUW). | raised. It is also raised if you have previously issued
Option TASK on MAXLIFETIME forces the dequeue at the # HANDLE CONDITION ENQBUSY, even if NOSUSPEND is
end of a task. If there are several LUWs in a task, the # not coded. This allows the application program to handle the
enqueue carries over the LUWs. | case of resource unavailability (by HANDLE CONDITION
| ENQUEUE) without waiting for the resource to become
If more than one ENQ command is issued for the same | available.
resource by a given task, the resource remains owned by
that task until the task issues a matching number of DEQ
commands. ENQ options
LENGTH(data-value)
The resource to be enqueued on must be identified by one of
specifies that the resource to be enqueued on has a
the following methods:
length given by the data value. The data value is a
Specifying a data area that is the resource. It is the halfword binary value in the range 1–255. If the value
location (address) of the data area in storage that you specify is outside this range, a LENGERR condition
matters, not its contents. Two tasks, enqueuing on the is issued. If the LENGTH option is specified in an ENQ
same resource and using this method, must refer to the command, it must also be specified in the DEQ
same location in storage. They could both, for example, command for that resource, and the values of these
refer to the same location in the CWA. options must be the same. You must specify LENGTH
EXEC CICS ENQ when using the method that specifies a data value
RESOURCE(RESNAME) containing a unique argument, but not for the method
that specifies a data area as the resource. It is the
Specifying a data area that contains a unique argument
presence or absence of LENGTH that tells CICS which
(for example, an employee name) that represents the
method you are using.
resource. It is the contents of the data value that
matters, not its location. Two tasks, enqueuing on the
same resource and using this method, can refer to the
NOSUSPEND
specifies that the application program is not to be
suspended if the resource on the ENQ command is
| unavailable, but the ENQBUSY condition occurs.
RESOURCE(data-area)
Identifies the resource to be enqueued on by:
Chapter 1. Commands 79
ENTER TRACENUM
ENTER TRACENUM
Function
Write a trace entry.
Command syntax
──ENTER TRACENUM(data-value)──┬────────────────────────────────────────────┬──┬────────────────┬─────────
└─FROM(data-area)──┬───────────────────────┬─┘ └─RESOURCE(name)─┘
└─FROMLENGTH(data-area)─┘
──┬───────────┬──"
└─EXCEPTION─┘
Conditions:
INVREQ, LENGERR
For information about the trace entry format, see the ENTER TRACENUM conditions
CICS/ESA Problem Determination Guide. INVREQ
| occurs in any of the following situations:
The following COBOL example shows how to write a user
trace entry with a trace identifier of 123, with trace data from | TRACENUM is outside the range 0 through 199
a data area called USER-TRACE-ENTRY: | (RESP2=1)
EXEC CICS ENTER TRACENUM(123) | There is no valid trace destination (RESP2=2)
FROM(USER-TRACE-ENTRY)
END-EXEC. | The user trace flag is set OFF and EXCEPTION has
| not been specified (RESP2=3).
LENGERR
occurs when FROMLENGTH is outside the range 0
| through 4000 (RESP2=4).
| Default action: terminate the task abnormally.
Chapter 1. Commands 81
EXTRACT ATTACH (LUTYPE6.1)
Function
Retrieve values from an LUTYPE6.1 attach header.
Command syntax
──EXTRACT ATTACH──┬────────────────┬──┬────────────────────┬──┬─────────────────────┬────────────────────
├─ATTACHID(name)─┤ └─PROCESS(data-area)─┘ └─RESOURCE(data-area)─┘
├─CONVID(name)───┤
└─SESSION(name)──┘
──┬─────────────────────┬──┬──────────────────────┬──┬──────────────────┬──┬───────────────────┬──────────
└─RPROCESS(data-area)─┘ └─RRESOURCE(data-area)─┘ └─QUEUE(data-area)─┘ └─IUTYPE(data-area)─┘
──┬────────────────────┬──┬──────────────────┬──"
└─DATASTR(data-area)─┘ └─RECFM(data-area)─┘
Conditions:
CBIDERR, INVREQ, NOTALLOC
EXTRACT ATTACH retrieves a set of values that are held in O-7 reserved - must be set to zero
an attach header control block, or that have been built 8-11 OOOO - user-defined
previously. For the command to retrieve information from a 1111 - SCS data stream
received attach FMH (Function Management Header), 111O - 327O data stream
EIBATT must have been set during a RECEIVE or 11O1 - structured field
11OO - logical record management
CONVERSE command.
12-15 defined by the user if bits 8-11
are set to OOOO; otherwise reserved
EXTRACT ATTACH (LUTYPE6.1) options (must be set to zero)
ATTACHID(name) IUTYPE(data-area)
specifies that values are to be retrieved from an attach corresponds to the interchange unit field, ATTIU, in an
header control block. The name (1–8 characters) LUTYPE6.1 attach FMH.
identifies this control block to the local task. For communication between two CICS systems, no
particular significance is attached by CICS to the
CONVID(name)
interchange unit field in an attach FMH. For most CICS
identifies the conversation to which the command
applications the option can be omitted.
relates. The 4-character name identifies either the token
returned by a previously executed ALLOCATE command The value returned in the data area is a halfword binary
in EIBRSRCE in the EIB, or the token representing the value. Only the low-order 7 bits are used; the
principal session (returned by a previously executed SNA-defined meanings of the bits are as follows:
ASSIGN command). O-1O reserved - must be set to zero
DATASTR(data-area) 11 O - not end of multichain interchange unit
1 - end of multichain interchange unit
corresponds to the data stream profile field, ATTDSP, in
12,13 reserved - must be set to zero
an LUTYPE6.1 attach FMH.
14,15 OO - multichain interchange unit
For communication between two CICS systems, no O1 - single-chain interchange unit
particular significance is given by CICS to the data 1O - reserved
stream profile field in an attach FMH. For most CICS 11 - reserved
applications, the option can be omitted. PROCESS(data-area)
The value returned in the data area is a halfword binary corresponds to the process name, ATTDPN, in an
value. Only the low-order byte is used; the SNA-defined LUTYPE6.1 attach FMH.
meanings of the bits are as follows: For communication between two CICS systems, a
transaction running in one system can acquire a session
to the second system and can identify the transaction to
be attached; in the second system the identification is
carried in the first chain of data sent across the session.
RESOURCE(data-area)
corresponds to the resource name, ATTPRN, in an
LUTYPE6.1 attach FMH.
For communication between two CICS systems, no
significance is attached by CICS to the resource name in
an attach FMH.
For communication between a CICS system and another
subsystem, refer to documentation supplied by the
subsystem about how to use the resource name field in
an attach FMH.
Chapter 1. Commands 83
EXTRACT ATTACH (MRO)
Function
Retrieve values from an MRO attach header.
Command syntax
──EXTRACT ATTACH──┬────────────────┬──┬────────────────────┬──┬─────────────────────┬────────────────────
├─ATTACHID(name)─┤ └─PROCESS(data-area)─┘ └─RESOURCE(data-area)─┘
├─CONVID(name)───┤
└─SESSION(name)──┘
──┬─────────────────────┬──┬──────────────────────┬──┬──────────────────┬──┬───────────────────┬──────────
└─RPROCESS(data-area)─┘ └─RRESOURCE(data-area)─┘ └─QUEUE(data-area)─┘ └─IUTYPE(data-area)─┘
──┬────────────────────┬──┬──────────────────┬──"
└─DATASTR(data-area)─┘ └─RECFM(data-area)─┘
Conditions:
CBIDERR, INVREQ, NOTALLOC
EXTRACT ATTACH retrieves a set of values that are held in O-7 reserved - must be set to zero
an attach header control block, or that have been built 8-11 OOOO - user-defined
previously. For the command to retrieve information from a 1111 - SCS data stream
received attach FMH (Function Management Header), 111O - 327O data stream
EIBATT must have been set during a RECEIVE or 11O1 - structured field
11OO - logical record management
CONVERSE command.
12-15 defined by the user if bits 8-11
For more information about MRO and IRC, see the are set to OOOO; otherwise reserved
(must be set to zero)
CICS/ESA Intercommunication Guide.
IUTYPE(data-area)
corresponds to the interchange unit field, ATTIU, in an
EXTRACT ATTACH (MRO) options
LUTYPE6.1 attach FMH.
ATTACHID(name) For communication between two CICS systems, no
specifies that values are to be retrieved from an attach particular significance is attached by CICS to the
header control block. The name (1–8 characters) interchange unit field in an attach FMH. For most CICS
identifies this control block to the local task. applications the option can be omitted.
CONVID(name) The value returned in the data area is a halfword binary
identifies the conversation to which the command value. Only the low-order 7 bits are used; the
relates. The 4-character name identifies either the token SNA-defined meanings of the bits are as follows:
returned by a previously executed ALLOCATE command
O-1O reserved - must be set to zero
in EIBRSRCE in the EIB, or the token representing the
11 O - not end of multichain interchange unit
principal session (returned by a previously executed 1 - end of multichain interchange unit
ASSIGN command). 12,13 reserved - must be set to zero
DATASTR(data-area) 14,15 OO - multichain interchange unit
O1 - single chain interchange unit
corresponds to the data stream profile field, ATTDSP, in
1O - reserved
an LUTYPE6.1 attach FMH. 11 - reserved
For communication between two CICS systems, no
PROCESS(data-area)
particular significance is given by CICS to the data
corresponds to the process name, ATTDPN, in an
stream profile field in an attach FMH. For most CICS
LUTYPE6.1 attach FMH.
applications, the option can be omitted.
For communication between two CICS systems, a
The value returned in the data area is a halfword binary
transaction running in one system can acquire a session
value. Only the low-order byte is used; the SNA-defined
to the second system and can identify the transaction to
meanings of the bits are as follows:
be attached; in the second system the identification is
carried in the first chain of data sent across the session.
RESOURCE(data-area)
corresponds to the resource name, ATTPRN, in an
LUTYPE6.1 attach FMH.
For communication between two CICS systems, no
significance is attached by CICS to the resource name in
an attach FMH.
For communication between a CICS system and another
subsystem, refer to documentation supplied by the
subsystem about how to use the resource name field in
an attach FMH.
Chapter 1. Commands 85
EXTRACT ATTRIBUTES (APPC)
| Function
| Obtains the state of the APPC conversation.
Command syntax
──EXTRACT ATTRIBUTES──┬──────────────┬──STATE(cvda)──"
└─CONVID(name)─┘
Conditions:
INVREQ, NOTALLOC
Function
Extract attributes from an MRO conversation.
Command syntax
──EXTRACT ATTRIBUTES──┬───────────────┬──STATE(cvda)──"
├─CONVID(name)──┤
└─SESSION(name)─┘
Conditions:
INVREQ, NOTALLOC
EXTRACT ATTRIBUTES (MRO) extracts conversation state EXTRACT ATTRIBUTES (MRO) conditions
information for MRO conversations.
INVREQ
occurs in any one of the following situations:
EXTRACT ATTRIBUTES (MRO) options
An incorrect command has been issued for the
CONVID(name) terminal or LU in use.
identifies the conversation to which the command
| A distributed program link server application
relates. The 4-character name identifies either the token
| explicitly, or implicitly by default, specified the
returned by a previously executed ALLOCATE command
| function-shipping session (its principal facility) on the
in EIBRSRCE in the EIB, or the token representing the
| CONVID option (RESP2=200).
principal session (returned by a previously executed
ASSIGN command). Default action: terminate the task abnormally.
SESSION(name) NOTALLOC
specifies the symbolic identifier (1–4 characters) of a occurs if the facility specified in the command is not
session TCTTE. This option specifies the alternate owned by the application.
facility to be used.
Default action: terminate the task abnormally.
If both this option and CONVID are omitted, the principal
facility for the task is used.
STATE(cvda)
gets the state of the transaction program. The cvda
values returned by CICS are:
ALLOCATED
FREE
PENDFREE
RECEIVE
ROLLBACK
SEND
SYNCFREE
SYNCRECEIVE
SYNCSEND
Chapter 1. Commands 87
EXTRACT LOGONMSG
EXTRACT LOGONMSG
Function
Access VTAM logon data.
Command syntax
──EXTRACT LOGONMSG──┬─INTO(data-area)─┬──LENGTH(data-area)──"
└─SET(ptr-ref)────┘
# Condition: NOTALLOC
EXTRACT LOGONMSG accesses VTAM logon data. This If TASKDATAKEY(USER) is specified for the running
data may have been specified by the terminal operator at task, and storage protection is active, the data returned
logon or in the ISSUE PASS command, for example. This is in a user-key. If TASKDATAKEY(CICS) is specified
data is only available if the system initialization parameter and storage protection is active, the data returned is in a
LGNMSG=YES is specified. The data can only be extracted CICS-key.
once. It is possible to force the first transaction that runs on
the terminal to be that which issues EXTRACT LOGONMSG
# EXTRACT LOGONMSG condition
by using the the system initialization parameter GMTRAN.
# NOTALLOC
All the logon data is extracted and its length placed in the # occurs if the facility specified in the command is not
field specified by the LENGTH option. Because the LENGTH # owned by the application.
option cannot be used to limit the amount of data extracted,
it is recommended that a field of 256 bytes is always used # Default action: terminate the task abnormally.
for this option.
| If you use the SET option, the VTAM logon data is not freed
| until the session terminates (CLSDST). If you use the INTO
| option, the VTAM logon data is copied into user storage and
| then freed.
LENGTH(data-area)
specifies the length, as a halfword binary value, of the
data extracted. If no data is available, LENGTH is set to
zero.
SET(ptr-ref)
specifies the pointer reference that is to be set to the
address of the data extracted. The pointer reference,
unless changed by other commands or statements, is
valid until the next EXTRACT LOGONMSG command or
the end of task.
If DATALOCATION(ANY) is associated with the
application program, the address of the data can be
above or below the 16MB line.
If DATALOCATION(BELOW) is associated with the
application program, and the data resides above the
16MB line, the data is copied below the 16MB line, and
the address of this copy is returned.
EXTRACT PROCESS
Function
Retrieve values from APPC conversation attach header.
Command syntax
──EXTRACT PROCESS──┬────────────────────────────────────────────────────────────────────────┬────────────
└─PROCNAME(data-area)──PROCLENGTH(data-area)──┬────────────────────────┬─┘
└─MAXPROCLEN(data-value)─┘
──┬──────────────┬──┬──────────────────────┬──┬────────────────────────────────────────┬──"
└─CONVID(name)─┘ └─SYNCLEVEL(data-area)─┘ └─PIPLIST(ptr-ref)──PIPLENGTH(data-area)─┘
Conditions:
INVREQ, LENGERR, NOTALLOC
Chapter 1. Commands 89
EXTRACT PROCESS
NOTALLOC
occurs if the CONVID value specified in the command
does not relate to a conversation owned by the
application.
Default action: terminate the task abnormally.
EXTRACT TCT
Function
Convert an 8-character name to a 4-character name on an LUTYPE6.1 logical unit.
Command syntax
──EXTRACT TCT──NETNAME(name)──┬───────────────────┬──"
├─SYSID(systemname)─┤
└─TERMID(data-area)─┘
Conditions:
# INVREQ, NOTALLOC
SYSID(systemname)
specifies the variable to be set to the equivalent local
name of the system.
TERMID(data-area)
specifies the variable to be set to the equivalent local
name of the terminal.
# NOTALLOC
# occurs if the facility specified in the command is not
# owned by the application.
# Default action: terminate the task abnormally.
Chapter 1. Commands 91
FORMATTIME
FORMATTIME
Function
Transform absolute date and time into a specified format.
Command syntax
| ──FORMATTIME──ABSTIME(data-area)──┬─────────────────────┬──┬─────────────────┬───────────────────────────
# └─FULLDATE(data-area)─┘ └─DATE(data-area)─┘
──┬─────────────────────┬──┬───────────────────────────┬──┬─────────────────────┬─────────────────────────
└─DATEFORM(data-area)─┘ └─DATESEP──┬──────────────┬─┘ └─DAYCOUNT(data-area)─┘
└─(data-value)─┘
──┬───────────────────────┬──┬──────────────────────┬──┬───────────────────┬──┬─────────────────────┬─────
| └─DAYOFMONTH(data-area)─┘ └─DAYOFWEEK(data-area)─┘ └─DDMMYY(data-area)─┘ └─DDMMYYYY(data-area)─┘
──┬───────────────────┬──┬─────────────────────┬──┬────────────────────────┬──────────────────────────────
| └─MMDDYY(data-area)─┘ └─MMDDYYYY(data-area)─┘ └─MONTHOFYEAR(data-area)─┘
──┬────────────────────────────────────────────────┬──┬─────────────────┬──┬──────────────────┬───────────
└─TIME(data-area)──┬───────────────────────────┬─┘ └─YEAR(data-area)─┘ └─YYDDD(data-area)─┘
└─TIMESEP──┬──────────────┬─┘
└─(data-value)─┘
──┬───────────────────┬──┬───────────────────┬──┬────────────────────┬──┬─────────────────────┬───────────
| └─YYDDMM(data-area)─┘ └─YYMMDD(data-area)─┘ └─YYYYDDD(data-area)─┘ └─YYYYDDMM(data-area)─┘
──┬─────────────────────┬──"
| └─YYYYMMDD(data-area)─┘
Conditions:
INVREQ
FORMATTIME transforms the absolute date and time into To obtain an elapsed time in a particular format, the
any of a variety of formats. Normally, the ABSTIME ABSTIME data value can be the difference between two
argument is the value returned by an ASKTIME ABSTIME values returned by ASKTIME, and options such as
command. DAYCOUNT(d) and TIME(t) can be specified.
| This gives the values 06-12-89 for “date” and 19:01:05 for DATEFORM(data-area)
“time”. specifies the format of the installation-defined date.
CICS returns YYMMDD, DDMMYY, or MMDDYY (six
characters) according to the DATFORM system # 10/21/95). A separator is present if requested by the
initialization parameter. # DATESEP option. If no separator is requested, the
# returned value is left-justified in the 8-character user
DATESEP(data-value)
# field.
specifies the character to be inserted as the separator
between the year and the month, and between the day | MMDDYYYY(data-area)
and the month; or between the year and the day if form | specifies the 10-character user field where CICS is to
YYDDD is specified. | return the date, in month/day/year format (for example
| 11/21/1995).
If you omit this option, no separator is supplied. If you
omit “data-value”, a slash (/) is assumed as the MONTHOFYEAR(data-area)
separator. “data-area” is set to the relative month number of the
year as a fullword binary number (January=1,
DAYCOUNT(data-area)
December=12). You can convert this number, in your
returns the number of days since 1 January 1900 (day
application program, to the name of the month in any
1), as a fullword binary number. This is useful if you
language.
need to compare the current date with a previous date
that has, for example, been stored in a data set. TIME(data-area)
“data-area” is set as an 8-character field to the current
DAYOFMONTH(data-area)
24-hour clock time in the form hh:mm:ss, where the
returns the number of the day in the month as a fullword
separator is specified by the TIMESEP option.
binary number.
| If the milliseconds come to 500 or more, the returned
DAYOFWEEK(data-area)
| seconds and, if necessary, the minutes and hours, are
returns the relative day number of the week as a
| rounded up. The day, month, and year are, however,
fullword binary number: Sunday=0, Saturday=6. This
| never rounded up.
number can be converted to a textual form of day in any
language. TIMESEP(data-value)
specifies the character to be used as the separator in
DDMMYY(data-area)
the returned time. If you omit this option, no separator is
specifies the 8-character user field where CICS is to
assumed and six bytes are returned in an 8-character
return the date, in day/month/year format (for example,
field. If you omit the “data-value”, a colon (:) is used as
# 21/10/95). A separator is present if requested by the
a separator.
# DATESEP option. If no separator is requested, the
# returned value is left-justified in the 8-character user YEAR(data-area)
# field. specifies the full 4-figure number of the year as a
fullword binary number (for example, 1995, 2001).
| DDMMYYYY(data-area)
| specifies the 10-character user field where CICS is to YYDDD(data-area)
| return the date, in day/month/year format (for example specifies the 6-character user field where CICS is to
| 17/06/1995). A separator is present if requested by the return the date, in year/day format (for example, 95/301).
# DATESEP option. If no separator is requested, the # A separator is present if requested by the DATESEP
# returned value is left-justified in the 10-character user # option. If no separator is requested, the returned value
# field. # is left-justified in the 6-character user field.
# Apar PQ00059 YYDDMM(data-area)
# Documentation for Apar PQ00059 added 20/03/97 specifies the 8-character user field where CICS is to
return the date, in year/day/month format (for example,
# 95/30/10). A separator is present if requested by the
# FULLDATE(data-area) # DATESEP option. If no separator is requested, the
# specifies the 10-character user field where CICS is to # returned value is left-justified in the 8-character user
# return the date, in the format specified in the DATFORM # field.
# system initialization parameter, with the year expanded
# to 4 digits. A separator is present if requested by the YYMMDD(data-area)
# DATESEP option. If no separator is requested, the specifies the 8-character user field where CICS is to
# returned value is left-justified in the 10-character user return the date, in year/month/day format (for example,
# field. You should normally use this option only when a 95/10/21).
# date is needed for output purposes. Where a date is
| YYYYDDD(data-area)
# needed for analysis, you should request the date in
| specifies the 8-character user field where CICS is to
# explicit form, for example, using the MMDDYYYY option.
| return the date, in year/day format (for example
MMDDYY(data-area) | 1995/200). A separator is present if requested by the
specifies the 8-character user field in which CICS is to # DATESEP option. If no separator is requested, the
return the date, in month/day/year format (for example,
Chapter 1. Commands 93
FORMATTIME
| YYYYDDMM(data-area)
| specifies the 10-character user field where CICS is to
| return the date, in year/day/month format (for example
| 1995/21/06). A separator is present if requested by the
# DATESEP option. If no separator is requested, the
# returned value is left-justified in the 10-character user
# field.
| YYYYMMDD(data-area)
| specifies the 10-character user field where CICS is to
| return the date, in year/month/day format (for example
| 1995/06/21). A separator is present if requested by the
# DATESEP option. If no separator is requested, the
# returned value is left-justified in the 10-character user
# field.
FORMATTIME condition
INVREQ
occurs if the ABSTIME option is in an incorrect form
(RESP2=1).
Default action: terminate the task abnormally.
| FREE
| Function
| Return a terminal or logical unit.
| Command syntax
|
| ──FREE──"
| Conditions:
| NOTALLOC
| FREE conditions
| NOTALLOC
| occurs if the task is not associated with the terminal.
| Default action: terminate the task abnormally.
Chapter 1. Commands 95
FREE (APPC)
FREE (APPC)
Function
Return an APPC mapped session to CICS.
Command syntax
──FREE──┬──────────────┬──┬─────────────┬──"
└─CONVID(name)─┘ └─STATE(cvda)─┘
Conditions:
INVREQ, NOTALLOC
FREE returns an APPC session to CICS when a transaction FREE (APPC) conditions
owning it no longer requires it. The session can then be
allocated for use by other transactions. INVREQ
occurs in any of the following situations:
| If you omit CONVID, the principal facility is freed. Facilities
The CONVID value specified in the command
not freed explicitly are freed by CICS when the task
relates to a basic (unmapped) APPC conversation.
terminates.
The CONVID value specified in the command
If you are running EDF, and the transaction frees the relates to a CPI-Communications conversation.
principal facility, EDF is terminated.
A distributed program link server application
specified the function-shipping session (its principal
FREE (APPC) options facility) on the CONVID option (RESP2=200).
STATE(cvda)
gets the state of the current conversation. The STATE
option on a FREE command returns a cvda code of 00 if
there is no longer an active conversation. The other
output cvda values are:
ALLOCATED
CONFFREE
CONFRECEIVE
CONFSEND
FREE
PENDFREE
PENDRECEIVE
RECEIVE
ROLLBACK
SEND
SYNCFREE
SYNCRECEIVE
SYNCSEND
FREE (LUTYPE6.1)
Function
Return LUTYPE6.1 sessions to CICS.
Command syntax
──FREE──┬───────────────┬──"
├─CONVID(name)──┤
└─SESSION(name)─┘
Conditions:
INVREQ, NOTALLOC
SESSION(name)
specifies the symbolic identifier (1–4 characters) of a
session TCTTE. This option specifies the alternate
facility to be used.
NOTALLOC
occurs if the session specified in the command is not
owned by the application.
Default action: terminate the task abnormally.
Chapter 1. Commands 97
FREE (MRO)
FREE (MRO)
Function
Return MRO sessions to CICS.
Command syntax
──FREE──┬───────────────┬──┬─────────────┬──"
├─CONVID(name)──┤ └─STATE(cvda)─┘
└─SESSION(name)─┘
Conditions:
INVREQ, NOTALLOC
FREE returns an MRO session to CICS when a transaction FREE (MRO) conditions
owning it no longer requires it. The session can then be
allocated for use by other transactions. INVREQ
occurs in any one of the following situations:
If you omit both CONVID and SESSION, the principal facility
The session specified in the command was
is freed. Facilities not freed explicitly are freed by CICS
allocated for a basic (unmapped) APPC
when the task terminates.
conversation
If you are running EDF, and the transaction frees the The session is in the wrong state to be freed.
principal facility, EDF is terminated.
(See also EIBRCODE in Appendix A, “EXEC interface
block” on page 343.)
FREE (MRO) options
Default action: terminate the task abnormally.
CONVID(name)
NOTALLOC
identifies the MRO session to be freed. The 4-character
occurs if the session specified in the command is not
name identifies either the token returned by a previously
owned by the application.
executed ALLOCATE command in EIBRSRCE in the
EIB, or the token representing the principal session Default action: terminate the task abnormally.
(returned by a previously executed ASSIGN command).
SESSION(name)
specifies the symbolic identifier (1–4 characters) of a
session TCTTE. This option specifies the alternate
facility to be used.
STATE(cvda)
gets the state of the current conversation. The STATE
on a FREE command returns a cvda code of 00 if there
is no longer an active conversation. The other output
cvda values are:
ALLOCATED
FREE
PENDFREE
RECEIVE
ROLLBACK
SEND
SYNCFREE
SYNCRECEIVE
SYNCSEND
FREEMAIN
Function
Release main storage acquired by a GETMAIN command.
Command syntax
──FREEMAIN──┬─DATA(data-area)────────┬──"
| └─DATAPOINTER(ptr-value)─┘
Conditions:
INVREQ
Chapter 1. Commands 99
FREEMAIN
PL/I
DCL AREA_PTR POINTER,
WORKAREA CHAR(1OO) BASED(AREA_PTR);
.
.
.
EXEC CICS GETMAIN SET(AREA_PTR) LENGTH(1OO);
.
EXEC CICS FREEMAIN DATA(WORKAREA);
Assembler
WORKAREA DS CL1OO
.
.
EXEC CICS GETMAIN SET(9) LENGTH(1OO)
USING WORKAREA,9
EXEC CICS FREEMAIN DATA(WORKAREA)
Alternatively, you can free storage using the DATAPOINTER FREEMAIN option
option as shown in the following example:
DATA(data-area)
WORKAREA DS CL1OO
. specifies the data area of main storage to be released.
EXEC CICS GETMAIN SET(9) LENGTH(1OO) This storage must have been acquired by a previous
USING WORKAREA,9 GETMAIN command, except in the case of BMS pages.
. (For more guidance about BMS pages, see the
. description of the SET option in the CICS/ESA
DROP 9
Application Programming Guide.)
.
EXEC CICS FREEMAIN DATAPOINTER(9) Note that this option specifies the data area that was
acquired by the GETMAIN command, not the pointer
reference that was set to that address. You must use
the DATAPOINTER option to specify a pointer-reference:
DATA and DATAPOINTER are mutually exclusive.
Therefore, in assembler language, “data-area” must be a
relocatable expression that is a data reference; in
COBOL or C it must be a data name; and in PL/I it must
be a data reference. (See the CICS/ESA Application
Programming Guide for a discussion of argument
values.)
The length of storage released is the length obtained by
the GETMAIN and not necessarily the length of the data
area.
| DATAPOINTER(ptr-value)
specifies the address of the main storage to be released.
This option is an alternative to the DATA option, and
specifies the pointer reference that was returned by a
GETMAIN command using the SET option.
The length of storage released is the length obtained by
the GETMAIN.
FREEMAIN condition
INVREQ
occurs in any one of the following situations:
GDS ALLOCATE
Function
Acquire a session to a remote system for use by APPC basic conversation (assembler-language and C programs only).
Command syntax
──GDS ALLOCATE──┬─SYSID(systemname)──┬────────────────┬─┬──CONVID(data-area)──RETCODE(data-area)─────────
│ └─MODENAME(name)─┘ │
| └─PARTNER(name)─────────────────────────┘
──┬─────────┬──┬─────────────┬──"
└─NOQUEUE─┘ └─STATE(cvda)─┘
GDS ALLOCATE acquires a session to a remote system. The CICS allocation algorithm has selected a
contention loser (in which case, CICS has to bid).
The return code is given in RETCODE (see Table 1 on
page 103). For a list of return code values, see the If there is a delay, the program waits until the session
CICS/ESA Distributed Transaction Programming Guide. has been acquired.
EXEC CICS conditions are never raised on GDS commands.
| PARTNER(name)
| specifies the name (8 characters) of a set of definitions
GDS ALLOCATE options | that include the names of a remote LU (NETNAME) and
| a communication profile to be used on the allocated
In general, the arguments can be replaced by absolute or | session. For APPC basic conversations, the only
relocatable assembler-language expressions. | relevant attribute set by the profile is MODENAME.
CONVID(data-area) | If you use this option as an alternative to SYSID and
specifies the 4-character application data area that is to | MODENAME, CICS uses the NETNAME and
contain the token returned by an ALLOCATE command | MODENAME from the PARTNER definition.
to identify the allocated conversation. This token is
RETCODE(data-area)
required in subsequent GDS commands issued on the
specifies the 6-byte application data area into which
conversation.
return code information is to be moved.
MODENAME(name)
STATE(cvda)
specifies the name of the mode group from which the
gets the state of the current conversation. The cvda
| session is to be acquired. If you specify SYSID and
values returned by CICS are:
| omit MODENAME, CICS selects a modename from
| those defined for the system. ALLOCATED
CONFFREE
NOQUEUE
CONFRECEIVE
specifies that the request to allocate a session is not to
CONFSEND
be queued when a suitable APPC session cannot be
FREE
acquired immediately. A session is acquired
PENDFREE
immediately only if it is a bound contention winner that is
PENDRECEIVE
not already allocated to another conversation.
RECEIVE
The return code in RETCODE indicates whether or not a ROLLBACK
session has been acquired. SEND
If the NOQUEUE option is not used, a delay may occur SYNCFREE
before control is passed back to the application program. SYNCRECEIVE
A delay can occur for any of the following reasons: SYNCSEND
GDS ASSIGN
Function
Get identifier of principal facility in use by APPC basic conversation (assembler-language and C programs only).
Command syntax
──GDS ASSIGN──┬───────────────────────┬──┬──────────────────────┬──RETCODE(data-area)──"
└─PRINCONVID(data-area)─┘ └─PRINSYSID(data-area)─┘
PRINCONVID(data-area)
specifies a 4-byte data area in which the conversation
token (CONVID) of the principal facility is to be returned.
PRINSYSID(data-area)
specifies a 4-byte data area in which the SYSID of the
principal facility is to be returned.
RETCODE(data-area)
specifies the 6-byte application data area into which
return code information is to be moved.
Function
Initiate APPC basic conversation (assembler-language and C programs only).
Command syntax
SYNCLEVEL(data-value)
Table 3. GDS CONNECT PROCESS return codes
specifies the synchronization level (halfword binary
value) desired for the current conversation. The RETCODE Description
(hexadecimal)
possible values are:
| 02 0C 00 PARTNER is not known.
0 None
03 00 CONVID is for a session that is not APPC.
1 Confirm
2 Syncpoint. 03 00 CONVID is for a session that is in use by CPI
Communications.
03 04 CONVID is for a conversation that is not basic.
03 0C The SYNCLEVEL option specifies a value
other than 0, 1, or 2.
03 0C The SYNCLEVEL option requested either 1 or
2, but it was unavailable.
03 08 A state check occurred.
04 CONVID is for a session that is not allocated
to the task, or that is a relay link.
05 00 00 00 PROCLENGTH is outside the range 1–64.
00 20
05 00 00 00 The PIPLENGTH value is outside the range
7F FF 4–763.
05 00 00 00 The 2-byte length field (LL) for one of the PIPs
7F FF is less than 4.
05 00 00 00 The total of the LLs in PIP data is greater than
7F FF the PIPLENGTH value.
Function
Access state information on an APPC basic conversation (assembler-language and C programs only).
Command syntax
Function
Retrieve values from an APPC basic conversation (assembler-language and C programs only).
Command syntax
GDS EXTRACT PROCESS retrieves values from an APPC attach function management header, is to be moved.
basic conversation. The data retrieved is valid only when the The area is padded with blanks, if necessary.
command is issued against an APPC basic principal facility.
RETCODE(data-area)
The return code is given in RETCODE (see Table 5). For a specifies the 6-byte application data area into which
list of return code values, see the CICS/ESA Distributed return code information is to be moved.
Transaction Programming Guide. EXEC CICS conditions are
SYNCLEVEL(data-area)
never raised on GDS commands.
specifies a halfword binary data area that is set to
indicate the synchronization level in effect for the current
GDS EXTRACT PROCESS options conversation. The possible values are:
PROCLENGTH(data-area)
specifies a halfword binary data area that is set to the
actual length of the process name.
PROCNAME(data-area)
specifies the application target data area (1–64 bytes)
into which the process name, specified in the APPC
GDS FREE
Function
Return an APPC session to CICS (assembler-language and C programs only).
Command syntax
| ──GDS FREE──CONVID(name)──CONVDATA(data-area)──RETCODE(data-area)──┬─────────────┬──"
└─STATE(cvda)─┘
GDS FREE returns the session to CICS. The issue of this STATE(cvda)
command is valid only when the conversation is finished, that gets the state of the current conversation. The STATE
is, the conversation state is FREE. on a FREE command returns a cvda code of 00 if there
is no longer an active conversation. The other output
The return code is given in RETCODE (see Table 6). For a cvda values are:
list of return code values, see the CICS/ESA Distributed
Transaction Programming Guide. EXEC CICS conditions are ALLOCATED
never raised on GDS commands. CONFFREE
CONFRECEIVE
CONFSEND
GDS FREE options FREE
PENDFREE
In general, the arguments can be replaced by absolute or
PENDRECEIVE
relocatable assembler-language expressions.
RECEIVE
| CONVDATA(data-area) ROLLBACK
| specifies the 24-byte application data area into which SEND
| conversation-related information is to be moved. A SYNCFREE
| description of the format of the data area is given in the SYNCRECEIVE
| discussion of CONVDATA fields in the CICS/ESA SYNCSEND
| Distributed Transaction Programming Guide.
Table 6. GDS FREE return codes
CONVID(name)
RETCODE Description
identifies the conversation to be freed. The 4-character
(hexadecimal)
name identifies either the token returned by a previously
executed GDS ALLOCATE command, or the token 03 00 CONVID is for a session that is not APPC.
representing the principal session (returned by a 03 00 CONVID is for a session that is in use by CPI
previously executed GDS ASSIGN command). Communications.
Function
Terminate APPC basic conversation abnormally (assembler-language and C programs only).
Command syntax
The return code is given in RETCODE (see Table 7). For a ALLOCATED
list of return code values, see the CICS/ESA Distributed CONFFREE
Transaction Programming Guide. EXEC CICS conditions are CONFRECEIVE
never raised on GDS commands. CONFSEND
FREE
PENDFREE
GDS ISSUE ABEND options PENDRECEIVE
RECEIVE
In general, the arguments can be replaced by absolute or
ROLLBACK
relocatable assembler-language expressions.
SEND
CONVDATA(data-area) SYNCFREE
specifies the 24-byte application data area into which SYNCRECEIVE
conversation-related information is to be moved. A SYNCSEND
description of the format of the data area is given in the
discussion of CONVDATA fields in the CICS/ESA Table 7. GDS ISSUE ABEND return codes
Distributed Transaction Programming Guide. RETCODE Description
(hexadecimal)
CONVID(name)
identifies the conversation to which the command 03 00 CONVID is for a session that is not APPC.
relates. The 4-character name identifies either the token 03 00 CONVID is for a session that is in use by CPI
returned by a previously executed GDS ALLOCATE Communications.
command, or the token representing the principal 03 04 CONVID is for a conversation that is not basic.
session (returned by a previously executed GDS
03 08 A state check has occurred.
ASSIGN command).
04 CONVID is for a session that is not allocated
RETCODE(data-area) to the task, or that is a relay link.
specifies the 6-byte application data area into which
return code information is to be moved.
Function
Issue synchronization request on APPC basic conversation (assembler-language and C programs only).
Command syntax
The return code is given in RETCODE (see Table 8). For a ALLOCATED
list of return code values, see the CICS/ESA Distributed CONFFREE
Transaction Programming Guide. EXEC CICS conditions are CONFRECEIVE
never raised on GDS commands. CONFSEND
FREE
PENDFREE
GDS ISSUE CONFIRMATION options PENDRECEIVE
RECEIVE
In general, the arguments can be replaced by absolute or
ROLLBACK
relocatable assembler-language expressions.
SEND
CONVDATA(data-area) SYNCFREE
specifies the 24-byte application data area into which SYNCRECEIVE
conversation-related information is to be moved. A SYNCSEND
description of the format of the data area is given in the
discussion of CONVDATA fields in the CICS/ESA Table 8. GDS ISSUE CONFIRMATION return codes
Distributed Transaction Programming Guide. RETCODE Description
(hexadecimal)
CONVID(name)
identifies the conversation to which the command 03 00 CONVID is for a session that is not APPC.
relates. The 4-character name identifies either the token 03 00 CONVID is for a session that is in use by CPI
returned by a previously executed GDS ALLOCATE Communications.
command, or the token representing the principal 03 04 CONVID is for a conversation that is not basic.
session (returned by a previously executed GDS
03 08 A state check has occurred.
ASSIGN command).
03 14 The command was issued for a sync level 0
RETCODE(data-area) conversation.
specifies the 6-byte application data area into which
04 CONVID is for a session that is not allocated
return code information is to be moved.
to the task, or that is a relay link.
Function
Inform APPC basic conversation partner of error (assembler-language and C programs only).
Command syntax
Function
Issue first flow of syncpoint request on APPC basic conversation (assembler-language and C programs only).
Command syntax
Function
Request change of direction from sending transaction APPC basic conversation (assembler-language and C programs only).
Command syntax
GDS RECEIVE
Function
Receive data on an APPC basic conversation (assembler-language and C programs only).
Command syntax
──GDS RECEIVE──CONVID(name)──┬─INTO(data-area)──┬──FLENGTH(data-area)──┬────────────────────────┬────────
└─SET(pointer-ref)─┘ └─MAXFLENGTH(data-value)─┘
──┬─BUFFER─┬──CONVDATA(data-area)──RETCODE(data-area)──┬─────────────┬──"
└─LLID───┘ └─STATE(cvda)─┘
GDS RECEIVE receives data and indicators from a partner to the other end of the current conversation. The length
transaction. of this area must not be less than the value specified in
the MAXFLENGTH option.
The return code is given in RETCODE (see Table 12 on
page 116). For a list of return code values, see the LLID
CICS/ESA Distributed Transaction Programming Guide. specifies that the delimiter to be used by CICS to
EXEC CICS conditions are never raised on GDS commands. terminate the passing of data to the application program
is the end of a GDS structured field, if this occurs before
the MAXFLENGTH limit is reached.
GDS RECEIVE options
MAXFLENGTH(data-value)
In general, the arguments can be replaced by absolute or specifies, as a fullword binary value, either the length of
relocatable assembler-language expressions. the target data area specified in the INTO option, or the
maximum length of data to be addressed by the pointer
BUFFER
reference specified in the SET option. The length must
specifies that the length of the data passed to the
not exceed 32 767 bytes. CICS does not receive more
application program in response to the RECEIVE
data than the MAXFLENGTH value allows.
command is to be restricted only by the length specified
in the MAXFLENGTH option, and is not to be affected RETCODE(data-area)
by GDS structured field boundaries. Control is returned specifies the 6-byte application data area into which
to the application program when this length has been return code information is to be moved.
received, or when a synchronization request,
change-direction, or end-bracket is received. SET(pointer-ref)
specifies the pointer reference to be set to the address
CONVDATA(data-area) of data received from the application program connected
specifies the 24-byte application data area into which to the other end of the current conversation. The pointer
conversation-related information is to be moved. A reference, unless changed by other commands or
description of the format of the data area is given in the statements, is valid until the next RECEIVE (GDS or
discussion of CONVDATA fields in the CICS/ESA APPC) command, or the end of the task.
Distributed Transaction Programming Guide.
If DATALOCATION(ANY) is associated with the
CONVID(name) application program, the address of the data can be
identifies the conversation to which the command above or below the 16MB line.
relates. The 4-character name identifies either the token If DATALOCATION(BELOW) is associated with the
returned by a previously executed GDS ALLOCATE application program, and the data resides above the
command, or the token representing the principal 16MB line, the data is copied below the 16MB line, and
session (returned by a previously executed GDS the address of this copy is returned.
ASSIGN command).
If TASKDATAKEY(USER) is specified for the running
FLENGTH(data-area) task, and storage protection is active, the data returned
specifies a fullword binary data area that is set to the is in a user-key. If TASKDATAKEY(CICS) is specified
length of the data made available to the application and storage protection is active, the data returned is in a
program. CICS-key.
INTO(data-area)
specifies the application target data area into which data
is to be received from the application program connected
STATE(cvda)
gets the state of the current conversation. The cvda
values returned by CICS are:
ALLOCATED
CONFFREE
CONFRECEIVE
CONFSEND
FREE
PENDFREE
PENDRECEIVE
RECEIVE
ROLLBACK
SEND
SYNCFREE
SYNCRECEIVE
SYNCSEND
GDS SEND
Function
Send data on an APPC basic conversation (assembler-language and C programs only).
Command syntax
──GDS SEND──CONVID(name)──┬──────────────────────────────────────┬──┬────────┬──┬─────────┬──────────────
└─FROM(data-area)──FLENGTH(data-value)─┘ ├─INVITE─┤ ├─CONFIRM─┤
└─LAST───┘ └─WAIT────┘
──CONVDATA(data-area)──RETCODE(data-area)──┬─────────────┬──"
└─STATE(cvda)─┘
CONVID(name)
identifies the conversation to which the command
relates. The 4-character name identifies either the token
returned by a previously executed GDS ALLOCATE
command, or the token representing the principal
session (returned by a previously executed GDS
ASSIGN command).
FLENGTH(data-value)
specifies the length (as a fullword binary value in the
range 1–32 767) of the data specified in the FROM
option.
STATE(cvda)
gets the state of the current conversation. The cvda
values returned by CICS are:
ALLOCATED
CONFFREE
CONFRECEIVE
CONFSEND
FREE
PENDFREE
PENDRECEIVE
RECEIVE
ROLLBACK
SEND
SYNCFREE
SYNCRECEIVE
SYNCSEND
WAIT
ensures that all data and indicators so far sent on a
conversation are erased from the partner transaction.
If the WAIT option is not used, data from successive
SEND commands is accumulated by CICS, together with
any indicators, in an internal buffer. If the buffer
becomes full, most of the accumulated data is
transmitted to the remote system, but the accumulated
indicators are not. Transmission of the accumulated
data plus the indicators is forced by the WAIT or
CONFIRM options of the GDS SEND command, or by a
GDS WAIT command.
GDS WAIT
Function
Ensure accumulated data transmitted on an APPC conversation (assembler-language and C programs only).
Command syntax
──GDS WAIT──CONVID(name)──CONVDATA(data-area)──RETCODE(data-area)──┬─────────────┬──"
└─STATE(cvda)─┘
GDS WAIT ensures that the accumulated data has been STATE(cvda)
sent. gets the state of the current conversation. The cvda
values returned by CICS are:
The return code is given in RETCODE (see Table 14). For
a list of return code values, see the CICS/ESA Distributed ALLOCATED
Transaction Programming Guide. EXEC CICS conditions are CONFFREE
never raised on GDS commands. CONFRECEIVE
CONFSEND
FREE
GDS WAIT options PENDFREE
PENDRECEIVE
In general, the arguments can be replaced by absolute or
RECEIVE
relocatable assembler-language expressions.
ROLLBACK
CONVDATA(data-area) SEND
specifies the 24-byte application data area into which SYNCFREE
conversation-related information is to be moved. A SYNCRECEIVE
description of the format of the data area is given in the SYNCSEND
discussion of CONVDATA fields in the CICS/ESA
Distributed Transaction Programming Guide. Table 14. GDS WAIT return codes
RETCODE Description
CONVID(name)
(hexadecimal)
identifies the conversation to which the command
relates. The 4-character name identifies either the token 03 00 CONVID is for a session that is not APPC.
returned by a previously executed GDS ALLOCATE 03 00 CONVID is for a session that is in use by CPI
command, or the token representing the principal Communications.
session (returned by a previously executed GDS 03 04 CONVID is for a conversation that is not basic.
ASSIGN command).
03 08 A state check has occurred.
RETCODE(data-area) 04 CONVID is for a session that is not allocated
specifies the 6-byte application data area into which to task, or that is a relay link.
return code information is to be moved.
GETMAIN
Function
Get main storage.
Command syntax
──GETMAIN──SET(ptr-ref)──┬─FLENGTH(data-value)──┬───────┬─┬──┬─────────────────────┬──┬────────┬─────────
│ └─BELOW─┘ │ └─INITIMG(data-value)─┘ └─SHARED─┘
└─LENGTH(data-value)─────────────┘
──┬───────────┬──┬─────────────┬──"
└─NOSUSPEND─┘ ├─USERDATAKEY─┤
└─CICSDATAKEY─┘
Conditions:
LENGERR, NOSTG
GETMAIN gets a main storage area of the size indicated by | CICS determines whether to obtain the requested storage
the FLENGTH option. (You can also use the LENGTH | above or below the 16MB line, from one of the CICS- or
option, but this is supported for compatibility purposes and | user-key DSAs, or from one of the shared DSAs, according
| you are strongly recommended to use FLENGTH.) The | to the following options:
| address of the area is returned in the pointer reference
The FLENGTH option with BELOW also specified
| supplied in the SET option.
The FLENGTH option alone, in conjunction with the
addressing mode of the requesting program
CICS always allocates on double-word boundaries and
The LENGTH option
rounds the requested length up to the nearest double-word
| The SHARED option.
multiple. Because there is no default initialization, you must
use the INITIMG option if you require the storage to be
The above- or below-the-line allocation is summarized in the
initialized to a specific bit configuration.
following table:
| CICS allocates storage from one of six different dynamic
| storage areas (DSAs): Options Address mode
24-bit 31-bit
The CICS dynamic storage area (CDSA), below the
16MB line FLENGTH BELOW A DSA A DSA
The user dynamic storage area (UDSA), below the FLENGTH alone A DSA An EDSA
16MB line LENGTH A DSA A DSA
| The shared dynamic storage area (SDSA), below the
| 16MB line CICS decides whether to allocate storage from a CICS-key
or user-key DSA, or from a shared DSA, according to the
The extended CICS dynamic storage area (ECDSA),
following options:
above the 16MB line
The USERDATAKEY option on the GETMAIN command.
The extended user dynamic storage area (EUDSA),
The CICSDATAKEY option on the GETMAIN command.
above the 16MB line
The TASKDATAKEY option on the transaction resource
| The extended shared dynamic storage area (ESDSA), definition under which the requesting program is running
| above the 16MB line if the USERDATAKEY or CICSDATAKEY option is
| Note: There are two other dynamic storage areas—the omitted.
| read-only DSA (RDSA) and the extended read-only DSA | The SHARED option on the GETMAIN command.
| (ERDSA)—but you cannot GETMAIN storage from these
The data-key option on the GETMAIN command overrides
| DSAs.
the TASKDATAKEY option on the transaction resource
| definition. The effect of the data-key options, without the Specifying CICSDATAKEY ensures that the requesting
| SHARED option, is summarized in the following table: program obtains CICS-key storage from a CICS DSA, even if
TASKDATAKEY(USER) is specified on the transaction
| Without SHARED option resource definition.
No data-key USERDATAKEY CICSDATAKEY
option specified specified GETMAIN options
Determined by User-key storage CICS-key storage
TASKDATAKEY (from UDSA or (from CDSA or BELOW
on transaction EUDSA) ECDSA) specifies that storage is to be obtained below the 16MB
| definition line, that is, from the CICS DSA.
CICSDATAKEY
| The effect of the SHARED option is summarized in the specifies that CICS is to allocate storage from one of the
| following table: CICS-key DSAs (the CDSA or ECDSA), overriding the
TASKDATAKEY option specified on the transaction
| With SHARED option resource definition. If you do not specify the data key,
| No data-key USERDATAKEY CICSDATAKEY CICS determines the type of storage (CICS-key or
| option specified specified user-key) according to the TASKDATAKEY option on the
| Determined by User-key storage CICS-key storage transaction resource definition.
| TASKDATAKEY (from SDSA or (from CDSA or
FLENGTH(data-value)
| on transaction ESDSA) ECDSA)
| definition
specifies the number of bytes of storage required, in
fullword binary format.
The storage that a task gets is available until it is released | The maximum length that you can specify is the value of
with a FREEMAIN command. For an area obtained without | the corresponding DSA limit parameter, either DSALIMIT
the SHARED option, only the task that acquired the storage | or EDSALIMIT. These are the system initialization
may release it, and at task end CICS automatically releases | parameters that define the overall storage limit within
| such storage not already released. Note that any storage | which CICS can allocate and manage the individual
| acquired with the SHARED option is accessible by all tasks, | DSAs.
| including those that are running with transaction isolation. | If the length requested is bigger than the DSALIMIT or
| EDSALIMIT value, the LENGERR condition occurs. If it
A SHARED area, on the other hand, is not released at task
| is not bigger than these limits, but is more than is
end and remains until explicitly freed; any task may issue the
| available, NOSTG occurs.
FREEMAIN. This means that you can use SHARED storage
in task-to-task communication. INITIMG(data-value)
specifies an optional 1-byte initialization value. If you
You cannot, however, use the storage obtained as a TIOA specify INITIMG, CICS sets every byte of the acquired
for subsequent terminal operations, because this could cause storage to the bit string you provide. Otherwise, CICS
storage violations. does not initialize the storage. In COBOL programs
only, you must use a data area rather than a data value
The following COBOL example shows how to get a
to define the initialization bit string.
1024-byte area from user-key storage below the 16MB line
(assuming that TASKDATAKEY(USER) is specified on the LENGTH(data-value)
transaction resource definition), and initialize it to spaces: specifies the number of bytes (unsigned halfword binary
EXEC CICS GETMAIN SET(PTR) value) of storage required. LENGTH implies storage
FLENGTH(1O24) from below the 16MB line and has an upper limit of
BELOW 65 520 bytes. If you want storage above the 16MB line
INITIMG(BLANK) or a larger area, use FLENGTH.
You must define BLANK in your program as the character If LENGTH is equal to zero, LENGERR occurs. If it is
representing a space. greater than the amount of storage available, NOSTG
occurs.
The following COBOL example shows how to get a
| Note: FLENGTH, with or without BELOW, is the
2048-byte area from CICS-key storage above the 16MB line
| recommended option: the LENGTH option is supported
(regardless of the TASKDATAKEY option specified on the
| for compatibility purposes for those programs written to
transaction resource definition), and initialize it to spaces:
| run under earlier releases of CICS.
EXEC CICS GETMAIN SET(PTR)
FLENGTH(2O48) NOSUSPEND
INITIMG(BLANK) prevents CICS from suspending the task if no storage is
CICSDATAKEY available, and causes it to issue the NOSTG condition
instead.
HANDLE ABEND
Function
Handle an abnormal termination exit.
Command syntax
┌─CANCEL────────┐
──HANDLE ABEND──┼───────────────┼──"
├─PROGRAM(name)─┤
├─LABEL(label)──┤
└─RESET─────────┘
Conditions:
NOTAUTH, PGMIDERR (PROGRAM only)
If LABEL is specified, the addressing mode and execution This option is usually issued by an abnormal termination
key used are those of the program that issued the HANDLE exit routine.
ABEND command.
# If a COMMAREA has been established, it will be passed to Default action: terminate the task abnormally.
# the specified PROGRAM.
PGMIDERR
occurs in any of the following situations:
HANDLE AID
Function
Handle attention identifiers (AIDs).
Command syntax
┌──
─────────────────────────┐
──HANDLE AID───*┬───────────────────────┬┴──"
├─ANYKEY──┬─────────┬───┤
│ └─(label)─┘ │
├─CLEAR──┬─────────┬────┤
│ └─(label)─┘ │
├─CLRPARTN──┬─────────┬─┤
│ └─(label)─┘ │
├─ENTER──┬─────────┬────┤
│ └─(label)─┘ │
├─LIGHTPEN──┬─────────┬─┤
│ └─(label)─┘ │
├─OPERID──┬─────────┬───┤
│ └─(label)─┘ │
├─PA1-PA3──┬─────────┬──┤
│ └─(label)─┘ │
├─PF1-PF24──┬─────────┬─┤
│ └─(label)─┘ │
└─TRIGGER──┬─────────┬──┘
└─(label)─┘
Conditions:
INVREQ
HANDLE AID is used to specify the label to which control is OPERID (for the operator identification card reader, the
to be passed when an AID is received from a display device. magnetic slot reader (MSR), or the extended MSR
Control is passed after the input command is completed; that (MSRE)
is, after any data received in addition to the AID has been
PA1, PA2, or PA3 (any of the program access keys)
passed to the application program.
PF1 through PF24 (any of the program function keys)
To cause an AID to be ignored, issue a HANDLE AID
TRIGGER (for a trigger field attention).
command that specifies the associated option without a
label. This deactivates the effect of that option in any The following example shows a HANDLE AID command that
previously-issued HANDLE AID command. | specifies one label for the PA1 key; and a second label for
| CLEAR, PA2, PA3, and all the PF keys except PF10. If a
| If no HANDLE AIDs are in effect, that is none have been | PF10 AID is received or ENTER is pressed, control returns
| issued or all have been canceled, control returns to the to the application program at the instruction immediately
| application program at the instruction immediately following following the input command.
| the input command. Look in EIBAID to determine which key EXEC CICS HANDLE AID PA1(LAB1)
| was pressed. ANYKEY(LAB2) PF1O
No more than 16 options are allowed in the same command. If a task is initiated from a terminal by means of an AID, the
first RECEIVE command in the task does not read from the
The C language does not support HANDLE AID.
terminal but copies only the input buffer (even if the length of
The options that can be specified are: the data is zero) so that control may be passed by means of
a HANDLE AID command for that AID.
ANYKEY (any PA key, any PF key, or the CLEAR key,
but not ENTER) For the standard attention identifier list (DFHAID), and the
CLEAR (for the key of that name) standard attribute and printer control character list
(DFHBMSCA), see Appendix J, “BMS-related constants” on
CLRPARTN (for the key of that name) page 375.
ENTER (for the key of that name)
LIGHTPEN (for a light-pen attention)
The execution key that the label receives control in, is the
execution key that the program was running in when the
HANDLE AID command was issued.
HANDLE CONDITION
Function
Handle conditions.
Command syntax
┌──
────────────────────────┐
──HANDLE CONDITION───*─condition──┬─────────┬─┴──"
└─(label)─┘
The execution key that the label receives control in, is the In a PL/I application program, a branch to a label in an
execution key that the program was running in when the inactive procedure or in an inactive begin block, caused by a
HANDLE CONDITION command was issued. condition, produces unpredictable results.
IGNORE CONDITION
Function
Ignore conditions.
Command syntax
┌──
───────────┐
──IGNORE CONDITION───*─condition─┴──"
ISSUE ABEND
Function
Abend the mapped conversation with an APPC partner.
Command syntax
──ISSUE ABEND──┬──────────────┬──┬─────────────┬──"
└─CONVID(name)─┘ └─STATE(cvda)─┘
Conditions:
INVREQ, NOTALLOC, TERMERR
ISSUE ABEND abnormally ends the conversation. The ISSUE ABEND conditions
partner transaction sees the TERMERR condition.
INVREQ
occurs in any of the following situations:
ISSUE ABEND options
ISSUE ABEND is used on any conversation other
CONVID(name) than an EXEC CICS APPC mapped conversation.
identifies the conversation to be abended. The
A distributed program link server application
| 4-character name identifies either the symbolic identifier
specified the function-shipping session (its principal
returned by a previously executed ALLOCATE command
facility) on the CONVID option (RESP2=200).
| in EIBRSRCE in the EIB, or the symbolic identifier
representing the principal session (returned by a Default action: terminate the task abnormally.
previously executed ASSIGN command).
NOTALLOC
For compatibility with earlier releases, SESSION is occurs if the CONVID value relates to a conversation
accepted as a synonym for CONVID. New programs that is not owned by the application.
should use CONVID.
Default action: terminate the task abnormally.
If this option is omitted, the principal facility is assumed.
TERMERR
STATE(cvda) occurs for a session-related error. Any action on that
gets the state of the current conversation. The cvda conversation other than a FREE command causes an
values returned by CICS are: ATCV abend.
ALLOCATED A CANCEL TASK request by a user node error program
CONFFREE (NEP) may cause this condition if the task has an
CONFRECEIVE outstanding terminal control request active when the
CONFSEND node abnormal condition program handles the session
FREE error.
PENDFREE
Default action: terminate the task abnormally with abend
PENDRECEIVE
code ATNI.
RECEIVE
ROLLBACK
SEND
SYNCFREE
SYNCRECEIVE
SYNCSEND
ISSUE ABORT
Function
End processing of a data set abnormally.
Command syntax
──ISSUE ABORT──┬────────────────────────────────────────────────┬────────────────────────────────────────
├─DESTID(data-value)──┬────────────────────────┬─┤
│ └─DESTIDLENG(data-value)─┘ │
│ ┌─CONSOLE──┐ │
└─SUBADDR(data-value)──┼──────────┼──────────────┘
├─PRINT────┤
├─CARD─────┤
├─WPMEDIA1─┤
├─WPMEDIA2─┤
├─WPMEDIA3─┤
└─WPMEDIA4─┘
──┬────────────────────────────────────────────────┬──"
└─VOLUME(data-value)──┬────────────────────────┬─┘
└─VOLUMELENG(data-value)─┘
Conditions:
FUNCERR, INVREQ, SELNERR, UNEXPIN
VOLUME(data-value)
ISSUE ABORT options specifies the name (1–6 characters) of a diskette in an
outboard destination that contains the data set specified
CARD
in the DESTID option.
specifies that the output medium is a card reader or card
punch device. This option is not valid with DESTID and VOLUMELENG(data-value)
DESTIDLENG. specifies the length (halfword binary value) of the name
specified in the VOLUME option.
CONSOLE
specifies that the output medium is that provided for WPMEDIA1 through WPMEDIA4
messages to the operator. This option is not valid with specifies that, for each specific LUTYPE4 device, a
DESTID and DESTIDLENG. This refers to a word-processing medium is defined to relate to a specific
programmable subsystem such as the IBM 3790 data input/output device.
communication system. It does not refer to a CICS or
system console.
ISSUE ABORT conditions
DESTID(data-value)
FUNCERR
specifies the name (1–8 characters) of the data set in
occurs if there is an error during execution of the
the outboard destination.
command. Destination selection is unaffected and other
DESTIDLENG(data-value) commands for the same destination may be successful.
specifies the length (halfword binary value) of the name
Default action: terminate the task abnormally.
specified in the DESTID option.
PRINT
specifies that the output medium is a printer.
INVREQ
occurs if a distributed program link server application
specified the function-shipping session (its principal
facility) on the CONVID option (RESP2=200).
Default action: terminate the task abnormally.
SELNERR
occurs if there is an error during destination selection.
The destination is not selected and other commands for
the same destination are unlikely to be successful.
Default action: terminate the task abnormally.
UNEXPIN
occurs when some unexpected or unrecognized
information is received from the outboard controller.
Default action: terminate the task abnormally.
INVREQ
occurs if a distributed program link server application
specified the function-shipping session (its principal
facility) on the CONVID option (RESP2=200).
SELNERR
occurs if there is an error during destination selection.
The destination is not selected and other commands for
the same destination are unlikely to be successful.
Default action: terminate the task abnormally.
UNEXPIN
occurs when some unexpected or unrecognized
information is received from the outboard controller.
Default action: terminate the task abnormally.
ISSUE CONFIRMATION
Function
Issue a positive response to a SEND CONFIRM on an APPC mapped conversation.
Command syntax
──ISSUE CONFIRMATION──┬──────────────┬──┬─────────────┬──"
└─CONVID(name)─┘ └─STATE(cvda)─┘
Conditions:
INVREQ, NOTALLOC, SIGNAL, TERMERR
STATE(cvda)
gets the state of the current conversation. The cvda
values returned by CICS are:
ALLOCATED
CONFFREE
CONFRECEIVE
CONFSEND
FREE
PENDFREE
PENDRECEIVE
RECEIVE
ROLLBACK
SEND
SYNCFREE
SYNCRECEIVE
SYNCSEND
SIGNAL
occurs when an inbound SIGNAL data-flow control
command is received from a partner transaction.
EIBSIG is always set when an inbound signal is
received.
Default action: ignore the condition.
TERMERR
occurs for a session-related error. Any action on that
conversation other than a FREE causes an ATCV
abend.
A CANCEL TASK request by a user node error program
(NEP) may cause this condition if the task has an
outstanding terminal control request active when the
node abnormal condition program handles the session
error.
Default action: terminate the task abnormally with abend
code ATNI.
Function
Copy data from 3270 information display system (BTAM).
Command syntax
──ISSUE COPY──TERMID(name)──┬─────────────────────┬──┬──────┬──"
└─CTLCHAR(data-value)─┘ └─WAIT─┘
Conditions:
# NOTALLOC, TERMIDERR
ISSUE COPY copies the format and data contained in the ISSUE COPY (3270 display) condition
buffer of a specified terminal into the buffer of the terminal
that started the transaction. Both terminals must be attached # NOTALLOC
to the same remote control unit. # occurs if the facility specified in the command is not
# owned by the application.
# Default action: terminate the task abnormally.
ISSUE COPY (3270 display) options
TERMIDERR
CTLCHAR(data-value)
occurs if the specified terminal identifier cannot be found
specifies a 1-byte copy control character (CCC) that
in the terminal control table (TCT).
defines the copy function. A COBOL user must specify
a data area containing this character. If the option is Default action: terminate the task abnormally.
omitted, the contents of the entire buffer (including nulls)
are copied.
TERMID(name)
specifies the name (1–4 characters) of the terminal
whose buffer is to be copied. The terminal must have
been defined in the TCT.
WAIT
specifies that processing of the command must be
completed before any subsequent processing is
attempted.
If the WAIT option is not specified, control is returned to
the application program when processing of the
command has started. A subsequent input or output
request (terminal control, BMS, or batch data
interchange) to the terminal associated with the task
causes the application program to wait until the previous
request has been completed.
Function
Copy data from 3270 logical unit.
Command syntax
──ISSUE COPY──TERMID(name)──┬─────────────────────┬──┬──────┬──"
└─CTLCHAR(data-value)─┘ └─WAIT─┘
Conditions:
# LENGERR, NOTALLOC, TERMERR
ISSUE COPY copies the format and data contained in the TERMERR
buffer of a specified terminal into the buffer of the terminal occurs for a terminal-related error.
that started the transaction. Both terminals must be attached
A CANCEL TASK request by a user node error program
to the same remote control unit.
(NEP) may cause this condition if the task has an
outstanding terminal control request active when the
ISSUE COPY (3270 logical) options node abnormal condition program handles the session
error.
CTLCHAR(data-value)
specifies a 1-byte copy control character (CCC) that Default action: terminate the task abnormally with abend
defines the copy function. A COBOL user must specify code ATNI.
a data area containing this character. If the option is
omitted, the contents of the entire buffer (including nulls)
are copied.
TERMID(name)
specifies the name (1–4 characters) of the terminal
whose buffer is to be copied. The terminal must have
been defined in the TCT.
WAIT
specifies that processing of the command must be
completed before any subsequent processing is
attempted.
If the WAIT option is not specified, control is returned to
the application program once processing of the
command has started. A subsequent input or output
request (terminal control, BMS, or batch data
interchange) to the terminal associated with the task
causes the application program to wait until the previous
request has been completed.
# NOTALLOC
# occurs if the facility specified in the command is not
# owned by the application.
# Default action: terminate the task abnormally.
Function
Terminate a session between CICS and a logical unit or terminal.
Command syntax
──ISSUE DISCONNECT──"
Conditions:
SIGNAL, TERMERR
ISSUE DISCONNECT terminates sessions between CICS terminals only. Because of the asynchronous nature of
and the following terminals or logical units: this condition, the application program should check,
using SEND CONFIRM or SYNCPOINT, to make sure
3270-display logical unit (LUTYPE2)
any errors still outstanding have been resolved before it
3270-printer logical unit (LUTYPE3)
relinquishes control. If you wish to handle this condition,
LUTYPE4 logical unit
you must first issue a FREE command to free the
3270 SCS printer logical unit
session. If you do not do this, an INVREQ condition
System/7
occurs, plus an ATCV abend if you do not handle this
2260 or 2265 display station
condition.
3270 information display system (BTAM or TCAM)
3270 logical unit A CANCEL TASK request by a user node error program
3600 pipeline logical unit (NEP) may cause this condition if the task has an
3600(3601) logical unit outstanding terminal control request active when the
3600(3614) logical unit node abnormal condition program handles the session
3630 plant communication system error.
3650 interpreter logical unit
Default action: terminate the task abnormally with abend
3650 host conversational (3270) logical unit
code ATNI.
3650 host conversational (3653) logical unit
3650(3680) host command processor logical unit
3735 programmable buffered terminal
3740 data entry system
3767/3770 interactive logical unit
3770 batch logical unit
3790 logical units.
SIGNAL
occurs only for an ISSUE DISCONNECT for LUTYPE4,
3600(3601), 3767 interactive, 3770 batch, and 3790
full-function logical units.
It occurs when an inbound SIGNAL data-flow control
command is received from a logical unit or session.
EIBSIG is always set when an inbound signal is
received.
Default action: ignore the condition.
TERMERR
occurs only for an ISSUE DISCONNECT for LUTYPE4
logical units.
It occurs for a terminal-related error, such as a session
failure. This condition applies to VTAM-connected
Function
Disconnect an LUTYPE6.1 logical unit.
Command syntax
──ISSUE DISCONNECT──┬───────────────┬──"
└─SESSION(name)─┘
Conditions:
NOTALLOC, TERMERR
TERMERR
occurs for a terminal-related error, such as a session
failure.
A CANCEL TASK request by a user node error program
(NEP) may cause this condition if the task has an
outstanding terminal control request active when the
node abnormal condition program handles the session
error.
Default action: terminate the task abnormally with abend
code ATNI.
ISSUE END
Function
End processing of a data set.
Command syntax
──ISSUE END──┬────────────────────────────────────────────────┬──────────────────────────────────────────
├─DESTID(data-value)──┬────────────────────────┬─┤
│ └─DESTIDLENG(data-value)─┘ │
│ ┌─CONSOLE──┐ │
└─SUBADDR(data-value)──┼──────────┼──────────────┘
├─PRINT────┤
├─CARD─────┤
├─WPMEDIA1─┤
├─WPMEDIA2─┤
├─WPMEDIA3─┤
└─WPMEDIA4─┘
──┬────────────────────────────────────────────────┬──"
└─VOLUME(data-value)──┬────────────────────────┬─┘
└─VOLUMELENG(data-value)─┘
Conditions:
FUNCERR, INVREQ, SELNERR, UNEXPIN
VOLUME(data-value)
ISSUE END options specifies the name (1–6 characters) of a diskette in an
outboard destination that contains the data set specified
CARD
in the DESTID option.
specifies that the output medium is a card reader or card
punch device. This option is not valid with DESTID and VOLUMELENG(data-value)
DESTIDLENG. specifies the length (halfword binary value) of the name
specified in the VOLUME option.
CONSOLE
specifies that the output medium is that provided for WPMEDIA1 through WPMEDIA4
messages to the operator. This option is not valid with specifies that, for each specific LUTYPE4 device, a
DESTID and DESTIDLENG. This refers to a word-processing medium is defined to relate to a specific
programmable subsystem such as the IBM 3790 data input/output device.
communication system. It does not refer to a CICS or
system console.
ISSUE END conditions
DESTID(data-value)
FUNCERR
specifies the name (1–8 characters) of the data set in
occurs if there is an error during the execution of the
the outboard destination.
command. Destination selection is unaffected and other
DESTIDLENG(data-value) commands for the same destination may be successful.
specifies the length (halfword binary value) of the name
Default action: terminate the task abnormally.
specified in the DESTID option.
PRINT
specifies that the output medium is a printer.
INVREQ
occurs if a distributed program link server application
specified the function-shipping session (its principal
facility) on the CONVID option (RESP2=200).
| Default action: terminate the task abnormally.
SELNERR
occurs if there is an error during destination selection.
The destination is not selected and other commands for
the same destination are unlikely to be successful.
Default action: terminate the task abnormally.
UNEXPIN
occurs when some unexpected or unrecognized
information is received from the outboard controller.
Default action: terminate the task abnormally.
ISSUE ENDFILE
Function
Indicate the end-of-file condition to the 3740 data entry system.
Command syntax
──ISSUE ENDFILE──┬───────────┬──"
└─ENDOUTPUT─┘
Conditions:
| INVREQ, NOTALLOC
# NOTALLOC
# occurs if the facility specified in the command is not
# owned by the application.
# Default action: terminate the task abnormally.
ISSUE ENDOUTPUT
Function
Indicate the end-of-output condition to the 3740 data entry system.
Command syntax
──ISSUE ENDOUTPUT──┬─────────┬──"
└─ENDFILE─┘
Conditions:
| INVREQ, NOTALLOC
# NOTALLOC
# occurs if the facility specified in the command is not
# owned by the application.
# Default action: terminate the task abnormally.
ISSUE EODS
Function
Send end-of-data-set function management header to the 3650 interpreter logical unit.
Command syntax
──ISSUE EODS──"
Conditions:
| INVREQ, NOTALLOC, TERMERR
# NOTALLOC
# occurs if the facility specified in the command is not
# owned by the application.
# Default action: terminate the task abnormally.
TERMERR
occurs for a terminal-related error, such as a session
failure.
A CANCEL TASK request by a user node error program
(NEP) may cause this condition if the task has an
outstanding terminal control request active when the
node abnormal condition program handles the session
error.
Default action: terminate the task abnormally with abend
code ATNI.
ISSUE ERASE
Function
Delete a record from a data set.
Command syntax
──ISSUE ERASE──DESTID(data-value)──┬────────────────────────┬────────────────────────────────────────────
└─DESTIDLENG(data-value)─┘
──VOLUME(data-value)──┬────────────────────────┬──RIDFLD(data-area)───────────────────────────────────────
└─VOLUMELENG(data-value)─┘
| ──┬─KEYLENGTH(data-value)──┬───────────────────────┬─┬──┬────────────────────┬──┬─────────┬───────────────
| │ └─KEYNUMBER(data-value)─┘ │ └─NUMREC(data-value)─┘ └─DEFRESP─┘
| └─RRN──────────────────────────────────────────────┘
──┬────────┬──"
└─NOWAIT─┘
Conditions:
FUNCERR, INVREQ, SELNERR, UNEXPIN
ISSUE ERASE deletes a record from a keyed direct data set NUMREC(data-value)
in an outboard controller, or erases a record from a DPCX or for a relative record data set, specifies as a halfword
DXAM relative record data set. binary value the number of logical records to be deleted.
Records are replaced sequentially starting with the one
identified by the RIDFLD option.
ISSUE ERASE options
For an indexed data set, NUMREC cannot be specified,
DEFRESP because only one record is deleted.
specifies that all terminal control commands issued as a
result of the ISSUE ERASE command are to request a RIDFLD(data-area)
definite response from the outboard batch program, # specifies the record identification field. When combined
irrespective of the specification of message integrity for # with RRN this is a 4-character field.
the CICS task (by the system programmer). # For a relative record data set, the RIDFLD option
DESTID(data-value) # specifies a fullword binary integer (the relative record
specifies the name (1–8 characters) of the data set in # number of the record starting from zero); and the RRN
the outboard destination. # option is used.
For an indexed data set, the RIDFLD option specifies
DESTIDLENG(data-value)
| the key that is embedded in the data. The KEYLENGTH
specifies the length (halfword binary value) of the name
option is also required.
specified in the DESTID option.
RRN
KEYLENGTH(data-value)
specifies that the record identification field specified in
specifies the length of the key specified in the RIDFLD
the RIDFLD option contains a relative record number. If
option, as a halfword binary value.
the option is not specified, RIDFLD is assumed to
KEYNUMBER(data-value) specify a key.
specifies the number, as a halfword binary value, of the
VOLUME(data-value)
index to be used to locate the record. There can be
specifies the name (1–6 characters) of a diskette in an
eight indexes (1–8). The default is 1. This option
outboard destination that contains the data set specified
applies only to DPCX or DXAM and is mutually exclusive
in the DESTID option.
with RRN.
VOLUMELENG(data-value)
NOWAIT
specifies the length (halfword binary value) of the name
specifies that the CICS task continues processing
specified in the VOLUME option.
without waiting for the ISSUE ERASE command to
complete. If this option is not specified, the task activity
is suspended until the command is completed.
INVREQ
occurs if a distributed program link server application
specified the function-shipping session (its principal
facility) on the CONVID option (RESP2=200).
| Default action: terminate the task abnormally.
SELNERR
occurs if there is an error during destination selection.
The destination is not selected and other commands for
the same destination are unlikely to be successful.
Default action: terminate the task abnormally.
UNEXPIN
occurs when some unexpected or unrecognized
information is received from the outboard controller.
Default action: terminate the task abnormally.
ISSUE ERASEAUP
Function
Erase all unprotected fields of a 3270 buffer.
Command syntax
──ISSUE ERASEAUP──┬──────┬──"
└─WAIT─┘
Conditions:
| INVREQ, NOTALLOC, TERMERR
ISSUE ERROR
Function
Inform APPC mapped conversation partner of error.
Command syntax
──ISSUE ERROR──┬──────────────┬──┬─────────────┬──"
└─CONVID(name)─┘ └─STATE(cvda)─┘
Conditions:
INVREQ, NOTALLOC, SIGNAL, TERMERR
ISSUE LOAD
Function
Specify the name of a program on 3650 interpreter logical unit.
Command syntax
──ISSUE LOAD──PROGRAM(name)──┬──────────┬──"
└─CONVERSE─┘
Conditions:
# NONVAL, NOSTART, NOTALLOC, TERMERR
PROGRAM(name)
specifies the name (1–8 characters) of the 3650
application program that is to be loaded.
NOSTART
occurs if the 3651 is unable to initiate the requested
3650 application program.
Default action: terminate the task abnormally.
# NOTALLOC
# occurs if the facility specified in the command is not
# owned by the application.
# Default action: terminate the task abnormally.
TERMERR
occurs for a terminal-related error.
A CANCEL TASK request by a user node error program
(NEP) may cause this condition if the task has an
outstanding terminal control request active when the
node abnormal condition program handles the session
error.
Default action: terminate the task abnormally with abend
code ATNI.
ISSUE NOTE
Function
Request next record number.
Command syntax
──ISSUE NOTE──DESTID(data-value)──┬────────────────────────┬─────────────────────────────────────────────
└─DESTIDLENG(data-value)─┘
──VOLUME(data-value)──┬────────────────────────┬──RIDFLD(data-area)──RRN──"
└─VOLUMELENG(data-value)─┘
Conditions:
FUNCERR, INVREQ, SELNERR, UNEXPIN
RRN
specifies that the record identification field specified in
the RIDFLD option contains a relative record number.
VOLUME(data-value)
specifies the name (1–6 characters) of a diskette in an
outboard destination that contains the data set specified
in the DESTID option.
VOLUMELENG(data-value)
specifies the length (halfword binary value) of the name
specified in the VOLUME option.
ISSUE PASS
Function
VTAM application routing.
Command syntax
──ISSUE PASS──LUNAME(name)──┬─────────────────────────────────────┬──┬─────────────────────┬─────────────
# └─FROM(data-area)──LENGTH(data-value)─┘ ├─LOGMODE(data-value)─┤
# └─LOGONLOGMODE────────┘
──┬───────────┬──"
| └─NOQUIESCE─┘
Conditions:
# INVREQ, LENGERR, NOTALLOC
ISSUE PASS disconnects the terminal from CICS after the | specifies the name (1–8 characters) of the VTAM logon
task has terminated, and transfers it to the VTAM application # mode table entry used by VTAM to establish the new
defined in the LUNAME option. # session.
# Apar 84968
This command requires that AUTH=PASS is coded on the
TYPETERM definition of the VTAM APPL macro for the # Documentation for Apar 88279 added 04/11/96
CICS terminal-owning system that issues it, with
| DISCREQ=YES or RELREQ=YES in DEFINE TYPETERM
# LOGONLOGMODE
for any terminal where this function might be used.
# specifies that the new session is to be established with
If the LUNAME specified is the name of another CICS # the VTAM logon mode table entry in use when the
system, you can use the EXTRACT LOGONMSG command # session logged on.
to access the data referred to by this command. # Note: The logmode name saved is taken from the
# X'0D' control vector in the VTAM CINIT. This is
Because of a VTAM limitation, the maximum length of the # the logmode name known in this system.
user data is restricted to 255 bytes.
# If persistent sessions (PSDINT=nnn in the SIT) is
Note: The system initialization parameter # in use then the TYPETERM definition for any
| CLSDSTP=NOTIFY|NONOTIFY allows you to have the node # terminal to be ISSUE PASSed should use
error program (NEP) and the console notified of whether the # RECOVOPTION(NONE) because the the logon
PASS was successful or not. The NEP can be coded to # LOGMODE name is not recovered across a
reestablish a session ended by an unsuccessful PASS. For # persistent sessions restart.
programming information about how to do this, see the
section about NEP in the CICS/ESA Customization Guide. # If neither LOGMODE nor LOGONLOGMODE is
# supplied, the new session will be established
# with the default LOGMODE.
ISSUE PASS options
LUNAME(name)
FROM(data-area) specifies the name (1–8 characters) of the VTAM
specifies the data area containing the logon user data application to which the terminal is to be passed.
that is to be passed to the application named in the
LUNAME option. This option may be omitted if | NOQUIESCE
ATTACHID is specified on an LUTYPE6.1 command. | specifies that the user can choose to recover from
| certain pass failures.
LENGTH(data-value)
specifies the length, as a halfword binary value, of the
data issued.
| LOGMODE(data-value)
# Apar 88279
# Documentation for Apar 84968 added 04/11/96
LENGERR
occurs if an out-of-range value is supplied in the
LENGTH option.
Default action: terminate the task abnormally.
# NOTALLOC
# occurs if the facility specified in the command is not
# owned by the application.
# Default action: terminate the task abnormally.
ISSUE PREPARE
Function
Issue the first flow of a syncpoint request on an APPC mapped conversation.
Command syntax
──ISSUE PREPARE──┬──────────────┬──┬─────────────┬──"
└─CONVID(name)─┘ └─STATE(cvda)─┘
Conditions:
INVREQ, NOTALLOC, TERMERR
ISSUE PRINT
Function
Print displayed data on first available printer.
Command syntax
──ISSUE PRINT──"
Conditions:
| INVREQ, NOTALLOC, TERMERR
ISSUE PRINT prints displayed data on the first available ISSUE PRINT conditions
printer that can respond to a print request.
| INVREQ
ISSUE PRINT can be used on a number of logical units, | occurs if a distributed program link server application
using the printers defined below: | specified the function-shipping session (its principal
| facility) on the CONVID option (RESP2=200).
For a 3270 information display system (BTAM), the
printer must be on the same control unit, have buffer | Default action: terminate the task abnormally.
capacity equal to or greater than that of the display, and
# NOTALLOC
have feature-print specified in the associated DFHTCT
# occurs if the facility specified in the command is not
TYPE=TERMINAL table.
# owned by the application.
For a 3270 logical unit or a 3650 host conversational
# Default action: terminate the task abnormally.
(3270) logical unit, the printer must be defined by the
PRINTTO or ALTPRT operands of the DFHTCT TERMERR
TYPE=TERMINAL table, by RDO, or by a printer occurs for a terminal-related error.
supplied by the autoinstall user program.
An ISSUE PRINT on a BTAM 3270 information display
For a 3270-display logical unit with the PTRADAPT system cannot raise the TERMERR condition.
feature, used with a 3274 or 3276, the printer is
A CANCEL TASK request by a user node error program
allocated by the printer authorization matrix. The
(NEP) may cause this condition if the task has an
PTRADAPT feature is enabled by coding a DFHTCT
outstanding terminal control request active when the
TYPE=TERMINAL macro with TRMTYPE=LUTYPE2 and
node abnormal condition program handles the session
FEATURE=PTRADAPT.
error.
For a 3790 (3270-display) logical unit, the printer is
Default action: terminate the task abnormally with abend
allocated by the 3790.
code ATNI.
The printer must be in service, not currently attached to
a task, and owned by the same CICS system that owns
the terminal running the transaction.
ISSUE QUERY
Function
Interrogate a data set.
Command syntax
──ISSUE QUERY──DESTID(data-value)──┬────────────────────────┬────────────────────────────────────────────
└─DESTIDLENG(data-value)─┘
──┬────────────────────────────────────────────────┬──"
└─VOLUME(data-value)──┬────────────────────────┬─┘
└─VOLUMELENG(data-value)─┘
Conditions:
FUNCERR, INVREQ, SELNERR, UNEXPIN
DESTIDLENG(data-value)
specifies the length (halfword binary value) of the name
specified in the DESTID option.
VOLUME(data-value)
specifies the name (1–8 characters) of a diskette in an
outboard destination that contains the data set specified
in the DESTID option.
VOLUMELENG(data-value)
specifies the length (halfword binary value) of the name
specified in the VOLUME option.
INVREQ
occurs if a distributed program link server application
specified the function-shipping session (its principal
facility) on the CONVID option (RESP2=200).
| Default action: terminate the task abnormally.
ISSUE RECEIVE
Function
Read a record from a data set.
Command syntax
──ISSUE RECEIVE──┬─INTO(data-area)─┬──┬───────────────────┬──"
└─SET(ptr-ref)────┘ └─LENGTH(data-area)─┘
Conditions:
DSSTAT, EOC, EODS, INVREQ, LENGERR, UNEXPIN
ISSUE RECEIVE reads a sequential data set in an outboard | If you have specified SET, you must also specify
controller. | LENGTH.
The INTO option specifies the area into which the data is to SET(ptr-ref)
be placed. The LENGTH option must specify a data area specifies the pointer reference that is to be set to the
that contains the maximum length of record that the program address location of the data read from the data set.
accepts. If the record length exceeds the specified maximum If you specify the SET option, the parameter must be a
length, the record is truncated and the LENGERR condition data area. On completion of the retrieval operation, the
occurs. After the retrieval operation, the data area specified data area is set to the length of the data.
in the LENGTH option is set to the record length (before any
If DATALOCATION(ANY) is associated with the
truncation occurred).
application program, the address of the data can be
Alternatively, a pointer reference can be specified in the SET above or below the 16MB line.
option. CICS then acquires an area of sufficient size to hold If DATALOCATION(BELOW) is associated with the
the record, and sets the pointer reference to the address of application program, and the data resides above the
that area. After the retrieval operation, the data area 16MB line, the data is copied below the 16MB line, and
specified in the LENGTH option is set to the record length. the address of this copy is returned.
The outboard controller might not send the data from the If TASKDATAKEY(USER) is specified for the running
data set specified in the ISSUE QUERY command. The task, and storage protection is active, the data returned
ASSIGN command must be used to get the value of DESTID is in a user-key. If TASKDATAKEY(CICS) is specified
(which identifies the data set that has actually been and storage protection is active, the data returned is in a
transmitted) and the value of DESTIDLENG (which is the CICS-key.
length of the identifier in DESTID). | If you have specified SET, you must also specify
| LENGTH.
ISSUE RECEIVE options
INTO(data-area)
ISSUE RECEIVE conditions
specifies the receiving field for the data read from the DSSTAT
data set. occurs when the destination status changes in one of
If you specify the ISSUE RECEIVE command with the the following ways:
INTO option, the parameter must be a data area that
The data stream is abended.
specifies the maximum length of data that the program is
The data stream is suspended.
prepared to handle. If the value specified is less than
zero, zero is assumed. If the length of the data exceeds Default action: terminate the task abnormally.
the value specified, the data is truncated to that value
EOC
and the LENGERR condition occurs. On completion of
occurs if the request/response unit (RU) is received with
the retrieval operation, the data area is set to the original
the end-of-chain (EOC) indicator set. Field EIBEOC also
length of the data.
contains this indicator.
LENGTH(data-area)
Default action: ignore the condition.
specifies the length (halfword binary value) of the data
received.
EODS
occurs when the end of the data set is encountered.
Default action: terminate the task abnormally.
INVREQ
occurs if a distributed program link server application
specified the function-shipping session (its principal
facility) on the CONVID option (RESP2=200).
| Default action: terminate the task abnormally.
LENGERR
occurs if the length of the retrieved data is greater than
the value specified by the LENGTH option.
Default action: terminate the task abnormally.
UNEXPIN
occurs when some unexpected or unrecognized
information is received from the outboard controller.
Default action: terminate the task abnormally.
ISSUE REPLACE
Function
Update a record in a data set.
Command syntax
──ISSUE REPLACE──DESTID(data-value)──┬────────────────────────┬──────────────────────────────────────────
└─DESTIDLENG(data-value)─┘
──┬────────────────────────────────────────────────┬──FROM(data-area)──┬────────────────────┬─────────────
└─VOLUME(data-value)──┬────────────────────────┬─┘ └─LENGTH(data-value)─┘
└─VOLUMELENG(data-value)─┘
──┬────────────────────┬──RIDFLD(data-area)──┬─KEYLENGTH(data-value)──┬───────────────────────┬─┬─────────
└─NUMREC(data-value)─┘ │ └─KEYNUMBER(data-value)─┘ │
└─RRN──────────────────────────────────────────────┘
──┬─────────┬──┬────────┬──"
└─DEFRESP─┘ └─NOWAIT─┘
Conditions:
FUNCERR, INVREQ, SELNERR, UNEXPIN
VOLUMELENG(data-value)
specifies the length (halfword binary value) of the name
specified in the VOLUME option.
INVREQ
occurs if a distributed program link server application
specified the function-shipping session (its principal
facility) on the CONVID option (RESP2=200).
Default action: terminate the task abnormally.
SELNERR
occurs if there is an error during destination selection.
The destination is not selected and other commands for
the same destination are unlikely to be successful.
Default action: terminate the task abnormally.
UNEXPIN
occurs when some unexpected or unrecognized
information is received from the outboard controller.
Default action: terminate the task abnormally.
ISSUE RESET
Function
Relinquish use of a telecommunication line.
Command syntax
──ISSUE RESET──"
Conditions:
| INVREQ, NOTALLOC
# NOTALLOC
# occurs if the facility specified in the command is not
# owned by the application.
# Default action: terminate the task abnormally.
ISSUE SEND
Function
Send data to a named data set or to a selected medium.
Command syntax
──ISSUE SEND──┬────────────────────────────────────────────────┬─────────────────────────────────────────
├─DESTID(data-value)──┬────────────────────────┬─┤
│ └─DESTIDLENG(data-value)─┘ │
│ ┌─CONSOLE──┐ │
└─SUBADDR(data-value)──┼──────────┼──────────────┘
├─PRINT────┤
├─CARD─────┤
├─WPMEDIA1─┤
├─WPMEDIA2─┤
├─WPMEDIA3─┤
└─WPMEDIA4─┘
──┬────────────────────────────────────────────────┬──FROM(data-area)──┬────────────────────┬─────────────
└─VOLUME(data-value)──┬────────────────────────┬─┘ └─LENGTH(data-value)─┘
└─VOLUMELENG(data-value)─┘
──┬────────┬──┬─────────┬──"
└─NOWAIT─┘ └─DEFRESP─┘
Conditions:
FUNCERR, IGREQCD, INVREQ, SELNERR, UNEXPIN
VOLUMELENG(data-value)
specifies the length of the name specified in the
VOLUME option as a halfword binary value.
IGREQCD
occurs when an attempt is made to execute an ISSUE
SEND command after a SIGNAL RCD data-flow control
code has been received from an LUTYPE4 logical unit.
Default action: terminate the task abnormally.
INVREQ
occurs if a distributed program link server application
specified the function-shipping session (its principal
facility) on the CONVID option (RESP2=200).
Default action: terminate the task abnormally.
SELNERR
occurs if there is an error during destination selection.
The destination is not selected and other commands for
the same destination are unlikely to be successful.
Default action: terminate the task abnormally.
UNEXPIN
occurs when some unexpected or unrecognized
information is received from the outboard controller.
Default action: terminate the task abnormally.
Function
Request change of direction from sending transaction on an APPC mapped conversation.
Command syntax
──ISSUE SIGNAL──┬──────────────┬──┬─────────────┬──"
└─CONVID(name)─┘ └─STATE(cvda)─┘
Conditions:
| INVREQ, NOTALLOC, TERMERR
ISSUE SIGNAL, in a transaction in receive mode, signals to ISSUE SIGNAL (APPC) conditions
the sending transaction that a mode change is needed. It
raises the SIGNAL condition on the next SEND, RECEIVE, INVREQ
or CONVERSE command executed in the sending occurs in any of the following situations:
transaction, and a previously executed HANDLE CONDITION The command has been used on an APPC
command for this condition can be used either to take some conversation that is not using the EXEC CICS
action, or to ignore the request. interface, or is not a mapped conversation.
A distributed program link server application
ISSUE SIGNAL (APPC) options specified the function-shipping session (its principal
facility) on the CONVID option (RESP2=200).
CONVID(name)
identifies the conversation to which the command Default action: terminate the task abnormally.
relates. The 4-character name identifies either the token
returned by a previously executed ALLOCATE command NOTALLOC
in EIBRSRCE in the EIB, or the token representing the occurs if the CONVID value in the command does not
principal session (returned by a previously executed relate to a conversation that is owned by the application.
ASSIGN command). Default action: terminate the task abnormally.
For compatibility with earlier releases, SESSION is TERMERR
accepted as a synonym for CONVID. New programs occurs for a session-related error. Any action on that
should use CONVID. conversation other than a FREE causes an ATCV
If this option is omitted, the principal facility is assumed. abend.
Function
Request change of direction from sending transaction on LUTYPE6.1 conversation.
Command syntax
──ISSUE SIGNAL──┬───────────────┬──"
├─CONVID(name)──┤
└─SESSION(name)─┘
Conditions:
| NOTALLOC, TERMERR
SESSION(name)
specifies the symbolic identifier (1–4 characters) of a
session TCTTE. This option specifies the alternate
facility to be used.
TERMERR
occurs for a session-related error. Any action on that
conversation other than a FREE causes an ATCV
abend.
| A CANCEL TASK request by a user node error program
| (NEP) may cause TERMERR if the task has an
| outstanding terminal control request when the node
| abnormal condition program handles the session error.
Default action: terminate the task abnormally with abend
code ATNI.
ISSUE WAIT
Function
Wait for an operation to be completed.
Command syntax
──ISSUE WAIT──┬────────────────────────────────────────────────┬─────────────────────────────────────────
├─DESTID(data-value)──┬────────────────────────┬─┤
│ └─DESTIDLENG(data-value)─┘ │
│ ┌─CONSOLE──┐ │
└─SUBADDR(data-value)──┼──────────┼──────────────┘
├─PRINT────┤
├─CARD─────┤
├─WPMEDIA1─┤
├─WPMEDIA2─┤
├─WPMEDIA3─┤
└─WPMEDIA4─┘
──┬────────────────────────────────────────────────┬──"
└─VOLUME(data-value)──┬────────────────────────┬─┘
└─VOLUMELENG(data-value)─┘
Conditions:
FUNCERR, INVREQ, SELNERR, UNEXPIN
ISSUE WAIT suspends task activity until the previous batch SUBADDR(data-value)
data interchange command is completed. This command is specifies the medium subaddress as a halfword binary
meaningful only when it follows an ISSUE ADD, ISSUE value (in the range 0–through 15) that allows media of
ERASE, ISSUE REPLACE, or ISSUE SEND command. The the same type, for example, “printer 1” or “printer 2”, to
options CONSOLE, PRINT, CARD, and WPMEDIA1–4 are be defined. Value 15 means a medium of any type.
alternatives to DESTID and DESTIDLENG. The default is zero.
VOLUME(data-value)
ISSUE WAIT options specifies the name (1–6 characters) of a diskette in an
outboard destination that contains the data set specified
CARD
in the DESTID option.
specifies that the output medium is a card reader or card
punch device. This option is not valid with DESTID and VOLUMELENG(data-value)
DESTIDLENG. specifies the length of the name specified in the
VOLUME option as a halfword binary value.
CONSOLE
specifies that the output medium is that provided for WPMEDIA1 through WPMEDIA4
messages to the operator. This option is not valid with specifies that, for each specific LUTYPE4 device, a
DESTID and DESTIDLENG. word-processing medium is defined to relate to a specific
This refers to a programmable subsystem such as the input/output device.
IBM 3790 data communication system. It does not refer
to a CICS or system console. ISSUE WAIT conditions
DESTID(data-value) FUNCERR
specifies the name (1–8 characters) of the data set in occurs if there is an error during execution of the
the outboard destination. command. Destination selection is unaffected and other
commands for the same destination may be successful.
DESTIDLENG(data-value)
specifies the length (halfword binary value) of the name Default action: terminate the task abnormally.
specified in the DESTID option.
PRINT
specifies that the output is to the print medium.
INVREQ
occurs if a distributed program link server application
specified the function-shipping session (its principal
facility) on the CONVID option (RESP2=200).
Default action: terminate the task abnormally.
SELNERR
occurs if there is an error during destination selection.
The destination is not selected and other commands for
the same destination are unlikely to be successful.
Default action: terminate the task abnormally.
UNEXPIN
occurs when some unexpected or unrecognized
information is received from the outboard controller.
Default action: terminate the task abnormally.
LINK
Function
Link to another program expecting return.
| The external CICS interface provides an EXEC CICS LINK command that performs all six commands of the interface in one
| invocation.
Command syntax
──LINK──PROGRAM(name)──┬─────────────────────────────────────────────────────────────────────────┬───────
└─COMMAREA(data-area)──┬────────────────────┬──┬────────────────────────┬─┘
└─LENGTH(data-value)─┘ └─DATALENGTH(data-value)─┘
──┬────────────────────────────────────────────────────────────┬──"
├─INPUTMSG(data-area)──┬─────────────────────────┬───────────┤
│ └─INPUTMSGLEN(data-value)─┘ │
└─┬───────────────────┬──┬──────────────┬──┬───────────────┬─┘
| └─SYSID(systemname)─┘ └─SYNCONRETURN─┘ └─TRANSID(name)─┘
Conditions:
INVREQ, LENGERR, NOTAUTH, PGMIDERR, ROLLEDBACK, SYSIDERR, TERMERR
LINK passes control from an application program at one Distributed program link
logical level to an application program at the next lower
| logical level. If the requested program is not defined to If you specify a remote region name on the SYSID option
| CICS, and AUTOINSTALL is active, CICS supplies a (with or without the associated TRANSID and
| definition for the program. If it is not a remote program in SYNCONRETURN options), the link is a distributed program
| another CICS region, and the linked-to program is not link (DPL). In response to a distributed program link, the
| already in main storage, CICS loads it. If the SYSID option local CICS region (the client region) ships the link request to
specifies the name of a remote CICS region, CICS ships the the remote region (the server region). The server region
link request to the remote region. When the RETURN executes the linked-to program (the server program) on
command is executed in the linked-to program, control is behalf of the program issuing the link request (the client
returned to the program initiating the link at the next program).
sequential executable instruction.
The SYSID and INPUTMSG options are mutually exclusive.
The following example shows how to request a link to an If you specify both options on a LINK command, the
application program called PROG1: translator issues error message DFH7230 (severity E)
EXEC CICS LINK PROGRAM('PROG1') indicating conflicting options. See the DFH7xxx (DFHExP
command translator diagnostic) messages entry in the
The linked-to program operates independently of the program CICS/ESA Messages and Codes manual for an explanation
that issues the LINK command with regard to handling of severity E for the different supported languages.
# conditions, attention identifiers, abends, and execution key.
For example, the effects of HANDLE CONDITION commands A server program running in the server region is restricted to
in the linking program are not inherited by the linked-to a DPL subset of the CICS API. Briefly, the server program
program, but the original HANDLE CONDITION commands cannot issue:
are restored on return to the linking program. See the Terminal control commands that reference the principal
CICS/ESA Application Programming Guide for more facility
information and an illustration of the concept of logical levels. Options of ASSIGN that return terminal attributes
BMS commands
You can use the HANDLE ABEND command to deal with Signon and signoff commands
abnormal terminations in other link levels. See the Batch data interchange commands
CICS/ESA Application Programming Guide for further details Commands that address the TCTUA.
about the relationship between LINK and HANDLE ABEND.
For details of the restricted DPL subset of the API, see
Appendix G, “API restrictions for distributed program link” on
page 367.
DATALENGTH(data-value) SYNCONRETURN
specifies a halfword binary value that is the length of a specifies that the server region named on the SYSID
contiguous area of storage, from the start of the option is to take a syncpoint on successful completion of
COMMAREA, to be passed to the invoked program. If the server program.
the amount of data being passed in a COMMAREA is # Apar PQ03185
small, but the COMMAREA itself is large so that the
# Documentation for Apar PQ03185 added 19/05/97
linked-to program can return the requested data, you
should specify DATALENGTH in the interest of
performance. # Synconreturn is only applicable to remote links; it is
# ignored if the link is local.
DATALENGTH cannot be used at the same time as
INPUTMSG. SYSID(systemname)
specifies the system name of the CICS server region
INPUTMSG(data-area) where the program link request is to be routed.
specifies data to be supplied to the invoked program
when it first issues a RECEIVE command. This data # If SYSID specifies a remote system, no reference is
remains available until the execution of a RECEIVE or # made to PROGRAM resource definitions held locally. If
RETURN command. An invoked program can invoke a # SYSID specifies the local system, CICS treats the LINK
further program and so on, creating a chain of linked # request as if SYSID was not specified.
programs. If a linked-to chain exists, CICS supplies the | TRANSID(name)
INPUTMSG data to the first RECEIVE command | specifies the name of the mirror transaction that the
executed in the chain. If control returns to the program remote region is to attach, and under which it is to run
that issued the LINK with INPUTMSG before the the server program. If you omit the TRANSID option,
INPUTMSG data has been accepted by a RECEIVE the server region attaches either CSMI, CPMI, or CVMI
command, CICS assumes that a RECEIVE command by default.
has been issued. This means that the original
INPUTMSG data is no longer available. The transaction name you specify on the LINK command
takes priority over any transaction specified on the
INPUTMSG cannot be used at the same time as | program resource definition. Whilst you can specify your
DATALENGTH. | own name for the mirror transaction initiated by DPL
See also the CICS/ESA Application Programming Guide | requests, the transaction must be defined in the server
for more information about the INPUTMSG option. | region, and the transaction definition must specify the
| mirror program, DFHMIRS.
INPUTMSGLEN(data-value)
specifies a halfword binary value to be used with
INPUTMSG.
LENGTH(data-value)
specifies a halfword binary value that is the length in
# bytes of the COMMAREA (communication area). This
# value may not exceed 32 500 bytes if the COMMAREA
# is to be passed between any two CICS servers (for any
# combination of product/version/release).
SYSIDERR TERMERR
occurs in any of the following situations: occurs if an irrecoverable error occurs during the
conversation with the mirror (for example, if the session
The SYSID specified cannot be found in the
fails, or if the server region fails) (RESP2=17).
intersystem table, or if the link to the specified
system is unavailable (RESP2=18). Default action: terminate the task abnormally.
The remote system specified by SYSID is an Note: RESP2 values are not returned to the client for
LUTYPE6.1-connected system. Distributed program conditions occurring in a DPL server program.
link requests are not supported on LUTYPE6.1
connections (RESP2=20).
Notes:
LOAD
Function
Load a program from the CICS DFHRPL concatenation library into main storage.
Command syntax
──LOAD──PROGRAM(name)──┬──────────────┬──┬────────────────────┬──┬────────────────┬──┬──────┬──"
└─SET(ptr-ref)─┘ ├─LENGTH(data-area)──┤ └─ENTRY(ptr-ref)─┘ └─HOLD─┘
└─FLENGTH(data-area)─┘
Conditions:
| INVREQ, LENGERR, NOTAUTH, PGMIDERR
| INVREQ
| Occurs if the program manager domain has not yet been
| initialized. This is probably due to a load request having
| been made in a first stage PLT (RESP2=30).
| Default action: terminate the task abnormally.
LENGERR
occurs when LENGTH is used and the length of the
| loaded program is not less than 32KB. (RESP2=19).
Default action: terminate the task abnormally.
NOTAUTH
occurs when a resource security check has failed on
| PROGRAM(name) (RESP2=101).
Default action: terminate the task abnormally.
PGMIDERR
occurs in any of the following situations:
MONITOR
Function
Code a user event-monitoring point.
Command syntax
──MONITOR──POINT(data-value)──┬──────────────────┬──┬──────────────────┬──┬──────────────────────┬──"
└─DATA1(data-area)─┘ └─DATA2(data-area)─┘ └─ENTRYNAME(data-area)─┘
Conditions:
INVREQ
ENTRYNAME(data-area)
is the monitoring point entry name that qualifies the
POINT value and is defined in the monitoring control
table (MCT). ENTRYNAME defaults to USER if not
specified.
POINT
Function
Get information about an LUTYPE6.1 logical unit.
Command syntax
──POINT──┬───────────────┬──"
├─CONVID(name)──┤
└─SESSION(name)─┘
Conditions:
NOTALLOC
POINT options
CONVID(name)
identifies the conversation to which the command
relates. The 4-character name identifies either the token
returned by a previously executed ALLOCATE command
in EIBRSRCE in the EIB, or the token representing the
principal session (returned by a previously executed
ASSIGN command).
SESSION(name)
specifies the symbolic identifier (1–4 characters) of a
session TCTTE. This option specifies the alternate
facility to be used. If both this option and CONVID are
omitted, the principal facility for the task is used.
POINT condition
NOTALLOC
occurs if the facility specified in the command is not
owned by the application.
Default action: terminate the task abnormally.
POP HANDLE
Function
Restore the stack.
Command syntax
──POP HANDLE──"
Conditions:
INVREQ
POST
Function
Request notification when a specified time has expired.
Command syntax
┌─INTERVAL()──────────────────────┐
──POST──┼──────────────────────────────────┼──SET(ptr-ref)──┬─────────────┬──"
├─INTERVAL(hhmmss)─────────────────┤ └─REQID(name)─┘
├─TIME(hhmmss)─────────────────────┤
│ ┌──
───────────────────────┐ │
| ├─AFTER───*┬─HOURS(data-value)───┬┴─┤
| │ ├─MINUTES(data-value)─┤ │
| │ └─SECONDS(data-value)─┘ │
│ ┌──
───────────────────────┐ │
| └─AT───*┬─HOURS(data-value)───┬┴────┘
| ├─MINUTES(data-value)─┤
| └─SECONDS(data-value)─┘
Conditions:
EXPIRED, INVREQ
POST requests notification that a specified time has expired. The timer-event control area can be released for a variety of
In response to this command, CICS makes a timer-event reasons (see below). If this happens, the result of any other
control area available for testing. This 4-byte control area is task issuing a WAIT command on the event set up by the
initialized to binary zeros, and the pointer reference specified POST command is unpredictable.
in the SET option is set to its address.
However, other tasks can cancel the event if they have
When the time you specify has expired, the timer-event access to the REQID associated with the POST command.
control area is posted; that is, its first byte is set to X'40' (See the CANCEL command and the description of the
and its third byte to X'80'. You can test posting in either of REQID option.) A timer-event control area provided for a
the following ways: task is not released or altered (except as described above)
until one of the following events occurs:
By checking the timer-event control area at intervals.
You must give CICS the opportunity to post the area; The task issues a subsequent DELAY, POST, or START
that is, the task must relinquish control of CICS before command.
you test the area. Normally, this condition is satisfied as
The task issues a CANCEL command to cancel the
a result of other commands being issued; if a task is
POST command.
performing a long internal function, you can force control
to be relinquished by issuing a SUSPEND command. The task is terminated, normally or abnormally.
By suspending task activity by a WAIT EVENT or WAIT Any other task issues a CANCEL command for the
EXTERNAL command until the timer-event control area event set up by the POST command.
is posted. This action is similar to issuing a DELAY
A task can have only one POST command active at any
command but, with a POST and WAIT EVENT or WAIT
given time. Any DELAY, POST, or START command
EXTERNAL command sequence, you can do some
supersedes a POST command previously issued by the task.
processing after issuing the POST command; a DELAY
command suspends task activity at once. No other task
The default is INTERVAL(0), but for C the default is AFTER
should attempt to wait on the event set up by a POST
HOURS(0) MINUTES(0) SECONDS(0).
command.
| By using WAITCICS. The following example shows you how to request a
timer-event control area for a task, to be posted after 30
seconds:
AT TIME(hhmmss)
specifies the time when the posting of the timer-event
specifies the time of expiring.
control area should occur.
HOURS(data-value) | When using the C language, you are recommended to
specifies a fullword binary value in the range 0–99. | use the AFTER/AT HOURS, MINUTES, and SECONDS
INTERVAL(hhmmss) | options as C does not provide a packed decimal data
specifies an interval of time that is to elapse from the | type. You may use TIME, but if the value specified is
time at which the POST command is issued. The mm | not an integer constant, the application is responsible for
and ss are in the range 0–59. The time specified is | ensuring that the value passed to CICS is in packed
added to the current clock time by CICS when the | decimal format. See the section about expiration times
command is executed to calculate the expiration time. in the CICS/ESA Application Programming Guide.
PURGE MESSAGE
Function
Discontinue building a BMS logical message.
Command syntax
──PURGE MESSAGE──"
Conditions:
| Full BMS: INVREQ, TSIOERR
TSIOERR
occurs if there is an irrecoverable temporary storage
input/output error.
Default action: terminate the task abnormally.
PUSH HANDLE
Function
Suspend the stack.
Command syntax
──PUSH HANDLE──"
QUERY SECURITY
Function
To query the security authorization of the user.
Command syntax
──QUERY SECURITY──┬─RESTYPE(data-value)───────────────────────────┬──RESID(data-value)───────────────────
└─RESCLASS(data-value)──RESIDLENGTH(data-value)─┘
──┬──────────────────┬──┬────────────┬──┬──────────────┬──┬───────────────┬──┬─────────────┬──"
└─LOGMESSAGE(cvda)─┘ └─READ(cvda)─┘ └─UPDATE(cvda)─┘ └─CONTROL(cvda)─┘ └─ALTER(cvda)─┘
Conditions:
INVREQ, LENGERR, NOTFND, QIDERR
QUERY SECURITY allows the application to determine If the ESM is RACF, the class can be CICS-supplied or
| whether the user has access to resources defined in the user-defined. RESCLASS enables you to define more
external security manager (ESM). These resources can be: narrowly the authorization to be queried; for example,
you can query at the record or field level.
In CICS resource classes
In user-defined resource classes. | The responses returned by the command reflect the
| definition of the RESID resource as defined in the
| The user in this context is the user invoking the transaction | specified RESCLASS.
that contains the QUERY SECURITY command.
RESID(data-value)
| For more information on the use of the QUERY SECURITY specifies the name of the CICS or user-defined resource
| command, see the CICS/ESA CICS-RACF Security Guide. that you want to query the users access to. The value is
a character string (1-12 characters for a CICS resource,
and 1-246 characters for a user-defined resource,
QUERY SECURITY options
# Apar PQ18509
ALTER(cvda)
enables you to query whether the user has ALTER # Documentation for Apar PQ18509 added 28/08/98
authority for the named resource. The cvda values
returned by CICS are ALTERABLE and # unless you are using the COBOL3 or OOCOBOL
NOTALTERABLE. # translator option in which case the maximum length is
# 160 characters).
CONTROL(cvda)
enables you to query whether the user has CONTROL | Note that the actual resource checked depends on
authority for the named resource. The cvda values | whether RESCLASS or RESTYPE is specified in the
returned by CICS are CTRLABLE and NOTCTRLABLE. | command and whether prefixing is active
| (SECPRFX=YES specified in the System Initialization
LOGMESSAGE(cvda) | Table).
enables you to inhibit security violation messages. The
| If RESCLASS is specified, the resource checked is
values passed to CICS are LOG (the default value), or,
| always the actual RESID data-value, whether or not
to inhibit messages, NOLOG.
| prefixing is on or off. IF RESTYPE is specified and
READ(cvda) | SECPRFX=NO, the resource checked is the RESID
enables you to query whether the user has READ | data-value as specified, however if SECPRFX=YES, the
authority for the named resource. The cvda values | resource checked is the RESID data-value prefixed with
returned by CICS are READABLE and NOTREADABLE. | the Region USERID.
READ access authority usually permits nondestructive
RESIDLENGTH(data-value)
use of a resource as, for example, in the case of READ
specifies the length, as a fullword binary, of the resource
and INQUIRE commands.
identifier in RESID. You only use this parameter when
RESCLASS(data-value) specifying the RESCLASS option.
| specifies an 8-character field identifying the name of a
RESTYPE(data-value)
| valid resource class, that could be non-CICS, in the
specifies the type of resource (1–12 characters) you
| ESM. The class name identified by RESCLASS is
want to query the user’s access to.
treated literally with no translation.
| The responses returned by the command reflect the The value you specify for RESTYPE must be one of the
| results that would be obtained if an actual attempt was following resource types:
| made to access the specified CICS resource. FILE
JOURNALNUM
PROGRAM
PSB
SPCOMMAND1
TDQUEUE
TRANSACTION
TRANSATTACH
TSQUEUE
1 See CICS/ESA CICS-RACF Security Guide
Apar 61283
Documentation for Apar 61283 added 13 Oct 1994
(TUCKER)
UPDATE(cvda)
enables you to query whether the user has UPDATE
authority for the named resource. The cvda values
returned by CICS are UPDATABLE and
NOTUPDATABLE. UPDATE access authority usually
permits destructive use of a resource as, for example, in
the case of WRITE, DELETE, or UPDATE commands.
LENGERR
occurs if the RESIDLENGTH value is not valid, that is,
not in the range 1 through 246 (RESP2=6).
| Default action: terminate the task abnormally.
NOTFND
occurs in any of the following circumstances:
QIDERR
occurs if an indirect queue name associated with the
given RESID is not found (RESP2=1).
| Default action: terminate the task abnormally.
READ
Function
Read a record from a file.
Command syntax
──READ──FILE(filename)──┬───────────────────────────────┬──┬─INTO(data-area)─┬──┬───────────────────┬────
└─UPDATE──┬───────────────────┬─┘ └─SET(ptr-ref)────┘ └─LENGTH(data-area)─┘
| └─TOKEN(data-value)─┘
──RIDFLD(data-area)──┬────────────────────────────────────┬──┬───────────────────┬──┬────────┬────────────
└─KEYLENGTH(data-value)──┬─────────┬─┘ └─SYSID(systemname)─┘ ├─RBA────┤
└─GENERIC─┘ ├─RRN────┤
├─DEBKEY─┤
└─DEBREC─┘
┌─EQUAL─┐
──┼───────┼──"
└─GTEQ──┘
Conditions:
| DISABLED, DUPKEY, FILENOTFOUND, ILLOGIC, INVREQ, IOERR, ISCINVREQ, LENGERR, LOADING,
NOTAUTH, NOTFND, NOTOPEN, SYSIDERR
READ reads a record from a file on a local or a remote The following example shows you how to read a record for
system. update from a VSAM file using a generic key and specifying
a greater-or-equal key search.
For both UPDATE and non-UPDATE commands, you must
EXEC CICS READ
identify the record to be retrieved by the record identification
INTO(RECORD)
field specified in the RIDFLD option. Immediately upon LENGTH(RECLEN)
completion of a READ UPDATE command, the RIDFLD data FILE('MASTVSAM')
area is available for reuse by the application program. RIDFLD(ACCTNO)
KEYLENGTH(4)
When this command reads a CICS-maintained data table, a GENERIC
READ request with UPDATE or RBA is always satisfied by a GTEQ
call to VSAM. For a non-UPDATE key READ, an attempt is UPDATE
first made to satisfy the request from the in-memory table. If
the record is not found, a call is made to VSAM unless it is
known that the record is not in the same data set either. READ options
See the SDTG for more detail. DEBKEY (blocked BDAM)
specifies that deblocking is to occur by key. If neither
A full key direct read that is neither a generic read nor a
DEBREC nor DEBKEY is specified, deblocking does not
READ UPDATE, is satisfied by a reference to the data table.
occur.
If the record is not found in the table, the source data set is
accessed, unless the table is known to be complete, that is, DEBREC (blocked BDAM)
all records in the source are also present in the table (which specifies that deblocking is to occur by relative record
is the case if loading is finished and none has been rejected (relative to zero). If neither DEBREC nor DEBKEY is
by a user exit). The details of the command for a specified, deblocking does not occur.
CICS-maintained table are the same as for a VSAM KSDS.
EQUAL (VSAM KSDS, paths and data tables)
| When this command reads a user-maintained data table, specifies that the search is satisfied only by a record
| only the data table is accessed once loading is complete; the having the same key (complete or generic) as that
| VSAM file is not changed in any way. specified in the RIDFLD option.
The following example shows you how to read a record from FILE(filename)
a file named MASTER into a specified data area: specifies the of the file to be accessed.
EXEC CICS READ If SYSID is specified, the data set to which this file refers
INTO(RECORD) is assumed to be on a remote system irrespective of
FILE('MASTER') whether the name is defined in the FCT. Otherwise, the
RIDFLD(ACCTNO)
FCT entry is used to find out whether the data set is on the application program is not large enough, storage
a local or a remote system. is overlaid beyond the target area.
GENERIC (VSAM KSDS, paths and data tables) When reading into a target data area longer than the
specifies that the search key is a generic key whose record being read, the contents of the target data area,
length is specified in the KEYLENGTH option. The from the end of the retrieved record to the end of the
search for a record is satisfied when a record is found target data area, are unpredictable.
that has the same starting characters (generic key) as
If you specify the INTO option, the LENGTH argument
those specified.
must be a data area that specifies the largest record the
For UMTs, GENERIC cannot be specified with UPDATE. program accepts. If the retrieved record is longer than
the value specified in the LENGTH option, the record is
GTEQ (VSAM KSDS, paths and data tables)
truncated to the specified value and the LENGERR
specifies that, if the search for a record having the same
condition occurs. In this case, the LENGTH data area is
key (complete or generic) as that specified in the
set to the length of the record prior to truncation.
RIDFLD option is unsuccessful, the first record having a
greater key is retrieved. If you specify the SET option, the LENGTH option need
not be specified but, if it is, the argument must be a data
For UMTs, GENERIC cannot be specified with UPDATE.
area.
INTO(data-area)
# RBA (VSAM ESDS, KSDS, or CMT)
specifies the data area into which the record retrieved
# (base data sets only, not paths) specifies that the record
from the data set is to be written.
# identification field specified in the RIDFLD option
KEYLENGTH(data-value) # contains a relative byte address. This option should only
specifies the length (halfword binary) of the key that has # be used when reading records from an ESDS base or
been specified in the RIDFLD option, except when RBA # when reading from a KSDS base and using relative byte
or RRN is specified, in which case KEYLENGTH is not addresses instead of keys to identify the records.
valid. This option must be specified if GENERIC is | You cannot use RBA for user-maintained data tables.
specified, and it can be specified whenever a key is
specified. However, if the length specified is different RIDFLD(data-area)
from the length defined for the data set and the # specifies the record identification field. When combined
operation is not generic, the INVREQ condition occurs. # with RBA or RRN this is a 4-character field. The
contents can be a key, a relative byte address, or
The INVREQ condition also occurs if GENERIC is
relative record number (for VSAM data sets), or a block
specified and the KEYLENGTH is not less than that
reference, a physical key, and a deblocking argument
specified in the VSAM definition.
(for BDAM data sets). For a relative byte address or a
If KEYLENGTH(0) is used with the object of reading the relative record number, the format of this field must be
first record in the data set, the GTEQ option must also fullword binary. For a relative byte address, the RIDFLD
be specified. If EQUAL is specified either explicitly or by can be greater than or equal to zero. For a relative
default with KEYLENGTH(0), the results of the READ record number, the RIDFLD can be greater than or
are unpredictable. equal to 1.
In assembler language, if the DUPKEY condition occurs, It has been disabled by a SET FILE or a CEMT
the specified register has not been set, but can be SET FILE command.
loaded from DFHEITP1.
Default action: terminate the task abnormally.
The pointer reference is valid until the next READ
command for the same file or until completion of a DUPKEY (VSAM)
corresponding REWRITE, DELETE, or UNLOCK occurs if a record is retrieved by way of an alternate
command, or a SYNCPOINT in the case of READ index with the NONUNIQUEKEY attribute, and another
UPDATE SET. If you want to retain the data within the alternate index record with the same key follows
field addressed by the pointer, it should be moved to (RESP2=140).
your own area. In assembler language, if the SET option is being used,
If DATALOCATION(ANY) is associated with the the specified register has not been set, but can be
application program, the address of the data can be loaded from DFHEITP1.
above or below the 16MB line. Default action: terminate the task abnormally.
If DATALOCATION(BELOW) is associated with the
FILENOTFOUND
application program, the address of the data is below the
occurs if a file name referred to in the FILE option
16MB line.
cannot be found in the FCT (RESP2=1).
If TASKDATAKEY (USER) is specified for the executing
Default action: terminate the task abnormally.
transaction, the data returned is in a user-key; otherwise
it is in a CICS-key. ILLOGIC (VSAM)
occurs if a VSAM error occurs that does not fall within
If SET is not specified, LENGTH must either be specified
one of the other CICS response categories
explicitly or must be capable of being defaulted from the
(RESP2=110).
INTO option using the length attribute reference in
assembler language, or STG and CSTG in PL/I. # (See EIBRCODE in the EXEC interface block; refer to
LENGTH must be specified explicitly in OS/VS COBOL Appendix A, “EXEC interface block” on page 343 for
and C. details.)
An incorrect length is specified for a file with Default action: terminate the task abnormally.
fixed-length records (RESP2=13).
| LOADING
| occurs if a READ UPDATE is issued for a
| user-maintained data table that is currently being loaded
| (RESP2=104). A user-maintained data table cannot be
| modified during loading.
| Default action: terminate the task abnormally.
READNEXT
Function
Read next record during a browse of a file.
Command syntax
──READNEXT──FILE(filename)──┬─INTO(data-area)─┬──┬───────────────────┬──RIDFLD(data-area)────────────────
└─SET(ptr-ref)────┘ └─LENGTH(data-area)─┘
──┬───────────────────────┬──┬───────────────────┬──┬───────────────────┬──┬─────┬──"
└─KEYLENGTH(data-value)─┘ └─REQID(data-value)─┘ └─SYSID(systemname)─┘ ├─RBA─┤
└─RRN─┘
Conditions:
DUPKEY, ENDFILE, FILENOTFOUND, ILLOGIC, INVREQ, IOERR, ISCINVREQ, LENGERR, NOTAUTH, NOTFND,
SYSIDERR
If the current key length is changed, this causes the from the end of the retrieved record to the end of the
browse to be repositioned. The browse is repositioned target data area, are unpredictable.
to the key whose initial characters match the value
If you specify the INTO option, the LENGTH argument
specified in the RIDFLD for the current key length.
must be a data area that specifies the largest record the
The current key length is zero after a request that program accepts. If the retrieved record is longer than
specifies KEYLENGTH(0). the value specified in the LENGTH option, the record is
truncated to the specified value and the LENGERR
IF KEYLENGTH is omitted on a READNEXT command,
condition occurs. In this case, the LENGTH data area is
the current key length remains the same and the browse
set to the length of the record prior to truncation.
continues without repositioning.
If you specify the SET option, the LENGTH option need
If KEYLENGTH is specified on a READNEXT command
not be specified but, if it is, the argument must be a data
and is equal to the current key length, this is treated as
area.
being no change and the browse is not repositioned.
The one exception to this is when KEYLENGTH(0) is Note that a file control command issued against a
specified, which always causes the browse to be variable-length record in a file defined on the local CICS
repositioned to the beginning of the file. system fails with a LENGERR condition if a length is not
specified. However, if the same command is issued
KEYLENGTH can be specified during a generic browse
against a file defined on a remote system, the command
with a value equal to the full key length. This does not
does not fail. The transformer which passes CICS
cause the current key length to change and the browse
commands from one CICS region to another has to pass
is not repositioned. The ability to specify the full key
a default value for the length argument if a value is not
length during a generic browse is provided to allow
specified. This is because, if the file is remote, the
requests that specify SYSID to be able to tell the
transformer cannot identify the record as fixed or
function-shipping transformers how long the key is, so
variable, and it is valid not to pass a length when issuing
that the transformers can ship the key to the file-owning
a request against a fixed-length record.
region.
A browse can be repositioned by modifying the RIDFLD # RBA (VSAM ESDS, KSDS, or CMT)
data area. A generic browse is repositioned only if the # (base data sets only, not paths)
modification to RIDFLD changes the part of RIDFLD specifies that the record identification field specified in
corresponding to the current key length. A consequence the RIDFLD option contains a relative byte address.
of this is that the browse can not be repositioned by This option must be specified when the STARTBR or
modifying the RIDFLD data area if the current key length RESETBR command specified the RBA option.
is zero.
| You cannot use RBA for user-maintained data tables.
LENGTH(data-area)
REQID(data-value)
specifies the length, as a halfword binary value, of the
specifies as a halfword binary value a unique request
record to be retrieved. On completion of a retrieval
identifier for a browse, used to control multiple browse
operation, the LENGTH parameter contains the actual
operations on a data set. If this option is not specified, a
length of the retrieved record.
default value of zero is assumed.
This option must be specified if SYSID is specified. It
must also be specified with the INTO option on RIDFLD(data-area)
commands involving variable-length records. It need not # specifies the record identification field. When combined
be specified for fixed-length records, but its inclusion is # with RBA or RRN this is a 4-character field. The
recommended because: contents can be a key, a relative byte address, or
relative record number (for VSAM data sets), or a block
It causes a check to be made that the record being reference, physical key, and deblocking argument (for
read is not too long for the available data area. BDAM data sets). For a relative byte address or a
When browsing fixed-length records into an area relative record number, the format of this field must be
longer than the record being accessed, the fullword binary. For a relative byte address, the RIDFLD
LENGERR condition is raised for can be greater than or equal to zero. For a relative
assembler-language, VS COBOL II, and PL/I record number, the RIDFLD can be greater than or
applications if the LENGTH option is not specified. equal to 1.
If the length specified exceeds the file record length, Even if the browse is generic, this field should always be
CICS uses the longer length for the move. If the large enough to accommodate the complete record
target area in the application program is not large identifier. This is because, on completion of the
enough, storage is overlaid beyond the target area. READNEXT command, the field is updated by CICS with
the complete identification of the record retrieved.
When browsing into a target data area longer than the
record being read, the contents of the target data area,
If TASKDATAKEY(USER) is specified for the running The REQID, if any, does not match that of any
task, the data returned is in a user-key; otherwise it is in successful STARTBR command (RESP2=34).
a CICS-key. The type of record identification (for example, key or
relative byte address) used to access a data set
SYSID(systemname)
during the browse is changed by the READNEXT
specifies the name of the system to which the request is
command (RESP2=37).
directed.
The KEYLENGTH option is specified for a generic
If you specify SYSID, and omit both RBA and RRN, you
browse (that is one where GENERIC was specified
must also specify LENGTH and KEYLENGTH; they
on the STARTBR or the last RESETBR) and the
cannot be found in the FCT.
value of KEYLENGTH was less than zero
(RESP2=42).
READNEXT conditions
Default action: terminate the task abnormally.
Note: RESP2 values are not set for files that are on remote
systems. IOERR
occurs if there is an I/O error during the READNEXT
DUPKEY (VSAM) command (RESP2=120). An I/O error is any unusual
occurs if a record is retrieved by way of an alternate event that is not covered by a CICS condition.
index with the NONUNIQUEKEY attribute, and another
alternate index record with the same key follows For VSAM files, IOERR normally indicates a hardware
(RESP2=140). It does not occur as a result of a error.
READNEXT command that reads the last of the records (Further information is available in the EXEC interface
having the nonunique key. block; refer to Appendix A, “EXEC interface block” on
In assembler language, if the SET option is being used, page 343 for details.)
the register specified will not have been set, but can be Default action: terminate the task abnormally.
loaded from DFHEITP1.
ISCINVREQ
Default action: terminate the task abnormally. occurs when the remote system indicates a failure that
ENDFILE does not correspond to a known condition (RESP2=70).
occurs if an end-of-file condition is detected during the Default action: terminate the task abnormally.
browse (RESP2=90).
Default action: terminate the task abnormally.
FILENOTFOUND
occurs if a file name referred to in the FILE option
cannot be found in the FCT (RESP2=1).
LENGERR
occurs in any of the following situations:
NOTAUTH
occurs when a resource security check has failed on
FILE(filename) (RESP2=101).
Default action: terminate the task abnormally.
NOTFND
occurs if an attempt to retrieve a record based on the
search argument provided is unsuccessful (RESP2=80).
This may occur if the READNEXT command immediately
follows a STARTBR command that specified the key of
the last record in the data set (a complete key of
X'FF's).
Default action: terminate the task abnormally.
SYSIDERR
| occurs when the SYSID option specifies a name that is
| neither the local system nor a remote system (made
| known to CICS by defining a CONNECTION).
SYSIDERR also occurs when the link to the remote
system is closed (RESP2=130).
Default action: terminate the task abnormally.
READPREV
Function
Read previous record during a file browse; VSAM and data tables only.
Command syntax
──READPREV──FILE(filename)──┬─INTO(data-area)─┬──┬───────────────────┬──RIDFLD(data-area)────────────────
└─SET(ptr-ref)────┘ └─LENGTH(data-area)─┘
──┬───────────────────────┬──┬───────────────────┬──┬───────────────────┬──┬─────┬──"
└─KEYLENGTH(data-value)─┘ └─REQID(data-value)─┘ └─SYSID(systemname)─┘ ├─RBA─┤
└─RRN─┘
Conditions:
DUPKEY, ENDFILE, FILENOTFOUND, ILLOGIC, INVREQ, IOERR, ISCINVREQ, LENGERR, NOTAUTH, NOTFND,
SYSIDERR
When reading fixed-length records into an area In assembler language, if the DUPKEY condition occurs,
longer than the record being accessed, the the specified register has not been set, but can be
LENGERR condition is raised for VS COBOL II, loaded from DFHEITP1.
PL/I, and assembler-language applications if the
The pointer reference is valid until the next READ
LENGTH option is not specified. If the length
command for the same file. If you want to retain the
specified exceeds the file record length, CICS uses
data within the field addressed by the pointer, it should
the longer length for the move. If the target area in
be moved to your own area.
the application program is not large enough, storage
is overlaid beyond the target area. If DATALOCATION(ANY) is associated with the
application program, the address returned in the SET
When browsing into a target data area longer than the pointer can be above or below the 16MB line.
record being read, the contents of the target data area,
If DATALOCATION(BELOW) is associated with the
from the end of the retrieved record to the end of the
application program, and the data resides above the
target data area, are unpredictable.
16MB line, the address returned in the SET pointer is
If you specify the INTO option, LENGTH specifies the below the 16MB line.
largest record the program accepts. If the retrieved
If TASKDATAKEY(USER) is specified for the running
record is longer than the value specified in the LENGTH
task, the data returned is in a user-key; otherwise it is in
option, the record is truncated to the specified value and
a CICS-key.
the LENGERR condition occurs. In this case, the
LENGTH data area is set to the length of the record SYSID(systemname)
prior to truncation. specifies the name of the system to which the request is
If you specify the SET option, LENGTH need not be directed.
specified. If you specify SYSID, and omit both RBA and RRN, you
must also specify LENGTH and KEYLENGTH.
# RBA (VSAM ESDS, KSDS, or CMT)
# (base data sets only, not paths)
specifies that the record identification field specified in READPREV conditions
the RIDFLD option contains a relative byte address.
Note: RESP2 values are not set for files that are on remote
You must specify this option after any STARTBR or
systems.
RESETBR command that specified the RBA option.
| You cannot use RBA for user-maintained data tables. DUPKEY
occurs if a record is retrieved by way of an alternate
REQID(data-value) index with the NONUNIQUEKEY attribute, and another
specifies as a halfword binary value a unique request alternate index record with the same key exists
identifier for a browse, used to control multiple browse (RESP2=140).
operations on a data set. If this option is not specified, a
In assembler language, if the SET option is being used,
default value of zero is assumed.
the specified register has not been set, but can be
RIDFLD(data-area) loaded from DFHEITP1.
# specifies the record identification field. When combined Default action: terminate the task abnormally.
# with RBA or RRN this is a 4-character field. The
contents can be a key, a relative byte address, or ENDFILE
relative record number. For a relative byte address or a occurs if an end-of-file condition is detected during a
relative record number, the format of this field must be browse (RESP2=90).
fullword binary. For a relative byte address, the RIDFLD Default action: terminate the task abnormally.
can be greater than or equal to zero. For a relative
record number, the RIDFLD can be greater than or FILENOTFOUND
equal to 1. occurs if a file name referred to in the FILE option
cannot be found in the FCT (RESP2=1).
On completion of the READPREV command, this field is
updated by CICS with the complete identification of the Default action: terminate the task abnormally.
record retrieved.
ILLOGIC (VSAM)
RRN (VSAM RRDS) occurs if a VSAM error occurs that does not fall within
specifies that the record identification field specified in one of the other CICS response categories
the RIDFLD option contains a relative record number. (RESP2=110).
A READPREV command is issued for a file for Default action: terminate the task abnormally.
which the previous STARTBR or RESETBR
SYSIDERR
command has the GENERIC option (RESP2=24).
occurs when the SYSID option specifies a name that
The KEYLENGTH option is specified and the has not been defined to CICS as a remote system
specified length does not equal the length defined (defined by defining a CONNECTION). SYSIDERR also
for the data set for this file refers to (RESP2=26). occurs when the link to the remote system is closed
(RESP2=130).
The type of record identification (for example, key or
relative byte address) used to access a data set Default action: terminate the task abnormally.
during the browse is changed (RESP2=37).
A READPREV is issued for a BDAM file
(RESP2=39).
The REQID, if any, does not match that of any
successful STARTBR command (RESP2=41).
IOERR
occurs if there is an I/O error during the browse
(RESP2=120). An I/O error is any unusual event that is
not covered by a CICS condition.
For VSAM files, IOERR normally indicates a hardware
error. (Further information is available in the EXEC
interface block; refer to Appendix A, “EXEC interface
block” on page 343 for details.)
Default action: terminate the task abnormally.
ISCINVREQ
occurs when the remote system indicates a failure that
does not correspond to a known condition (RESP2=70).
Default action: terminate the task abnormally.
LENGERR
occurs in any of the following situations:
NOTAUTH
occurs when a resource security check has failed on
FILE(filename) (RESP2=101).
Default action: terminate the task abnormally.
NOTFND
occurs if an attempt to retrieve a record based on the
search argument provided is unsuccessful (RESP2=80).
One place where this may occur is where the
READPREV command immediately follows a STARTBR
READQ TD
Function
Read data from the transient data queue.
Command syntax
──READQ TD──QUEUE(name)──┬─INTO(data-area)─┬──┬───────────────────┬──┬───────────────────┬───────────────
└─SET(ptr-ref)────┘ └─LENGTH(data-area)─┘ └─SYSID(systemname)─┘
──┬───────────┬──"
└─NOSUSPEND─┘
Conditions:
DISABLED, IOERR, INVREQ, ISCINVREQ, LENGERR, NOTAUTH, NOTOPEN, QBUSY, QIDERR, QZERO,
SYSIDERR
READQ TD reads transient data from a queue (after which READQ TD options
the record is no longer available).
INTO(data-area)
If you are using automatic transaction initiation (ATI) (see the specifies the user data area into which the data read
section on ATI in the CICS/ESA Application Programming from the transient data queue is to be placed.
# Guide for introductory information) your application should
LENGTH(data-area)
# test for the QZERO condition to ensure that termination of an
| specifies the length, as a halfword binary value, of the
automatically initiated task occurs only when the queue is
| record to be read.
empty.
If you specify the INTO option, LENGTH specifies the
The following example shows how to read a record from an maximum length of data that the program accepts. If the
intrapartition data set (queue), which in this case is the value specified is less than zero, zero is assumed. If the
control system message log (CSML), into a data area length of the data exceeds the value specified, the data
specified in the request: is truncated to that value and the LENGERR condition
EXEC CICS READQ TD occurs. On completion of the retrieval operation, the
QUEUE('CSML') data area is set to the original length of the data.
INTO(DATA)
LENGTH(LDATA) NOSUSPEND
| specifies that if the application program attempts to read
The following example shows how to read a record from an | from a queue that is already being used for output, the
extrapartition data set (queue) having fixed-length records | task is not suspended until the queue becomes
into a data area provided by CICS; the pointer reference | available. Instead, the QBUSY condition is raised.
specified by the SET option is set to the address of the This option only applies to intrapartition queues.
storage area reserved for the data record. It is assumed that
the record length is known. QUEUE(name)
specifies the symbolic name (1–4 alphanumeric
EXEC CICS READQ TD
QUEUE(EX1) characters) of the queue to be read from. The name
SET(PREF) must have been defined in the DCT.
| If SYSID is specified, the queue is assumed to be on a
If the READQ TD command attempts to access a record in a remote system irrespective of whether or not the name
logically recoverable intrapartition queue that is being written is defined as remote in the DCT. Otherwise the entry in
to, or deleted by, another task, and there are no more the DCT is used to find out whether the data set is on a
committed records, the command waits until the queue is no local or a remote system.
longer being used for output. If, however, the NOSUSPEND
option has been specified, the QBUSY condition is raised. SET(ptr-ref)
specifies a pointer reference that is to be set to the
address of the data read from the queue. CICS
acquires an area large enough to hold the record and
sets the pointer reference to the address of that area.
The area is retained until another transient data
command is executed. The pointer reference, unless
changed by other commands or statements, is valid until Default action: terminate the task abnormally.
the next READQ TD command or the end of task.
QBUSY
If DATALOCATION(ANY) is associated with the occurs if a READQ TD command attempts to access a
application program, the address of the data can be record in a logically recoverable intrapartition queue that
above or below the 16MB line. is being written to or is being deleted by another task,
If DATALOCATION(BELOW) is associated with the and there are no more committed records.
application program, and the data resides above the The NOSUSPEND option must be specified for this
16MB line, the data is copied below the 16MB line, and condition to be raised.
the address of this copy is returned.
This condition applies only to intrapartition queues.
If TASKDATAKEY(USER) is specified for the running
Default action: ignore the condition.
task, and storage protection is active, the data returned
is in a user-key. If TASKDATAKEY(CICS) is specified QIDERR
and storage protection is active, the data returned is in a occurs if the symbolic destination to be used with
CICS-key. READQ TD cannot be found.
SYSID(systemname) — remote systems only Default action: terminate the task abnormally.
specifies the name (1–4 characters) of the system to
QZERO
which the request is directed.
occurs when the destination (queue) is empty or the end
of the queue has been reached.
READQ TD conditions Default action: terminate the task abnormally.
DISABLED
SYSIDERR
occurs when the queue has been disabled.
| occurs when the SYSID option specifies a name that is
Default action: terminate the task abnormally. | neither the local system nor a remote system (made
| known to CICS by defining a CONNECTION).
INVREQ
SYSIDERR also occurs when the link to the remote
occurs if READQ names an extrapartition queue that has
system is closed.
been opened for output. This condition cannot occur for
intrapartition queues. Default action: terminate the task abnormally.
Default action: terminate the task abnormally.
IOERR
occurs when an input/output error occurs and the data
record in error is skipped.
This condition occurs as long as the queue can be read;
a QZERO condition occurs when the queue cannot be
read.
Default action: terminate the task abnormally.
ISCINVREQ
occurs when the remote system indicates a failure that
does not correspond to a known condition.
Default action: terminate the task abnormally.
LENGERR
occurs if READQ names an INTO area that cannot hold
all the data that is to be returned to the application. The
check is made after the XTDIN exit has been invoked.
Default action: terminate the task abnormally.
NOTAUTH
occurs when a resource security check has failed on
QUEUE(name).
Default action: terminate the task abnormally.
NOTOPEN
occurs if the destination is closed. This condition applies
to extrapartition queues only.
READQ TS
Function
Read data from temporary storage queue.
Command syntax
──READQ TS──QUEUE(name)──┬─INTO(data-area)─┬──┬───────────────────┬──┬─────────────────────┬─────────────
└─SET(ptr-ref)────┘ └─LENGTH(data-area)─┘ └─NUMITEMS(data-area)─┘
┌─NEXT─────────────┐
──┼──────────────────┼──┬───────────────────┬──"
└─ITEM(data-value)─┘ └─SYSID(systemname)─┘
Conditions:
INVREQ, IOERR, ISCINVREQ, ITEMERR, LENGERR, NOTAUTH, QIDERR, SYSIDERR
READQ TS options
INTO(data-area)
specifies the data area into which the data is to be
written. The data area can be any variable, array, or
structure.
ITEM(data-value)
provides a halfword binary value that specifies the item
number of the logical record to be retrieved from the
queue.
READQ TS
SET(ptr-ref) QIDERR
specifies the pointer reference that is set to the address occurs when the queue specified cannot be found, either
of the retrieved data. The pointer reference, unless in main or in auxiliary storage.
changed by other commands or statements, is valid until Default action: terminate the task abnormally.
the next READQ TS command or the end of task.
If the application program is defined with
DATALOCATION(ANY), the address of the data can be
above or below the 16MB line. If the application
program is defined with DATALOCATION(BELOW), the
address of the data is below the 16MB line.
If TASKDATAKEY(USER) is specified for the running
task, and storage protection is active, the data returned
is in a user-key. If TASKDATAKEY(CICS) is specified
and storage protection is active, the data returned is in a
CICS-key.
READQ TS conditions
INVREQ
occurs when the queue was created by CICS internal
code.
Default action: terminate the task abnormally.
IOERR
occurs when there is an irrecoverable input/output error.
Default action: terminate the task abnormally.
ISCINVREQ
occurs when the remote system indicates a failure that
does not correspond to a known condition.
Default action: terminate the task abnormally.
ITEMERR
occurs in any of the following situations:
LENGERR
occurs when the length of the stored data is greater than
the value specified by the LENGTH option.
SYSIDERR
| occurs when the SYSID option specifies a name that is
| neither the local system nor a remote system (made
| known to CICS by defining a CONNECTION).
SYSIDERR also occurs when the link to the remote
system is closed.
Default action: terminate the task abnormally.
Function
Receive data from standard CICS terminal support (BTAM or TCAM) or from a task that is not attached to a terminal.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
INVREQ, LENGERR, NOTALLOC
This form of the RECEIVE command is used by all CICS-supported terminals for which the other RECEIVE descriptions are
not appropriate.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (APPC)
Function
Receive data on an APPC mapped conversation.
Command syntax
──RECEIVE──┬──────────────┬──┬─INTO(data-area)─┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬─────
| └─CONVID(name)─┘ └─SET(ptr-ref)────┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤
| └─MAXFLENGTH(data-value)─┘
──┬────────────┬──┬─────────────┬──"
└─NOTRUNCATE─┘ └─STATE(cvda)─┘
Conditions:
EOC, INVREQ, LENGERR, NOTALLOC, SIGNAL, TERMERR
RECEIVE receives data from the conversation partner in an APPC mapped conversation.
RECEIVE (LUTYPE2/LUTYPE3)
Function
Receive data from a 3270-display logical unit (LUTYPE2) or a 3270-printer logical unit (LUTYPE3).
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬──────┬─────────
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─ASIS─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
──┬────────┬──┬────────────┬──"
└─BUFFER─┘ └─NOTRUNCATE─┘
Conditions:
| EOC, INVREQ, LENGERR, TERMERR
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
| attention identifier (AID) (and BUFFER has not been specified), you can omit both the INTO and SET options.
RECEIVE (LUTYPE4)
Function
Receive data from an LUTYPE4 logical unit.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, EODS, INBFMH, INVREQ, LENGERR, SIGNAL, TERMERR
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (LUTYPE6.1)
Function
Receive data on an LUTYPE6.1 session.
Command syntax
──RECEIVE──┬───────────────┬──┬─INTO(data-area)─┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬────
| └─SESSION(name)─┘ └─SET(ptr-ref)────┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤
| └─MAXFLENGTH(data-value)─┘
──┬────────────┬──"
└─NOTRUNCATE─┘
Conditions:
EOC, INBFMH, INVREQ, LENGERR, NOTALLOC, SIGNAL, TERMERR
Function
Receive data from a 3270 logical unit.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬──────┬─────────
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─ASIS─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
──┬────────┬──┬────────────┬──"
└─BUFFER─┘ └─NOTRUNCATE─┘
Conditions:
INVREQ, LENGERR, TERMERR
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
| attention identifier (AID) (and BUFFER has not been specified), you can omit both the INTO and SET options.
Function
Receive initial input data from a 3600 pipeline logical unit. Subsequent RECEIVEs for further input data are not allowed.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
INVREQ, LENGERR, NOTALLOC
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (3600-3601)
Function
Receive data from a 3600 (3601) logical unit
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, EODS, INBFMH, INVREQ, LENGERR, SIGNAL, TERMERR
RECEIVE receives data from the terminal. This form of RECEIVE also applies to the 3630 plant communication system.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (3600-3614)
Function
Receive data from a 3600 (3614) logical unit.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
INVREQ, LENGERR, TERMERR
The data-stream and communication format used between a CICS application program and a 3614 is determined by the 3614.
The application program is therefore device dependent when handling 3614 communication.
For further information about designing 3614 application programs for CICS, refer to the CICS/OS/VS IBM 4700/3600/3630
Guide.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (3650)
Function
Receive data from 3650 logical units.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, EODS, INBFMH, INVREQ, LENGERR, TERMERR
RECEIVE receives data from the terminal. This form of RECEIVE also applies to the following 3650 devices:
Interpreter logical unit
Host conversational (3270) logical unit
Host conversational (3653) logical unit
3650/3680 command processor logical unit.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (3767)
Function
Receive data from a 3767 interactive logical unit.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, INVREQ, LENGERR, SIGNAL, TERMERR
RECEIVE receives data from the terminal. This form of RECEIVE also applies to the 3770 interactive logical unit.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (3770)
Function
Receive data from a 3770 batch logical unit.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, EODS, INBFMH, INVREQ, LENGERR, SIGNAL, TERMERR
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
Function
Receive data from a 3790 full-function or inquiry logical unit.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
EOC, EODS, INBFMH, INVREQ, LENGERR, SIGNAL, TERMERR
RECEIVE receives data from the terminal. This form of RECEIVE also applies to the following devices:
3650/3680 full-function logical unit
3770 full-function logical unit.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (VTAM) options If you specify the INTO option, but omit the
MAXLENGTH option, the argument must be a data area
ASIS that specifies the maximum length that the program
specifies that lowercase characters in the 3270 input accepts. If the value specified is less than zero, zero is
data stream are not translated to uppercase; this allows assumed.
the current task to receive a message containing both
If you specify the SET option, the argument must be a
uppercase and lowercase data.
data area. When the data has been received, the data
This option has no effect on the first RECEIVE area is set to the length of the data.
command of a transaction, because terminal control
performs a READ INITIAL and uses the terminal defaults MAXFLENGTH(data-value)
to translate the operation data. A fullword alternative to MAXLENGTH.
INBFMH
occurs if a request/response unit (RU) contains a
function management header (FMH). Field EIBFMH
contains this indicator and it should be used in
preference to INBFMH. The IGNORE CONDITION
command can be used to ignore the condition.
Default action: terminate the task abnormally.
INVREQ
occurs if:
Function
Receive data from standard CICS terminal support (BTAM or TCAM) or from a task that is not attached to a terminal.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
INVREQ, LENGERR, NOTALLOC
| This form of the RECEIVE command is used by all CICS-supported terminals for which the other RECEIVE descriptions are
| not appropriate.
If data is to be received, you must specify either the INTO or the SET option.
RECEIVE (non-VTAM)
RECEIVE (System/3)
Function
Receive data from a System/3.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬───
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
──┬──────┬──"
└─ASIS─┘
Conditions:
INVREQ, LENGERR
RECEIVE receives data from the terminal. This form of the RECEIVE command also applies to the following devices:
2770 data communication system
2780 data transmission terminal
3660 supermarket scanning system
3780 communication terminal.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (System/7)
Function
Receive data from a System/7.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬───────────┬──┬──────┬──"
└─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ └─PSEUDOBIN─┘ └─ASIS─┘
└─SET(ptr-ref)────┘
Conditions:
INVREQ, LENGERR
RECEIVE receives data from the terminal. For a description of running with a System/7, see “CONVERSE (System/7)” on
page 54.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (2260)
Function
Receive data from a 2260 or 2265 display station.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬───
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
──┬─────────┬──"
└─LEAVEKB─┘
Conditions:
INVREQ, LENGERR
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (2741)
Function
Receive data from a 2741 communication terminal.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
INVREQ, LENGERR, RDATT
RECEIVE receives data from the terminal. For more information about using a 2741 communication terminal, see
“CONVERSE (2741)” on page 56.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (2980)
Function
Receive data from a 2980 general banking terminal system.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬───
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
──PASSBK──"
Conditions:
INVREQ, LENGERR, NOPASSBKRD
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
Passbook control
All input and output requests to the passbook area of a 2980 are dependent on the presence of a passbook. The PASSBK
option is used to specify that communication is with a passbook. The conditions NOPASSBKRD (RECEIVE) and
NOPASSBKWR (SEND) occur on input and output requests respectively when a passbook is not present. These conditions
can be handled by a HANDLE CONDITION command and appropriate handling routines.
If the passbook is present on an input request, the application program generally writes back to the passbook area to update
the passbook. If the NOPASSBKWR condition occurs, CICS allows immediate output to the terminal. In a routine for the
NOPASSBKWR condition, the application program should send an error message to the journal area of the terminal to inform
the 2980 operator of this error condition. To allow the operator to insert the required passbook, CICS causes the transaction to
wait 23.5 seconds before continuing.
On regaining control from CICS after sending the error message, the application program can attempt again to update the
passbook when it has ensured that the print element is positioned correctly in the passbook area. This is generally
accomplished by issuing two carrier returns followed by the number of tabs required to move the print element to the correct
position.
If the NOPASSBKWR condition occurs during the second attempt to write to the passbook area, the application program can
send another error message or take some alternative action (for example, place the terminal “out of service”). The presence of
the Auditor Key on a 2980 Administrative Station Model 2 is controlled by the SEND PASSBK command and may be used in a
manner similar to that described above.
Output control
The unit of transmission for a 2980 is called a segment. However, for the passbook and journal areas, CICS allows an
application program to send messages that exceed the buffer size. For the passbook area, the maximum length of message is
limited to one line of a passbook to avoid spacing (“indexing”) past the bottom of the passbook. For the journal area, the
maximum length of message is specified in the LENGTH option of the SEND command.
For example, consider a 2972 buffer size of 48 characters and a 2980 Teller Station Model 4 passbook print area of 100
characters per line. The application program can send a message of 100 characters to this area; CICS segments the message
to adjust to the buffer size. The application program must insert the passbook indexing character (X'25') as the last character
written in one output request to the passbook area. This is done to control passbook indexing and thereby achieve positive
control of passbook presence.
If a message contains embedded passbook indexing characters, and segmentation is necessary because of the length of the
message, the output is terminated if the passbook spaces beyond the bottom of the passbook; the remaining segments are not
printed.
For COBOL, DFH2980 is copied into the working-storage section; for PL/I, DFH2980 is included using a %INCLUDE statement.
The station identification is given in the field STATIONID, whose value must be determined by the ASSIGN command. To test
whether a normal or alternate station is being used, the STATIONID field is compared with values predefined in DFH2980.
The values are:
STATION-
STATION_
where normal stations. (The break symbol is hyphen (-) for COBOL, and underscore (_) for PL/I.)
The teller identification on a 2980 Teller Station Model 4 is given in the 1-byte character field TELLERID. An ASSIGN
command must be used to find out the TELLERID value.
Tab characters (X'05') must be included in the application program. The number of tabs required to position the print element
to the first position of a passbook area is given in the field NUMTAB. An ASSIGN command must be used to find out the
NUMTAB value. The value of NUMTAB is specified by the system programmer and may be unique to each terminal.
Any of the DFH2980 values TAB-ZERO through TAB-NINE for COBOL and PL/I, may be compared with NUMTAB to find out
the number of tab characters that need to be inserted in an output message to get correct positioning of the print element. The
tab character is included in DFH2980 as TABCHAR.
Thirty special characters are defined in DFH2980. Twenty-three of these can be referred to by the name SPECCHAR-# or
SPECCHAR_# (for American National Standard COBOL or PL/I) where # is an integer (0 through 22). The seven other
characters are defined with names that imply their usage, for example, TABCHAR.
Several other characters defined in DFH2980, such as HOLDPCF or TCTTEPCR, are intended for use in application programs
using CICS macros, and should not be required in application programs using CICS commands.
Function
Receive data from a 3270 information display system (BTAM or TCAM).
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬───
└─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
└─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
──┬──────┬──┬────────┬──"
└─ASIS─┘ └─BUFFER─┘
Conditions:
INVREQ, LENGERR
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
| attention identifier (AID) (and BUFFER has not been specified), you can omit both the INTO and SET options.
Function
| Receive data from a 3600 finance communication system (BTAM) - only valid for remote terminals. This form of the RECEIVE
| command also applies to the 4700 finance communication system. For more information about using the 3600 or 4700 finance
| communication system, see “CONVERSE (3600 BTAM)” on page 58 and “BTAM programmable terminals” on page 358.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
INVREQ, LENGERR
RECEIVE receives data from the terminal. For more information about using the 3600 or 4700 finance communication system,
see “CONVERSE (3600 BTAM)” on page 58.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (3735)
Function
Receive data from a 3735 Programmable Buffered Terminal.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
EOF, INVREQ, LENGERR
RECEIVE receives data from the terminal. The 3735 Programmable Buffered Terminal may be serviced by CICS in response
to terminal-initiated input (automatic answering), or as a result of an automatic (automatic calling) or time-initiated transaction.
For more information about using the 3735 terminal, see “CONVERSE (3735)” on page 60.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
RECEIVE (3740)
Function
Receive data from a 3740 data entry system.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬────────────┬──"
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─NOTRUNCATE─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
Conditions:
EOF, ENDINPT, INVREQ, LENGERR
In batch mode, many files are exchanged between the 3740 and CICS in a single transmission. The transmission of an input
batch must be complete before an output transmission can be started.
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
attention identifier (AID) you can omit both the INTO and SET options.
Function
Receive data from a 3790 (3270-display) logical unit.
Command syntax
──RECEIVE──┬─────────────────────┬──┬─LENGTH(data-area)──┬──┬────────────────────────┬──┬──────┬─────────
| └─┬─INTO(data-area)─┬─┘ └─FLENGTH(data-area)─┘ ├─MAXLENGTH(data-value)──┤ └─ASIS─┘
| └─SET(ptr-ref)────┘ └─MAXFLENGTH(data-value)─┘
──┬────────┬──┬────────────┬──"
└─BUFFER─┘ └─NOTRUNCATE─┘
Conditions:
INVREQ, LENGERR, TERMERR
If data is to be received, you must specify either the INTO or the SET option. If a RECEIVE is issued purely to detect an
| attention identifier (AID) (and BUFFER has not been specified), you can omit both the INTO and SET options.
If you specify the SET option, the argument must be a data If the length of the data exceeds the value specified, but
area. When the data has been received, the data area is set the NOTRUNCATE option is not specified, the data is
to the length of the data. truncated to that value and the LENGERR condition
occurs. When the data has been received, the data
For a description of a safe upper limit, see “LENGTH area is set to the original length of the data.
options” on page 5. If you specify the SET option, the argument must be a
ASIS data area. When the data has been received, the data
indicates that output is to be sent in transparent mode area is set to the length of the data.
(with no recognition of control characters and accepting For a description of a safe upper limit, see “LENGTH
any of the 256 possible combinations of eight bits as options” on page 5.
valid transmittable data).
MAXFLENGTH(data-value)
This option has no effect on the first RECEIVE A fullword alternative to MAXLENGTH.
command of a transaction, because terminal control
performs a READ INITIAL operation and uses the MAXLENGTH(data-value)
terminal defaults to translate the data. specifies the maximum amount (halfword binary value)
of data that CICS is to recover. If INTO is specified,
This option has no effect if the screen contains data
MAXLENGTH overrides the use of LENGTH as an input
prior to a transaction being initiated. This data is read
to CICS. If SET is specified, MAXLENGTH provides a
and translated in preparation for the next task and the
way for the program to limit the amount of data it
first RECEIVE command in that task retrieves the
receives at one time.
translated data.
| If the value specified is less than zero, zero is assumed.
Note: If you are using a katakana terminal, you might
see some messages containing mixed English and If the length of data exceeds the value specified and the
katakana characters. That is because katakana NOTRUNCATE option is not present, the data is
terminals cannot display mixed-case output. Uppercase truncated to that value and the LENGERR condition
characters in the data stream appear as uppercase occurs. The data area specified in the LENGTH option
English characters, but lowercase characters appear as is set to the original length of data.
katakana characters. If this happens, ask your system If the length of data exceeds the value specified and the
programmer to specify MSGCASE=UPPER in the NOTRUNCATE option is present, CICS retains the
system initialization parameters so that messages remaining data and uses it to satisfy subsequent
contain uppercase characters only. RECEIVE commands. The data area specified in the
BUFFER (not TCAM) LENGTH option is set to the length of data returned.
specifies that the contents of the 3270 buffer are to be If this option is omitted, the value indicated in the
read, beginning at buffer location one and continuing LENGTH option is assumed.
until all contents of the buffer have been read. All
character and attribute sequences (including nulls) NOTRUNCATE
appear in the input data stream in the same order that specifies that, when the data available exceeds the
they appear in the 3270 buffer. length requested, the remaining data is not to be
discarded but is to be retained for retrieval by
FLENGTH(data-area) subsequent RECEIVE commands.
A fullword alternative to LENGTH.
PASSBK
INTO(data-area) specifies that communication is with a passbook.
specifies the receiving field for the data read from the
terminal or logical unit, or the application target area
receiving the data from the application program
connected to the other end of the current conversation.
PSEUDOBIN EOC
specifies that the data being read is to be translated occurs when a request/response unit (RU) is received
from System/7 pseudobinary representation to with the end-of-chain indicator set. Field EIBEOC also
hexadecimal. contains this indicator.
SET(ptr-ref) INBFMH
specifies a pointer reference that is to be set to the occurs if a request/response unit (RU) contains a
address of data received from the conversation partner function management header (FMH). Field EIBFMH
# in an MRO conversation. The pointer reference is valid contains this indicator and it should be used in
# until the next receive command or the end of task. preference to INBFMH. The IGNORE CONDITION
command can be used to ignore the condition.
If DATALOCATION(ANY) is associated with the
application program, the address of the data can be Default action: terminate the task abnormally.
above or below the 16MB line.
INVREQ
If DATALOCATION(BELOW) is associated with the occurs if a distributed program link server application
application program, and the data resides above the specified the function-shipping session (its principal
16MB line, the data is copied below the 16MB line, and facility) on the CONVID option (RESP2=200).
the address of this copy is returned.
| Default action: terminate the task abnormally.
If TASKDATAKEY(USER) is specified for the running
LENGERR
task, and storage protection is active, the data returned
occurs if data is discarded by CICS because its length
is in a user-key. If TASKDATAKEY(CICS) is specified
exceeds the maximum the program accepts and the
and storage protection is active, the data returned is in a
NOTRUNCATE option is not specified.
CICS-key.
Default action: terminate the task abnormally.
STATE(cvda)
gets the state of the current conversation. The cvda NOPASSBKRD
values returned by CICS are: occurs if no passbook is present.
RECEIVE MAP
Function
Receive screen input into an application data area. For further information about BMS, see the CICS/ESA Application
Programming Guide.
Command syntax
──RECEIVE MAP(name)──"
Minimum BMS:
┌─TERMINAL──┬──────┬──┬───────────────┬───┐
│ └─ASIS─┘ └─INPARTN(name)─┘ │
──┬──────────────┬──┬─────────────────┬──┼─────────────────────────────────────────┼──"
└─MAPSET(name)─┘ ├─INTO(data-area)─┤ └─FROM(data-area)──┬────────────────────┬─┘
└─SET(ptr-ref)────┘ └─LENGTH(data-value)─┘
Conditions:
EOC, EODS, INVMPSZ, INVPARTN, INVREQ, MAPFAIL, PARTNFAIL, RDATT, UNEXPIN
Data from certain logical units is not mapped, but is left Note: If you are using a katakana terminal, you might
unaltered. Refer to the appropriate CICS subsystem guide to see some messages containing mixed English and
see if this is true for a particular logical unit. katakana characters. That is because katakana
terminals cannot display mixed-case output. Uppercase
Following a RECEIVE MAP command, the inbound cursor characters in the data stream appear as uppercase
position is placed in EIBCPOSN, and the terminal attention English characters, but lowercase characters appear as
identifier (AID) placed in EIBAID. katakana characters. If this happens, ask your system
programmer to specify MSGCASE=UPPER in the
See Appendix K, “BMS macro summary” on page 381 for system initialization parameters so that messages
map definitions. contain uppercase characters only.
INTO(data-area) EOC
specifies the data area into which the mapped data is to occurs if the request/response unit (RU) is received with
be written. If this field is not specified, the name the end-of-chain (EOC) indicator set. It applies only to
| defaults to the name of the map suffixed with an I. logical units.
UNEXPIN
occurs when unexpected or unrecognized data is
received. This only applies to batch data interchange
terminals.
Default action: terminate the task abnormally.
# Function
# Receive screen input into an application data area, without reference to the principal facility, if any, using terminal
# characteristics obtained from the MAPPINGDEV parameter.
# Apar PQ06521
# RECEIVE MAP MAPPINGDEV added by APAR PQ06521 12/08/97
# Command syntax
#
# ──RECEIVE MAP(name)──MAPPINGDEV(data-value)──FROM(data-area)──┬────────────────────┬─────────────────
# └─LENGTH(data-value)─┘
# ──┬──────────────┬──┬─────────────────┬──"
# └─MAPSET(name)─┘ ├─INTO(data-area)─┤
# └─SET(ptr-ref)────┘
#
# Usage # If the AID (whether specified explicitly, or by default) is
# the subject of a HANDLE AID command, the specified
# RECEIVE MAP MAPPINGDEV allows the mapping of input # branch will be taken in the usual way.
# data from a 3270 terminal that is not necessarily the principal
# facility of the transaction. # CURSOR(data-value)
# specifies an unsigned halfword binary field containing
# MAPPINGDEV specifies the name of a 3270 terminal whose # the cursor position (relative to zero) to be used. Usually
# BMS characteristics were used to create the input data # this will be the value contained in EIBCPOSN following
# stream. This may be a terminal from which the data was # the RECEIVE operation that originally received the
# originally received using a RECEIVE command. # datastream from the terminal.
# The value specified is moved into EIBCPOSN in the
# Parameters # EXEC interface block on completion of the operation.
# No check is made that the CURSOR value specified is
# AID(data-value) # valid.
# specifies the one-byte data area containing the value of # If CURSOR(data-value) is not specified, then the cursor
# the 3270 attention identifier (AID) to be used when # value defaults to X'0000'.
# performing the mapping operation. Usually this will be
# the value contained in EIBAID following the RECEIVE # FROM(data-area)
# operation that originally received the datastream from # specifies the data area containing the data to be
# the terminal. # mapped. This must be in the format of a TIOA and must
# contain a 12-byte prefix.
# The value specified is moved into field EIBAID in the
# EXEC interface block on completion of the operation. # INTO(data-area)
# No check is made that the AID value specified is valid. # specifies the data area into which the mapped data is to
# If AID(data-value) is not specified, then the AID value # be written. If this field is not specified, the name
# defaults to X'7D' (the Enter key). # defaults to the name of the map suffixed with an I.
# For a description of a safe upper limit, see “LENGTH # Default action: terminate the task abnormally.
# options” on page 5.
# MAP(name)
# specifies the name (1–7 characters) of the map to be
# used.
# MAPPINGDEV(data-value)
# specifies the name of a 3270 terminal whose
# characteristics match those of the terminal from which
# the data was originally received using a RECEIVE
# command.
# MAPSET(name)
# specifies the unsuffixed name (1–7 characters) of the
# mapset to be used. The mapset must reside in the
# CICS program library. The mapset can be defined either
# by using RDO or by program autoinstall when the
# mapset is first used. If this option is not specified, the
# name given in the MAP option is assumed to be that of
# the mapset.
# SET(ptr-ref)
# specifies the pointer that is to be set to the address of
# the 12-byte prefix to the mapped data.
# The pointer reference is valid until the next RECEIVE or
# RECEIVE MAP command, or until the end of the
# transaction, unless FREEMAINed by the application.
# If "TASKDATALOC(ANY)" is specified for the running
# task, the data returned may be above or below the
# 16MB line.
# If "TASKDATALOC(BELOW)" is specified for the running
# task,the data returned is below the 16MB line.
# If "TASKDATAKEY(USER)" is specified for the running
# task, and storage protection is active, the data returned
# is in user-key. If "TASKDATAKEY(CICS)" is specified
# and storage protection is active, the data returned is in
# CICS-key.
# Error Conditions
# Some of the following conditions may occur in combination.
# If more than one occurs, only the first is passed to the
# application program.
# INVMPSZ
# occurs if the specified map is too wide or too long for the
# terminal.
# Default action: terminate the task abnormally.
# INVREQ
# occurs if the terminal specified by MAPPINGDEV does
# not exist, does not support BMS, or is not a 3270 printer
# or display.
# Default action: terminate the task abnormally.
# MAPFAIL
# occurs if the data to be mapped has a length of zero or
# does not contain a set-buffer-address (SBA) sequence.
RECEIVE PARTN
Function
Receive data from an 8775 terminal partition. This command is only available on standard and full BMS. For further
information about BMS, see the dfhp33h.CICS/ESA Application Programming Guide.
Command syntax
──RECEIVE PARTN(data-area)──"
──┬─INTO(data-area)─┬──LENGTH(data-value)──┬──────┬──"
└─SET(ptr-ref)────┘ └─ASIS─┘
Conditions:
EOC, EODS, INVPARTN, INVREQ, LENGERR
RECEIVE PARTN reads data from a partition on an 8775 Note: If you are using a katakana terminal, you might
terminal. It indicates which partition the data came from, and see some messages containing mixed English and
puts the data into the INTO or the SET data area. You can katakana characters. That is because katakana
then treat the data as though it had originated from a terminals cannot display mixed-case output. Uppercase
terminal in base (unpartitioned) state. characters in the data stream appear as uppercase
English characters, but lowercase characters appear as
Following a RECEIVE PARTN command, the inbound cursor katakana characters. If this happens, ask your system
position is placed in EIBCPOSN, and the terminal attention programmer to specify MSGCASE=UPPER in the
identifier (AID) placed in EIBAID. EIBAID and EIBCPOSN system initialization parameters so that messages
are also updated at task initiation for non-ATI tasks as well contain uppercase characters only.
as after each terminal control and BMS input.
INTO(data-area)
See Appendix K, “BMS macro summary” on page 381 for specifies the area into which the input data stripped of
map definitions. partition controls is to be written. The length of this area
must be specified by the LENGTH option. If the area is
If data is to be received, you must specify either the INTO or not large enough to hold the input data, the input data is
the SET option. If a RECEIVE is issued purely to detect an truncated, and the LENGERR condition raised. The
attention identifier (AID), you can omit both the INTO and the length option data area is set to the length of data
SET options. received, prior to any truncation.
LENGTH(data-value)
RECEIVE PARTN options specifies the length of the data to be formatted as a
ASIS halfword binary value. It must be set to the length of
specifies that lowercase characters in the 3270 input any INTO area prior to the command. After the
data stream are not translated to uppercase; this allows command, BMS sets the LENGTH option to the length of
the current task to receive a message containing both data received prior to any truncation if the INTO area is
uppercase and lowercase data. too small.
The ASIS option has no effect on the first RECEIVE For a description of a safe upper limit, see “LENGTH
command of a transaction, or if the screen contains data options” on page 5.
prior to a transaction being initiated. For example, if a PARTN(data-area)
transaction is initiated by another transaction, and begins is set to the name (1–2 characters) of the input partition.
by receiving data originally output by that transaction, it | The partition can be defined either by using RDO or by
cannot suppress uppercase translation on the data. This | program autoinstall when the partition is first used.
data is read and translated in preparation for the next
task and the first RECEIVE command in that task SET(ptr-ref)
retrieves the translated data. specifies the pointer that is to be set to the address of
# the 12-byte prefix to the mapped data. The pointer
EOC
occurs if the request/response unit (RU) is received with
the end-of-chain (EOC) indicator set. It applies only to
logical units.
Default action: ignore the condition.
EODS
occurs if no data is received (only an FMH). It applies
only to 3770 batch LUs and to 3770 and 3790 batch
data interchange LUs.
Default action: terminate the task abnormally.
INVPARTN
occurs if the specified partition is not defined in the
partition set associated with the application program.
Default action: terminate the task abnormally.
INVREQ
occurs if a RECEIVE PARTN command is issued in a
nonterminal task; these tasks do not have a TIOA or a
TCTTE.
Default action: terminate the task abnormally.
LENGERR
occurs if the INTO area of a RECEIVE PARTN
command is not large enough to hold the input data.
Default action: truncate the data to fit within the INTO
area.
RELEASE
Function
Release a loaded program, table, or mapset.
Command syntax
──RELEASE──PROGRAM(name)──"
Conditions:
INVREQ, NOTAUTH, PGMIDERR
NOTAUTH
occurs when a resource security check has failed on
PROGRAM(name).
Default action: terminate the task abnormally.
PGMIDERR
occurs in any of the following situations:
RESETBR
Function
Reset start of browse.
Command syntax
──RESETBR──FILE(filename)──RIDFLD(data-area)──┬────────────────────────────────────┬─────────────────────
└─KEYLENGTH(data-value)──┬─────────┬─┘
└─GENERIC─┘
┌─GTEQ──┐
──┬───────────────────┬──┬───────────────────┬──┼───────┼──┬─────┬──"
└─REQID(data-value)─┘ └─SYSID(systemname)─┘ └─EQUAL─┘ ├─RBA─┤
└─RRN─┘
Conditions:
FILENOTFOUND, ILLOGIC, INVREQ, IOERR, ISCINVREQ, NOTAUTH, NOTFND, SYSIDERR
RESETBR specifies, during a browse, the record in a file or that has the same starting characters (generic key) as
data table on a local or a remote system, where you want those specified.
the browse to be repositioned.
GTEQ (VSAM and data table)
When browsing a VSAM file or data table, you can use this specifies that if the search for a record having the same
command not only to reposition the browse (which can be key (complete or generic) as that specified in the
achieved more simply by modifying the RIDFLD data area on RIDFLD option is unsuccessful, the first record having a
a READNEXT or READPREV command), but also to change greater key is retrieved. Use this option only with keyed
its characteristics from those specified on STARTBR, without or RRN.
ending the browse. The characteristics that may be changed
KEYLENGTH(data-value)
are those specified by the GENERIC, GTEQ, and RBA
specifies the length (halfword binary) of the key that has
options.
been specified in the RIDFLD option, except when RBA
or RRN is specified, in which case KEYLENGTH is not
When browsing a BDAM file, you can include this command
valid.
at any time prior to issuing any other browse command. It is
similar to an ENDBR–STARTBR sequence (but with less This option must be specified if GENERIC is specified,
function), and gives the BDAM user the sort of skip and it can be specified whenever a key is specified. If
sequential capability that is available to VSAM users through the length specified is different from the length defined
use of the READNEXT command. for the data set and the operation is not generic, the
INVREQ condition occurs.
RESETBR options The INVREQ condition also occurs if a RESETBR
command specifies GENERIC, and the KEYLENGTH is
EQUAL (VSAM and data table) not less than that specified in the VSAM definition.
specifies that the search is satisfied only by a record
having the same key (complete or generic) as that If KEYLENGTH(0) is used with the object of reading the
specified in the RIDFLD option. first record in the data set, the GTEQ option must also
be specified. If EQUAL is specified either explicitly or by
FILE(filename) default with KEYLENGTH(0), the results of the
specifies the of the file to be accessed. STARTBR are unpredictable.
If SYSID is specified, the data set to which this file refers # RBA (VSAM ESDS, KSDS, or CMT)
is assumed to be on a remote system irrespective of # (base data sets only, not paths)
whether the name is defined in the FCT. Otherwise, the specifies that the record identification field specified in
FCT entry is used to find out whether the data set is on the RIDFLD option contains a relative byte address.
a local or a remote system. Use this option only when browsing a KSDS and using
GENERIC (VSAM KSDS, path or data table) relative byte addresses instead of keys to identify the
specifies that the search key is a generic key whose records.
length is specified in the KEYLENGTH option. The | You cannot use RBA for user-maintained data tables.
search for a record is satisfied when a record is found
ILLOGIC (VSAM)
occurs if a VSAM error occurs that does not fall within
one of the other CICS response categories
(RESP2=110).
# (See EIBRCODE in the EXEC interface block; refer to
Appendix A, “EXEC interface block” on page 343 for
details.)
Default action: terminate the task abnormally.
INVREQ
occurs in any of the following situations:
SYSIDERR
| occurs when the SYSID option specifies a name that is
| neither the local system nor a remote system (made
| known to CICS by defining a CONNECTION).
SYSIDERR also occurs when the link to the remote
system is closed (RESP2=130).
Default action: terminate the task abnormally.
RETRIEVE
Function
Retrieve data stored for a task.
Command syntax
──RETRIEVE──┬────────────────────────────────────────────┬──┬─────────────────────┬──────────────────────
└─┬─INTO(data-area)─┬──┬───────────────────┬─┘ └─RTRANSID(data-area)─┘
| └─SET(ptr-ref)────┘ └─LENGTH(data-area)─┘
──┬────────────────────┬──┬──────────────────┬──┬──────┬──"
└─RTERMID(data-area)─┘ └─QUEUE(data-area)─┘ └─WAIT─┘
Conditions:
ENDDATA, ENVDEFERR, INVREQ, IOERR, LENGERR, NOTFND
RETRIEVE retrieves data stored by expired START Each data record is retrieved from temporary storage using
commands. It is the only method available for accessing the REQID of the original START command as the
such data. identification of the record in temporary storage.
A task that is not associated with a terminal can access only When all expired data records have been retrieved, the
the single data record associated with the original START ENDDATA condition occurs. The storage occupied by the
command; it does so by issuing a RETRIEVE command. single data record associated with a START command is
The storage occupied by the data associated with the task is released after the data has been retrieved by a RETRIEVE
command; any storage occupied by data that has not been
# Apar PN92143 retrieved is released when the CICS system is terminated.
# Documentation for Apar PN92143 added 28/02/97
If the retrieved data contains FMHs (Function Management
Headers), as specified by the FMH option on the associated
# normally released on execution of the RETRIEVE command, START command, field EIBFMH in the EIB is set to X'FF'.
or on termination of the task if no RETRIEVE command is If no FMH is present, EIBFMH is set to X'00'.
executed prior to termination.
The following example shows how to retrieve data stored by
# Apar PN92143 a START command for the task, and store it in the
user-supplied data area called DATAFLD.
# Documentation for Apar PN92143 added 28/02/97
EXEC CICS RETRIEVE
INTO(DATAFLD)
# If the START command specified ATTACH, the storage is LENGTH(LENG)
# not released, the SET option must be used and the length of
# the data is not returned because it is not known. The INTO The following example shows how to request retrieval of a
# option in these circumstances causes the INVREQ condition data record stored for a task into a data area provided by
# (ASSIGN STARTCODE returns 'U' rather than 'S' or 'SD'). CICS; the pointer reference (PREF) specified by the SET
option is set to the address of the storage area reserved for
A task that is associated with a terminal can access all data the data record.
records associated with all expired START commands having EXEC CICS RETRIEVE
the same transaction identifier and terminal identifier as this SET(PREF)
task, that is the task issuing the RETRIEVE command; it LENGTH(LENG)
does so by issuing consecutive RETRIEVE commands.
Expired data records are presented to the task on request in
expiration-time sequence, starting with any data stored by RETRIEVE options
the command that started the task, and including data from
any commands that have expired since the task started.
QUEUE(data-area)
specifies the 8-character area for the temporary storage
queue name that may be accessed by the transaction
issuing the RETRIEVE command.
RTERMID(data-area)
specifies a 4-character area that can be used in the
TERMID option of a START command that may be
executed subsequently.
RTRANSID(data-area)
specifies a 4-character area that can be used in the
TRANSID option of a START command that may be
executed subsequently.
SET(ptr-ref)
specifies the pointer reference to be set to the address
of the retrieved data.
If DATALOCATION(ANY) is associated with the
application program, the address of the data may be
above or below the 16MB line.
If DATALOCATION(BELOW) is associated with the
application program, and the data resides above the
16MB line, the data is copied below the 16MB line, and
the address of this copy is returned.
If TASKDATAKEY(USER) is specified for the running
task, and storage protection is active, the data returned
is in a user-key. If TASKDATAKEY(CICS) is specified
and storage protection is active, the data returned is in a
CICS-key.
| If you use SET you must also include LENGTH.
WAIT
specifies that, if all expired data records have already
been retrieved, the task is to be put into a wait state until
further expired data records become available. Although
this means that the ENDDATA condition is not raised at
the time the RETRIEVE command is issued, it is raised
ENVDEFERR
occurs when a RETRIEVE command specifies an option
not specified by the corresponding START command.
Default action: terminate the task abnormally.
INVREQ
occurs if the RETRIEVE command is not valid for
processing by CICS.
Default action: terminate the task abnormally.
IOERR
occurs if an input/output error occurs during a
RETRIEVE operation. The operation can be retried by
reissuing the RETRIEVE command.
Default action: terminate the task abnormally.
LENGERR
occurs if the length specified is less than the actual
length of the stored data.
Default action: terminate the task abnormally.
RETURN
Function
Return program control.
Command syntax
──RETURN──┬───────────────────────────────────────────────────────────────────────────────┬──────────────
└─TRANSID(name)──┬─────────────────────────────────────────────┬──┬───────────┬─┘
└─COMMAREA(data-area)──┬────────────────────┬─┘ └─IMMEDIATE─┘
└─LENGTH(data-value)─┘
──┬──────────────────────────────────────────────────┬──"
└─INPUTMSG(data-area)──┬─────────────────────────┬─┘
└─INPUTMSGLEN(data-value)─┘
Conditions:
INVREQ, LENGERR
RETURN returns control from an application program either This option is valid only on a RETURN command issued
to an application program at the next higher logical level, or by a program at the highest logical level, that is, a
to CICS. program returning control to CICS.
REWRITE
Function
Update a record in a file.
Command syntax
──REWRITE──FILE(filename)──┬───────────────────┬──FROM(data-area)──┬────────────────────┬────────────────
| └─TOKEN(data-value)─┘ └─LENGTH(data-value)─┘
──┬───────────────────┬──"
└─SYSID(systemname)─┘
Conditions:
DUPREC, FILENOTFOUND, ILLOGIC, INVREQ, IOERR, ISCINVREQ, LENGERR, NOSPACE, NOTAUTH,
NOTFND, SYSIDERR
REWRITE updates a record in a file on a local or a remote This option must also be specified for a file defined as
system. You must always precede this command with a | containing variable-length records; which includes
READ UPDATE to read the record to be updated. | user-maintained data tables. It need not be specified if
the file contains fixed-length records. You are
For example: recommended to include it, however, because it causes
EXEC CICS REWRITE a check to be made to ensure that the length of data
FROM(RECORD) being written is equal to that defined for the data set. If
FILE('MASTER') the lengths are not equal, the LENGERR condition
For VSAM data sets, you must not change the key field in occurs.
the record. SYSID(systemname)
specifies the name of the system to which the request is
When this command is used to update a record in a
directed.
CICS-maintained data table, the update is made to both the
source VSAM KSDS and the in-memory data table. The | TOKEN(data-value)
details of the command for a CICS-maintained table are the # specifies as a fullword binary value a unique request
same as for a VSAM KSDS. | identifier for a REWRITE, used to associate it with a
| previous READ UPDATE request.
| When this command is used to update a record in a
| user-maintained data table, the update is made to the
| in-memory data table. REWRITE conditions
Note: RESP2 values are not set for files that are on remote
REWRITE options systems.
FILE(filename) DUPREC
specifies the of the file to be accessed. occurs when an attempt is made to rewrite a record to a
data set whose upgrade set has an alternate index with
If SYSID is specified, the data set to which this file refers the UNIQUEKEY attribute, if the corresponding alternate
is assumed to be on a remote system irrespective of key already exists in the alternate index (RESP2=150).
whether the name is defined in the FCT. Otherwise, the
FCT entry is used to find out whether the data set is on Default action: terminate the task abnormally.
a local or a remote system. FILENOTFOUND
FROM(data-area) occurs if a file name referred to in the FILE option
specifies the record that is to be written to the data set cannot be found in the FCT (RESP2=1).
referred to by this file. Default action: terminate the task abnormally.
LENGTH(data-value) ILLOGIC (VSAM)
specifies the actual length, as a halfword binary value, of occurs if a VSAM error occurs that does not fall within
the record to be written. one of the other CICS response categories
This option must be specified if SYSID is specified. (RESP2=110).
# (See EIBRCODE in the EXEC interface block; refer to # This may be caused by a logic error in the
Appendix A, “EXEC interface block” on page 343 for # application program.
details.)
# Default action: terminate the task abnormally.
Default action: terminate the task abnormally. NOSPACE
occurs if no space is available on the direct access
INVREQ
device for adding the updated record to the data set
occurs in any of the following situations:
| (RESP2=100). For user-maintained data tables, this
| A REWRITE command is issued without a token | condition occurs if CICS is unable to get sufficient
| and no previous READ for UPDATE (also without a | storage in the CICS address space to store the updated
| token) can be found (RESP2=30). | data table entry (RESP2=103).
A REWRITE command has attempted to change the Default action: terminate the task abnormally.
length of a BDAM variable length record or block
NOTAUTH
(RESP2=46).
occurs when a resource security check has failed on
| A REWRITE instruction includes a token whose FILE(filename) (RESP2=101).
| value cannot be matched against any token in use
Default action: terminate the task abnormally.
| for an existing READ for UPDATE request
| (RESP2=47). SYSIDERR
| occurs when the SYSID option specifies a name that is
| An attempt is made to function-ship a request which
| neither the local system nor a remote system (made
| includes a TOKEN keyword (RESP2=48).
| known to CICS by defining a CONNECTION).
Default action: terminate the task abnormally. SYSIDERR also occurs when the link to the remote
system is closed (RESP2=130).
IOERR
occurs if there is an I/O error during the file control Default action: terminate the task abnormally.
operation (RESP2=120). An I/O error is any unusual
event that is not covered by a CICS condition.
For VSAM files, IOERR normally indicates a hardware
error.
(Further information is available in the EXEC interface
block; refer to Appendix A, “EXEC interface block” on
page 343 for details.)
Default action: terminate the task abnormally.
ISCINVREQ
occurs when the remote system indicates a failure that
does not correspond to a known condition (RESP2=70).
Default action: terminate the task abnormally.
LENGERR
occurs in any of the following situations:
ROUTE
Function
Route a BMS message. (This command is only available on full BMS. The CICS/ESA Application Programming Guide has
further information about BMS.)
Command syntax
┌─INTERVAL()──────────────────────┐
──ROUTE──┼──────────────────────────────────┼──┬─────────────────────┬──┬──────────────────┬─────────────
├─INTERVAL(hhmmss)─────────────────┤ └─ERRTERM──┬────────┬─┘ └─TITLE(data-area)─┘
├─TIME(hhmmss)─────────────────────┤ └─(name)─┘
│ ┌──
───────────────────────┐ │
| *
├─AFTER───┬─HOURS(data-value)───┬┴─┤
| │ ├─MINUTES(data-value)─┤ │
| │ └─SECONDS(data-value)─┘ │
│ ┌──
───────────────────────┐ │
| └─AT───*┬─HOURS(data-value)───┬┴────┘
| ├─MINUTES(data-value)─┤
| └─SECONDS(data-value)─┘
──┬─────────────────┬──┬────────────────────┬──┬─────────────┬──┬───────────┬──┬───────┬──"
└─LIST(data-area)─┘ └─OPCLASS(data-area)─┘ └─REQID(name)─┘ └─LDC(name)─┘ └─NLEOM─┘
Conditions:
INVERRTERM, INVLDC, INVREQ, RTEFAIL, RTESOME
ROUTE routes a BMS logical message to one or more This option is effective only if PRGDLAY has been
terminals or terminal operators. specified in the system initialization parameters.
the local LDC table, unless this is an unextended table The option is ignored if the device receiving the
and the value is not specified, in which case it is taken message (direct or routed) is not one of those mentioned
from the system table. above.
If the LDC option is omitted, the LDC mnemonic If this option is used, buffer updating and attribute
specified in DFHMSD is used; see “DFHMSD” on modification of fields previously written into the buffer are
page 396 for further details. If the LDC option has also not allowed. CICS includes the ERASE option with
been omitted from DFHMSD, the action depends on the every write to the terminal.
type of logical unit, as follows:
The NL character occupies a buffer position. A number
3601 LU of buffer positions, equivalent to the value of the RDO
The first entry in the local or extended local options PAGESIZE or ALTPAGE or the PGESIZE or
LDC table is used, if there is one. If a ALTPGE in the terminal control table for that terminal,
default cannot be obtained in this way, a are unavailable for data. This may cause data to wrap
null LDC numeric value (X'00') is used. around in the buffer; if this occurs, the PGESIZE value
The page size used is the value that is must be reduced.
specified in the terminal control table
OPCLASS(data-area)
TYPE=TERMINAL, or (1,40) if such a value
specifies the data area that contains a list of operator
is not specified.
classes to which the data is to be routed. The classes
LUTYPE4 LU, batch LU, or batch data interchange are supplied in a 3-byte field, each bit position
LU corresponding to one of the codes in the range 1
The local LDC table is not used to supply a through 24 but in reverse order, that is, the first byte
default LDC; instead, the message is corresponds to codes 24 through 17, the second byte to
directed to the LU console. (Here, LU codes 16 through 9, and the third byte to codes 8
console means any medium on which the through 1.
LU elects to receive such messages. For a
REQID(name)
batch data interchange LU, this does not
specifies a prefix (2–character field) to be used as part
imply sending an LDC in an FMH). The
of a temporary storage identifier for CICS message
page size is obtained in the manner
recovery. Only one prefix can be specified for each
described for the 3601 LU.
logical message. The default prefix is **.
For message routing, the LDC option of the ROUTE
BMS message recovery is provided for a logical
command takes precedence over all other sources. If
message only if the PAGING option is specified in the
this option is omitted and a route list is specified (LIST
BMS SEND commands, and if the syncpoint has been
option), the LDC mnemonic in the route list is used; if
reached.
the route list contains no LDC mnemonic, or no route list
is specified, a default LDC is chosen as described | SECONDS(data-value)
above. | specifies a fullword binary value in the range 0–59, when
| HOURS or MINUTES are also specified, or 0–359 999
LIST(data-area)
| when SECONDS is the only option specified. This is a
specifies the data area that contains a list of terminals
suboption of the AFTER and AT options. For its use
and operators to which data is to be directed. If this
and meaning, see the AFTER option.
option is omitted, all terminals supported by BMS receive
the data (unless the OPCLASS option is in effect). See TIME(hhmmss)
the CICS/ESA Application Programming Guide for the specifies the time of day at which data is to be
format of the route list. transmitted to the terminals specified in the ROUTE
command.
| MINUTES(data-value)
specifies a fullword binary value in the range 0–59, when | When using the C language, you are recommended to
HOURS or SECONDS are also specified, or 0–5999 | use the AFTER/AT HOURS, MINUTES, and SECONDS
when MINUTES is the only option specified. This is a | options as C does not provide a packed decimal data
suboption of the AFTER and AT options. For its use | type. You may use TIME, but if the value specified is
and meaning, see the AFTER option. | not an integer constant, the application is responsible for
| ensuring that the value passed to CICS is in packed
NLEOM | decimal format.
specifies that data for a 3270 printer or a 3275 display
with the printer adapter feature should be built with
blanks and new-line (NL) characters, and that an
end-of-message (EM) character should be placed at the
end of the data. As the data is printed, each NL
character causes printing to continue on the next line,
and the EM character terminates printing.
TITLE(data-area)
specifies the data area that contains the title to be used
with a routing logical message. This title appears as
part of the response to a page query command. See
the CICS/ESA Application Programming Guide for the
format of the title option.
ROUTE conditions
INVERRTERM
occurs if the terminal identifier specified in the
ERRTERM option is not valid or is assigned to a type of
terminal not supported by BMS.
Default action: terminate the task abnormally.
INVLDC
occurs if the specified LDC mnemonic is not included in
the LDC list for the logical unit.
Default action: terminate the task abnormally.
INVREQ
occurs if a request for BMS services is not valid for any
of the following reasons:
RTEFAIL
occurs in any of the following situations:
RTESOME
occurs if any of the terminals specified by the ROUTE
command options do not receive the message.
Default action: return control to the application program
at the point immediately following the ROUTE command.
Function
Write data to a standard CICS supported terminal (BTAM or TCAM).
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬────────────┬──┬──────┬──"
└─FLENGTH(data-value)─┘ └─DEST(name)─┘ └─WAIT─┘
Conditions:
INVREQ, LENGERR, NOTALLOC
SEND writes data to a terminal. This form of the send command can be used by all CICS-supported terminals for which the
other SEND descriptions are not appropriate.
SEND (APPC)
Function
Send data on an APPC mapped conversation.
Command syntax
──SEND──┬──────────────┬──┬──────────────────────────────────────────┬──┬────────┬──┬─────────┬──────────
└─CONVID(name)─┘ └─FROM(data-area)──┬─LENGTH(data-value)──┬─┘ ├─INVITE─┤ ├─CONFIRM─┤
└─FLENGTH(data-value)─┘ └─LAST───┘ └─WAIT────┘
──┬─────────────┬──"
└─STATE(cvda)─┘
Conditions:
INVREQ, LENGERR, NOTALLOC, SIGNAL, TERMERR
SEND (LUTYPE2/LUTYPE3)
Function
Write data to a 3270-display logical unit (LUTYPE2) or a 3270-printer logical unit (LUTYPE3).
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬───────────────────────────────────
└─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤
└─LAST───┘
──┬─┬──────────────────────┬──┬─────────────────────┬─┬──┬─────────┬──"
│ └─ERASE──┬───────────┬─┘ └─CTLCHAR(data-value)─┘ │ └─DEFRESP─┘
| │ ├─DEFAULT───┤ │
| │ └─ALTERNATE─┘ │
└─STRFIELD──────────────────────────────────────────┘
Conditions:
INVREQ, LENGERR, TERMERR
SEND (LUTYPE4)
Function
Write data to a LUTYPE4 logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬──┬───────────┬──┬─────┬──"
| └─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤ ├─CNOTCOMPL─┤ └─FMH─┘
└─LAST───┘ └─DEFRESP───┘
Conditions:
INVREQ, IGREQCD, LENGERR, SIGNAL, TERMERR
SEND (LUTYPE6.1)
Function
Send data on an LUTYPE6.1 conversation.
Command syntax
──SEND──┬───────────────┬──┬──────┬──┬────────┬──┬────────────────┬──┬─────────────────┬─────────────────
└─SESSION(name)─┘ └─WAIT─┘ ├─INVITE─┤ └─ATTACHID(name)─┘ └─FROM(data-area)─┘
└─LAST───┘
──┬─────────────────────┬──┬─────┬──┬─────────┬──"
├─LENGTH(data-value)──┤ └─FMH─┘ └─DEFRESP─┘
└─FLENGTH(data-value)─┘
Conditions:
CBIDERR, INVREQ, LENGERR, NOTALLOC, SIGNAL, TERMERR
SEND (SCS)
Function
Write data to a 3270 SCS printer logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬──┬───────────┬──┬──────────┬──────
└─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤ ├─CNOTCOMPL─┤ └─STRFIELD─┘
└─LAST───┘ └─DEFRESP───┘
──┬─────┬──"
└─FMH─┘
Conditions:
INVREQ, LENGERR, TERMERR
SEND writes data to a logical unit. The SCS printer logical unit accepts a character string as defined by Systems Network
Architecture (SNA).
Function
Write data to a 3270 logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬───────────────────────────────────
└─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤
└─LAST───┘
──┬─┬──────────────────────┬──┬─────────────────────┬─┬──┬─────────┬──"
│ └─ERASE──┬───────────┬─┘ └─CTLCHAR(data-value)─┘ │ └─DEFRESP─┘
| │ ├─DEFAULT───┤ │
| │ └─ALTERNATE─┘ │
└─STRFIELD──────────────────────────────────────────┘
Conditions:
INVREQ, LENGERR, TERMERR
Function
Write data to a 3600 pipeline logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘
Conditions:
INVREQ, LENGERR, TERMERR
SEND (3600-3601)
Function
Write data to a 3600 (3601) logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬───────────┬──┬──────┬──┬────────┬──┬───────────┬──"
└─FLENGTH(data-value)─┘ ├─LDC(name)─┤ └─WAIT─┘ ├─INVITE─┤ ├─CNOTCOMPL─┤
└─FMH───────┘ └─LAST───┘ └─DEFRESP───┘
Conditions:
INVREQ, LENGERR, SIGNAL, TERMERR
SEND writes data to a terminal. This form of SEND also applies to the 4700 and the 3630 plant communication system.
A logical device code (LDC) is a code that can be included in an outbound FMH to specify the disposition of the data (for
example, to which subsystem terminal it should be sent). Each code can be represented by a unique LDC mnemonic.
The installation can specify up to 256 2-character mnemonics for each TCTTE, and two or more TCTTEs can share a list of
these mnemonics. Corresponding to each LDC mnemonic for each TCTTE is a numeric value (0 through 255).
A 3600 device and a logical page size are also associated with an LDC. “LDC” or “LDC value” is used in this book in
reference to the code specified by the user. “LDC mnemonic” refers to the 2-character symbol that represents the LDC
numeric value.
When the LDC option is specified, the numeric value associated with the mnemonic for the particular TCTTE, is inserted in the
FMH. The numeric value associated with the LDC mnemonic is chosen by the installation, and is interpreted by the 3601
application program.
# On output, the FMH can be built by the application program or by CICS. If your program supplies the FMH, you place it at the
# front of your output data and specify the FMH option on your SEND command. If you omit the FMH option, CICS will provide
# an FMH but you must reserve the first three bytes of the message for CICS to fill in.
SEND (3600-3614)
Function
Write data to a 3600 (3614) logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬──┬───────────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤ ├─CNOTCOMPL─┤
└─LAST───┘ └─DEFRESP───┘
Conditions:
INVREQ, LENGERR, TERMERR
SEND writes data to a terminal. The data stream and communication format used between a CICS application program and a
3614 is determined by the 3614. The application program is therefore device dependent when handling 3614 communication.
For further information about designing 3614 application programs for CICS, refer to the CICS/OS/VS IBM 4700/3600/3630
Guide.
Function
Write data to a 3650 interpreter logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬──┬─────────┬──┬─────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤ └─DEFRESP─┘ └─FMH─┘
└─LAST───┘
Conditions:
INVREQ, LENGERR, TERMERR
SEND (3650-3270)
Function
Write data to a 3650 logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬─────────────────────┬──┬──────┬──────────────────────
└─FLENGTH(data-value)─┘ └─CTLCHAR(data-value)─┘ └─WAIT─┘
──┬──────────────────────┬──┬────────┬──┬───────────┬──┬─────┬──"
└─ERASE──┬───────────┬─┘ ├─INVITE─┤ ├─CNOTCOMPL─┤ └─FMH─┘
| ├─DEFAULT───┤ └─LAST───┘ └─DEFRESP───┘
| └─ALTERNATE─┘
Conditions:
INVREQ, LENGERR, TERMERR
SEND (3650-3653)
Function
Write data to a 3650 (3653) logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬──┬───────────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤ ├─CNOTCOMPL─┤
└─LAST───┘ └─DEFRESP───┘
Conditions:
INVREQ, LENGERR, TERMERR
SEND (3650-3680)
Function
Write data to a 3650 (3680) logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬──┬───────────┬──┬─────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤ ├─CNOTCOMPL─┤ └─FMH─┘
└─LAST───┘ └─DEFRESP───┘
Conditions:
INVREQ, LENGERR, TERMERR
SEND (3767)
Function
Write data to a 3767 interactive logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬──┬───────────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤ ├─CNOTCOMPL─┤
└─LAST───┘ └─DEFRESP───┘
Conditions:
INVREQ, LENGERR, SIGNAL, TERMERR
SEND writes data to a terminal. This form of SEND also applies to the 3770 interactive logical unit.
SEND (3770)
Function
Write data to a 3770 batch logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬──┬───────────┬──┬─────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤ ├─CNOTCOMPL─┤ └─FMH─┘
└─LAST───┘ └─DEFRESP───┘
Conditions:
INVREQ, LENGERR, SIGNAL, TERMERR
Function
Write data to a 3790 full-function or inquiry logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬──┬───────────┬──┬─────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤ ├─CNOTCOMPL─┤ └─FMH─┘
└─LAST───┘ └─DEFRESP───┘
Conditions:
INVREQ, LENGERR, SIGNAL, TERMERR
SEND writes data to a terminal. This form of SEND also applies to the following devices:
3650/3680 full-function logical unit
3770 full-function logical unit.
Function
Write data to a 3790 SCS printer logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬────────┬──┬───────────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘ ├─INVITE─┤ ├─CNOTCOMPL─┤
└─LAST───┘ └─DEFRESP───┘
Conditions:
INVREQ, LENGERR, TERMERR
Function
Write data to a 3790 (3270-display) logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬─────────────────────┬──┬──────┬──────────────────────
└─FLENGTH(data-value)─┘ └─CTLCHAR(data-value)─┘ └─WAIT─┘
──┬──────────────────────┬──┬────────┬──┬─────────┬──"
| └─ERASE──┬───────────┬─┘ ├─INVITE─┤ └─DEFRESP─┘
| ├─DEFAULT───┤ └─LAST───┘
| └─ALTERNATE─┘
Conditions:
INVREQ, LENGERR, TERMERR
Function
Write data to a 3790 (3270-printer) logical unit.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬─────────────────────┬──┬──────┬──────────────────────
└─FLENGTH(data-value)─┘ └─CTLCHAR(data-value)─┘ └─WAIT─┘
──┬──────────────────────┬──┬────────┬──┬─────────┬──"
| └─ERASE──┬───────────┬─┘ ├─INVITE─┤ └─DEFRESP─┘
| ├─DEFAULT───┤ └─LAST───┘
| └─ALTERNATE─┘
Conditions:
INVREQ, LENGERR, TERMERR
SEND (VTAM) options option is meaningful only for terminals defined using
DFHTCT TYPE=SDSCI with DEVICE=TCAM.
| ALTERNATE
If you use the DEST option, you must be aware of any
| sets the terminal to use the ALTERNATE screen size.
restrictions placed on device-dependent data streams by
ATTACHID(name) the message control facility in use. See the
specifies that an attach header (created by a BUILD programming information about the CICS-TCAM
ATTACH command) is to precede, and be concatenated interface in the CICS/ESA Customization Guide.
with, the user data supplied in the FROM option.
ERASE
“name” (1–8 characters) identifies the attach header
specifies that the screen printer buffer or partition is to
control block to be used in the local task.
be erased and the cursor returned to the upper left
CNOTCOMPL corner of the screen. (This option applies only to the
indicates that the request/response unit (RU) sent as a 3270, or 8775, and to the 3604 Keyboard Display.)
result of this SEND command does not complete the The first output operation in any transaction, or in a
chain. If this option is omitted and chain assembly has series of pseudoconversational transactions, should
been specified, the RU terminates the chain. always specify ERASE. For transactions attached to
CONFIRM | 3270 screens or printers, unless explicitly overridden by
indicates that an application using a synchronization | the DEFAULT or ALTERNATE option, this also ensures
level 1 or 2 conversation requires a response from the that the correct screen size is selected, as defined for
remote application. A remote CICS application can the transaction by the SCRNSIZE option in the profile
respond positively by executing an ISSUE definition.
CONFIRMATION command, or negatively, by executing FLENGTH(data-value)
an ISSUE ERROR command, in which case the sending A fullword alternative to LENGTH.
application has EIBERR and EIBERRCD set. CICS
does not return control to the sending application until FMH
the response is received. specifies that a function management header has been
included in the data to be written. If the ATTACHID
CONVID(name) option is specified as well, the concatenated FMH flag is
identifies the conversation to which the command # set in the attach FMH. The use of FMH is optional and
relates. The 4-character name identifies either the token # is not supported for all terminal types. If not supplied,
returned by a previously executed ALLOCATE command # CICS takes no action, except for 3600/4700 terminals,
in EIBRSRCE in the EIB, or the token representing the # where an FMH is mandatory. In this case, if FMH is not
principal session (returned by a previously executed # specified, CICS supplies one and places it in the first 3
ASSIGN command). # bytes of the message, which you must reserve for this
For compatibility with earlier releases, SESSION is # purpose.
accepted as a synonym for CONVID. New programs
FROM(data-area)
should use CONVID.
FROM(data-area)
If this option is omitted, the principal facility is assumed. specifies the data to be written to the logical unit, or a
partner transaction.
CTLCHAR(data-value)
specifies a 1-byte write control character (WCC†) that INVITE
controls a SEND command for a 3270. A COBOL user allows an application program to add control data to data
must specify a data area containing this character. If the already sent to a process in a connected APPC system.
option is omitted, all modified data tags are reset to zero Control data is not transmitted by CICS until the
and the keyboard is restored. subsequent execution of a WAIT or a SYNCPOINT
command, unless CONFIRM or WAIT is also specified;
| DEFAULT
or specifies that the next terminal control command to be
| sets the terminal to use the DEFAULT screen size.
executed for this facility is a RECEIVE, this allows
DEFRESP optimal flows to occur.
indicates that a definite response is required when the
LAST
output operation has been completed.
specifies that this is the last SEND command for a
DEST(name) transaction.
specifies the 4-byte symbolic name of the TCAM
destination to which the message is to be sent. This
TERMERR
occurs for a session-related error. Any action on that
conversation other than a FREE causes an ATCV
abend.
A CANCEL TASK request by a user node error program
(NEP) may cause this condition if the task has an
outstanding terminal control request active when the
node abnormal condition program handles the session
error.
Default action: terminate the task abnormally with abend
code ATNI.
Function
Write data to a standard CICS terminal support (BTAM or TCAM).
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬────────────┬──┬──────┬──"
└─FLENGTH(data-value)─┘ └─DEST(name)─┘ └─WAIT─┘
Conditions:
INVREQ, LENGERR, NOTALLOC
SEND writes data to a terminal. This form of the send command can be used by all CICS-supported terminals for which the
other SEND descriptions are not appropriate.
SEND (MRO)
Function
Send data on an MRO conversation.
Command syntax
──SEND──┬───────────────┬──┬──────┬──┬────────┬──┬────────────────┬──┬─────────────────┬─────────────────
└─SESSION(name)─┘ └─WAIT─┘ ├─INVITE─┤ └─ATTACHID(name)─┘ └─FROM(data-area)─┘
└─LAST───┘
──┬─────────────────────┬──┬─────┬──┬─────────┬──┬─────────────┬──"
├─LENGTH(data-value)──┤ └─FMH─┘ └─DEFRESP─┘ └─STATE(cvda)─┘
└─FLENGTH(data-value)─┘
Conditions:
CBIDERR, INVREQ, LENGERR, NOTALLOC, TERMERR
SEND (System/3)
Function
Write data to a System/3.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬────────────┬──┬──────┬──┬──────┬──┬───────────┬──"
└─FLENGTH(data-value)─┘ └─DEST(name)─┘ └─WAIT─┘ └─ASIS─┘ └─CNOTCOMPL─┘
Conditions:
INVREQ, LENGERR
SEND writes data to a terminal. This form of the SEND command also applies to the following devices:
2770 data communication system
2780 data transmission terminal
3660 supermarket scanning system
3780 communication terminal.
SEND (System/7)
Function
Write data to a System/7.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬────────────┬──┬──────┬──┬───────────┬──┬──────┬──"
└─FLENGTH(data-value)─┘ └─DEST(name)─┘ └─WAIT─┘ └─PSEUDOBIN─┘ └─ASIS─┘
Conditions:
INVREQ, LENGERR
SEND writes data to a terminal. For a description of running with a System/7, see “CONVERSE (System/7)” on page 54.
SEND (2260)
Function
Write data to a 2260 or 2265 display station.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬─────────────────────┬──┬────────────┬────────────────
└─FLENGTH(data-value)─┘ └─CTLCHAR(data-value)─┘ └─DEST(name)─┘
──┬──────────────────────┬──┬──────┬──┬─────────┬──"
└─LINEADDR(data-value)─┘ └─WAIT─┘ └─LEAVEKB─┘
Conditions:
INVREQ, LENGERR
SEND (2741)
Function
Write data to a 2741 communication terminal.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬────────────┬──┬──────┬──"
└─FLENGTH(data-value)─┘ └─DEST(name)─┘ └─WAIT─┘
Conditions:
INVREQ, LENGERR, WRBRK
SEND writes data to a terminal. For more information about using a 2741 communication terminal, see “CONVERSE (2741)”
on page 56.
SEND (2980)
Function
Write data to a 2980 general banking terminal system.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬────────────┬──┬─PASSBK─┬──"
└─FLENGTH(data-value)─┘ └─DEST(name)─┘ └─CBUFF──┘
Conditions:
INVREQ, LENGERR, NOPASSBKWR
SEND writes data to a terminal. For more information about the 2980 general banking system, see “RECEIVE (2980)” on
page 213.
Function
Write data to a 3270 information display system (BTAM or TCAM).
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬────────────┬──┬──────┬───────────────────────────────
└─FLENGTH(data-value)─┘ └─DEST(name)─┘ └─WAIT─┘
──┬─┬──────────────────────┬──┬─────────────────────┬─┬──"
│ └─ERASE──┬───────────┬─┘ └─CTLCHAR(data-value)─┘ │
| │ ├─DEFAULT───┤ │
| │ └─ALTERNATE─┘ │
└─STRFIELD──────────────────────────────────────────┘
Conditions:
INVREQ, LENGERR
Function
| Write data to a 3600 or 4700 finance communication system (BTAM) - only valid for remote terminals. See “BTAM
| programmable terminals” on page 358.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬──────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘ └─ASIS─┘
Conditions:
INVREQ, LENGERR
| SEND writes data to a terminal. This form of the SEND command also applies to the 4700 finance communication system.
| For more information about using the 3600 or 4700 finance communication system, see “CONVERSE (3600 BTAM)” on
| page 58.
SEND (3735)
Function
Write data to a 3735 Programmable Buffered Terminal.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬──────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘ └─ASIS─┘
Conditions:
INVREQ, LENGERR
SEND writes data to a terminal. The 3735 Programmable Buffered Terminal may be serviced by CICS in response to
terminal-initiated input (automatic answering), or as a result of an automatic (automatic calling) or time-initiated transaction.
For more information about the 3735, see “CONVERSE (3735)” on page 60.
SEND (3740)
Function
Write data to a 3740 data entry system.
Command syntax
──SEND──FROM(data-area)──┬─LENGTH(data-value)──┬──┬──────┬──┬──────┬──"
└─FLENGTH(data-value)─┘ └─WAIT─┘ └─ASIS─┘
Conditions:
INVREQ, LENGERR
SEND writes data to a terminal. In batch mode, many files are exchanged between the 3740 and CICS in a single
transmission. The transmission of an input batch must be complete before an output transmission can be started.
SEND (non-VTAM) options If you use the DEST option, you must be aware of any
restrictions placed on device-dependent data streams by
| ALTERNATE the message control facility in use. See the
| sets the terminal to use the ALTERNATE screen size. programming information about the CICS-TCAM
interface in the CICS/ESA Customization Guide
ASIS
indicates that output is to be sent in transparent mode ERASE
(with no recognition of control characters and accepting specifies that the screen printer buffer or partition is to
any of the 256 possible combinations of eight bits as be erased and the cursor returned to the upper left
valid transmittable data). corner of the screen. (This option applies only to the
Note: If you are using a katakana terminal, you might 3270, or 8775, and to the 3604 Keyboard Display.)
see some messages containing mixed English and The first output operation in any transaction, or in a
katakana characters. That is because katakana series of pseudoconversational transactions, should
terminals cannot display mixed-case output. Uppercase always specify ERASE. For transactions attached to
characters in the data stream appear as uppercase | 3270 screens or printers, unless explicitly overridden by
English characters, but lowercase characters appear as | the DEFAULT or ALTERNATE option, this also ensures
katakana characters. If this happens, ask your system that the correct screen size is selected, as defined for
programmer to specify MSGCASE=UPPER in the | the transaction by the SCRNSIZE option in the profile
system initialization parameters so that messages | definition.
contain uppercase characters only.
FLENGTH(data-value)
ATTACHID(name) A fullword alternative to LENGTH.
specifies that an attach header (created by a BUILD
ATTACH command) is to precede, and be concatenated FMH
with, the user data supplied in the FROM option. specifies that a function management header has been
“name” (1–8 characters) identifies the attach header included in the data to be written. If the ATTACHID
control block to be used in the local task. option is specified as well, the concatenated FMH flag is
set in the attach FMH.
CBUFF
specifies that data is to be written to a common buffer in FROM(data-area)
a 2972 control unit. The WAIT option is implied. specifies the data to be written to the logical unit or
terminal.
CNOTCOMPL
indicates that the request/response unit (RU) sent as a INVITE
result of this SEND command does not complete the specifies that the next terminal control command to be
chain. If this option is omitted and chain assembly has executed for this facility is a RECEIVE. This allows
been specified, the RU terminates the chain. optimal flows to occur.
CTLCHAR(data-value) LAST
specifies a 1-byte write control character (WCC†) that specifies that this is the last output operation for a
controls a SEND command for a 3270. A COBOL user transaction and therefore the end of a bracket.
must specify a data area containing this character. If the LEAVEKB
option is omitted, all modified data tags are reset to zero specifies that the keyboard is to remain locked at the
and the keyboard is restored. completion of the data transfer.
| DEFAULT LENGTH(data-value)
| sets the terminal to use the DEFAULT screen size. specifies the length, as a halfword binary value, of the
DEFRESP data to be written. For a description of a safe upper
indicates that a definite response is required when the limit, see “LENGTH options” on page 5.
output operation has been completed. LINEADDR(data-value)
DEST(name) specifies that the writing is to begin on a specific line of
specifies the 4-byte symbolic name of the TCAM a 2260/2265 screen. The data value is a halfword
destination to which the message is to be sent. This binary value in the range 1 through 12 for a 2260, or 1
option is meaningful only for terminals defined using through 15 for a 2265.
DFHTCT TYPE=SDSCI with DEVICE=TCAM.
PASSBK INVREQ
specifies that communication is with a passbook. The | occurs if a distributed program link server application
WAIT option is implied. | attempted to send on its function-shipping session (its
| principal facility) (RESP2=200).
PSEUDOBIN (start-stop only)
specifies that the data being written is to be translated Default action: terminate the task abnormally.
from System/7 hexadecimal to pseudobinary.
LENGERR
SESSION(name) occurs if an out-of-range value is supplied in the
specifies the symbolic identifier (1–4 characters) of a | LENGTH or FLENGTH option.
session TCTTE. This option specifies the alternate Default action: terminate the task abnormally.
facility to be used. If this option is omitted, the principal
facility for the task is used. NOPASSBKWR
occurs if no passbook is present.
STATE(cvda)
| Default action: terminate the task abnormally.
gets the state of the transaction program. The cvda
values returned by CICS are: NOTALLOC
occurs if the facility specified in the command is not
ALLOCATED
owned by the application.
FREE
PENDFREE Default action: terminate the task abnormally.
RECEIVE
ROLLBACK
SEND
SYNCFREE
SYNCRECEIVE
SYNCSEND
STRFIELD
specifies that the data area specified in the FROM
option contains structured fields. If this option is
specified, the contents of all structured fields must be
handled by the application program. The CONVERSE
command, rather than a SEND command, must be used
if the data area contains a read partition structured field.
(Structured fields are described in the CICS/ESA 3270
Data Stream Device Guide.)
CTLCHAR and ERASE are mutually exclusive with
STRFIELD, and their use with STRFIELD generates an
error message.
WAIT
specifies that processing of the command must be
completed before any subsequent processing is
attempted.
If the WAIT option is not specified, control is returned to
the application program when processing of the
command has started. A subsequent input or output
request (terminal control, BMS, or batch data
interchange) to the terminal associated with the task
causes the application program to wait until the previous
request has been completed.
SEND CONTROL
Function
Send device controls to a terminal without map or text data. The keywords are separated into those supported by minimum,
SEND CONTROL
| ALTERNATE FRSET
| sets the terminal to use the ALTERNATE screen size. specifies that the modified data tags (MDTs) of all fields
currently in the 3270 (or partition) buffer are to be reset
CURSOR(data-value)
to the unmodified condition (that is, field reset).
specifies the location to which the 3270 or 3604 cursor
is to be returned on completion of a SEND CONTROL This allows the ATTRB operand of DFHMDF for the next
command. requested map to control the final status of fields written
or rewritten in response to a BMS command, if no other
The data value must be a halfword binary value that
attribute information has been written in the symbolic
specifies the cursor position relative to zero; the range of
map.
values that can be specified depends on the size of the
screen being used. HONEOM
specifies that the default printer line length is to be used.
If ACCUM is being used, the most recent value of
This length should be the same as that specified using
CURSOR specified is used to position the cursor.
the RDO options PAGESIZE or ALTPAGE, or PGESIZE
The value specified in the CURSOR option must be or ALTPGE in the terminal control table
positive. A negative value leads to unpredictable results. TYPE=TERMINAL, and the same as the printer platen
If this option is omitted, the cursor is positioned at width; otherwise the data may not format correctly.
position zero of the screen.
LAST
| DEFAULT specifies that this is the last output operation for a
| sets the terminal to use the DEFAULT screen size. transaction and, therefore, the end of a bracket. This
option applies to logical units only.
ERASE
specifies that the screen printer buffer or partition is to LDC(name)
be erased and the cursor returned to the upper left specifies a 2-character mnemonic to be used to
corner of the screen. (This option applies only to the determine the logical device code (LDC) to be
3270, or 8775, and to the 3604 Keyboard Display.) transmitted in the FMH to the logical unit. The
mnemonic identifies an LDC entry specified in the
The first output operation in any transaction, or in a
terminal control table TYPE=LDC.
series of pseudoconversational transactions, should
always specify ERASE. For transactions attached to When an LDC is specified, BMS uses the device type,
| 3270 screens or printers, unless explicitly overridden by the page size, and the page status associated with the
| the DEFAULT or ALTERNATE option, this also ensures LDC mnemonic to format the message. These values
that the correct screen size is selected, as defined for are taken from the extended local LDC table for the LU,
| the transaction by the SCRNSIZE option in the profile if it has one. If the LU has only a local (unextended)
| definition. LDC table, the values are taken from the system LDC
table. The numeric value of the LDC is obtained from
ERASEAUP the local LDC table, unless this is an unextended table
specifies that all unprotected character locations in the and the value is not specified, in which case it is taken
partition or the entire screen are to be erased. (This from the system table.
option applies only to the 3270 and 8775.)
| L40, L64, or L80
FORMFEED specifies the line length for a 3270 printer; a carrier
specifies that a new page is required. For 3270 printers return and line feed are forced after 40, 64, or 80
and displays, the FORMFEED character is positioned at characters have been printed on a line. Unacceptable
the start of the buffer. The application program must results are likely if this differs from the page width
thus ensure that this buffer position is not overwritten by specified by the RDO options PAGESIZE or ALTPAGE,
map or text data. It is ignored if the target terminal does or the PGESIZE or ALTPGE in the terminal control table
not support FORMFEED (that is, the RDO option TYPE=TERMINAL.
FORMFEED was not used, or the terminal control table
| When using the options, refer to CTRL on page 391 for
TYPE=TERMINAL does not specify FF=YES).
| a description of the option priority.
FREEKB
MSR(data-value)
specifies that the 3270 keyboard is to be unlocked. If
specifies the 4-byte data value that controls the 10/63
FREEKB is omitted, the keyboard remains locked.
magnetic stripe reader attached to an 8775 or 3643
Note that the keyboard lock status is maintained terminal. A set of constants is provided in DFHMSRCA
separately for each partition on a terminal that supports to assist in setting this 4-byte area. See “Magnetic slot
partitions. reader (MSR) control value constants, DFHMSRCA” on
page 377 for a complete list. This option is ignored if
the RDO option MSRCNTRL was not used, or if the
RETPAGE
occurs if the SET option is specified and a completed
page is ready for return to the application program.
Default action: return control to the application program
at the point immediately following the BMS SEND
command.
TSIOERR
occurs if there is an irrecoverable temporary storage
input/output error.
Default action: terminate the task abnormally.
WRBRK
occurs if the command is interrupted by the terminal
operator pressing the ATTN key. It applies only to the
2741 Communication Terminal, and only if write break is
supported for CICS.
Default action: ignore the condition.
SEND MAP
Function
Send mapped output data to a terminal. The keywords are separated into those supported by minimum, standard, and full
BMS. For further information about BMS, see the CICS/ESA Application Programming Guide.
Command syntax
──SEND MAP(name)──"
Minimum BMS:
──┬──────────────┬──┬─┬─────────────────┬──┬──────────┬──┬────────────────────┬─┬────────────────────────
└─MAPSET(name)─┘ │ └─FROM(data-area)─┘ └─DATAONLY─┘ └─LENGTH(data-value)─┘ │
# └─MAPONLY───────────────────────────────────────────────────┘
──┬──────────────────────────┬──┬──────────┬──┬──────────────────────┬──┬───────┬──┬────────┬─────────────
| └─CURSOR──┬──────────────┬─┘ └─FORMFEED─┘ ├─ERASE──┬───────────┬─┤ └─PRINT─┘ └─FREEKB─┘
| └─(data-value)─┘ │ ├─DEFAULT───┤ │
| │ └─ALTERNATE─┘ │
└─ERASEAUP─────────────┘
──┬───────┬──┬───────┬──"
└─ALARM─┘ └─FRSET─┘
Standard BMS:
──┬───────┬──┬─────────────────┬──┬───────────────┬──┬─┬────────────────┬──┬────────────────┬─┬──"
└─NLEOM─┘ └─MSR(data-value)─┘ └─FMHPARM(name)─┘ │ └─OUTPARTN(name)─┘ └─ACTPARTN(name)─┘ │
└─LDC(name)──────────────────────────────┘
Full BMS:
┌─TERMINAL──┬──────┬──┬──────┬─┐
│ └─WAIT─┘ └─LAST─┘ │ ┌─HONEOM─┐
──┬───────┬──┼──────────────────────────────┼──┬─────────────┬──┬─────────┬──┼────────┼──"
└─ACCUM─┘ ├─SET(ptr-ref)─────────────────┤ └─REQID(name)─┘ └─NOFLUSH─┘ ├─L4O────┤
└─PAGING───────────────────────┘ ├─L64────┤
└─L8O────┘
Conditions:
IGREQCD, IGREQID, INVLDC, INVMPSZ, INVPARTN, INVREQ, OVERFLOW, RETPAGE, TSIOERR, WRBRK
Apar 72253
Documentation for Apar 72253 added 16 Jun 1995 (TUCKER)
TYPE=TERMINAL, and the same as the printer platen | by the TIOAPFX=YES option on the DFHMDI and
width; otherwise the data may not format correctly. DFHMSD BMS map definitions (see pages 395 and
401). For a description of a safe upper limit, see
When using the HONEOM option, refer to CTRL on
“LENGTH options” on page 5.
page 391 for a description of the option priority.
| L40, L64, or L80
LAST
specifies the line length for a 3270 printer; a carrier
specifies that this is the last output operation for a
return and line feed are forced after 40, 64, or 80
transaction and, therefore, the end of a bracket. This
characters have been printed on a line. Unacceptable
option applies to logical units only.
results are likely if this differs from the page width
LDC(name) specified by the RDO options PAGESIZE or ALTPAGE,
specifies a 2-character mnemonic to be used to or the PGESIZE or ALTPGE in the terminal control table
determine the logical device code (LDC) to be TYPE=TERMINAL.
transmitted in the FMH to the logical unit. The
When using the options, refer to CTRL on page 391 for
mnemonic identifies an LDC entry specified in the
a description of the option priority.
terminal control table TYPE=LDC.
MAP(name)
When an LDC is specified, BMS uses the device type,
specifies the name (1–7 characters) of the map to be
the page size, and the page status associated with the
used.
LDC mnemonic to format the message. These values
are taken from the extended local LDC table for the MAPONLY
logical unit, if it has one. If the logical unit has only a specifies that only default data from the map is to be
local (unextended) LDC table, the values are taken from written.
the system LDC table. The numeric value of the LDC is
obtained from the local LDC table, unless this is an MAPSET(name)
unextended table and the value is not specified, in which specifies the unsuffixed name (1–7 characters) of the
case it is taken from the system table. mapset to be used. The mapset must reside in the
| CICS program library. The mapset can be defined either
If the LDC option is omitted, the LDC mnemonic
| by using RDO or by program autoinstall when the
specified in the DFHMSD macro is used; see “DFHMSD”
| mapset is first used. If this option is not specified, the
on page 396. If the LDC option has also been omitted
| name given in the MAP option is assumed to be that of
from the DFHMSD macro, the action depends on the
| the mapset.
type of logical unit, as follows:
| The number of maps per mapset is limited to a
3601 logical unit | maximum of 9 998.
The first entry in the local or extended local
LDC table is used, if there is one. If a MSR(data-value)
default cannot be obtained in this way, a specifies the 4-byte data value that controls the 10/63
null LDC numeric value (X'00') is used. magnetic stripe reader attached to an 8775 or 3643
The page size used is the value that is terminal. A set of constants is provided in DFHMSRCA
specified in the terminal control table to assist in setting this 4-byte area. See “Magnetic slot
TYPE=TERMINAL, or (1,40) if such a value reader (MSR) control value constants, DFHMSRCA” on
is not specified. page 377 for a complete list. This option is ignored if
the RDO option MSRCNTRL was not used, or if the
LUTYPE4 logical unit, batch logical unit, or batch
terminal’s control table does not specify
data interchange logical unit
FEATURE=MSRCNTRL.
The local LDC table is not used to supply a
default LDC; instead, the message is NLEOM
directed to the logical unit console (that is, specifies that data for a 3270 printer or a 3275 display
to any medium that the logical unit elects to with the printer adapter feature should be built with
receive such messages). For a batch data blanks and new-line (NL) characters, and that an
interchange logical unit, this does not imply end-of-message (EM) character should be placed at the
sending an LDC in an FMH. The page size end of the data. As the data is printed, each NL
is obtained in the manner described for the character causes printing to continue on the next line,
3601 logical unit. and the EM character terminates printing.
INVPARTN
occurs if the specified partition is not defined in the
partition set associated with the application program.
Default action: terminate the task abnormally.
INVREQ
occurs if a request for BMS services is not valid for any
of the following reasons:
OVERFLOW
occurs if the mapped data does not fit on the current
page. This condition is only raised if a HANDLE
CONDITION OVERFLOW command is active.
Default action: ignore the condition.
RETPAGE
occurs if the SET option is specified and a completed
page is ready for return to the application program.
TSIOERR
occurs if there is an irrecoverable temporary storage
input/output error.
Default action: terminate the task abnormally.
WRBRK
occurs if a SEND MAP command is interrupted by the
terminal operator pressing the ATTN key. It applies only
to the 2741 Communication Terminal, and only if write
break is supported for CICS.
Default action: ignore the condition.
# Function
# Create mapped output data formatted for the terminal described by MAPPINGDEV.
# Apar PQ06521
# SEND MAP MAPPINGDEV added by APAR PQ06521 12/08/97
# Command syntax
# Minimum BMS:
#
# ──SEND MAP(name)──MAPPINGDEV(data-value)──SET(ptr-ref)──┬──────────────┬─────────────────────────────
# └─MAPSET(name)─┘
# ──┬─┬─────────────────┬──┬──────────┬──┬────────────────────┬─┬──┬──────────────────────────┬─────────
# │ └─FROM(data-area)─┘ └─DATAONLY─┘ └─LENGTH(data-value)─┘ │ └─CURSOR──┬──────────────┬─┘
# └─MAPONLY───────────────────────────────────────────────────┘ └─(data-value)─┘
# ──┬──────────┬──┬──────────┬──┬───────┬──┬────────┬──┬───────┬──┬───────┬──"
# └─FORMFEED─┘ ├─ERASE────┤ └─PRINT─┘ └─FREEKB─┘ └─ALARM─┘ └─FRSET─┘
# └─ERASEAUP─┘
#
# Usage # about minimum BMS in the information about symbolic
# cursor positioning.
# SEND MAP MAPPINGDEV creates mapped output data
# This option overrides any IC option of the ATTRB
# formatted for a terminal that may not be the principal facility
# operand of DFHMDF.
# of the transaction. The terminal characteristics to be used
# are defined by MAPPINGDEV. # The value specified in the CURSOR option must be
# positive. A negative value leads to unpredictable results.
# The mapped data is not transmitted but is returned to the
# application in a buffer defined by the SET option. # DATAONLY
# specifies that only application program data is to be
# written. The attribute characters (3270 only) must be
# Parameters # specified for each field in the supplied data. If the
# attribute byte in the user-supplied data is set to X'00',
# ALARM # the attribute byte on the screen is unchanged. Any
# specifies that the 3270 audible alarm feature is to be # default data or attributes from the map are ignored.
# activated. For logical units supporting FMHs (except
# interactive and batch logical units), ALARM instructs # ERASE
# BMS to set the alarm flag in the FMH. # specifies that the screen printer buffer is to be erased
# and the cursor returned to the upper left corner of the
# When using the ALARM option, refer to CTRL on page
# screen. (This option applies only to the 3270, or 8775)
# 391 for a description of the option priority.
# The first output operation in any transaction, or in a
# CURSOR(data-value) # series of pseudoconversational transactions, should
# specifies the location to which the 3270 cursor is to be # always specify ERASE. For transactions attached to
# returned upon completion of a SEND MAP # 3270 screens or printers, this also ensures that the
# MAPPINGDEV command. # correct screen size is selected, as defined for the
# The data value must be a halfword binary value that # transaction by the SCRNSIZE option in the RDO
# specifies the cursor position relative to zero; the range of # PROFILE definition.
# values that can be specified depends on the size of the
# ERASEAUP
# screen being used. If no data value is specified,
# specifies that before this page of output is displayed, all
# symbolic cursor positioning is assumed. See the section
# unprotected character locations in the entire screen are
# to be erased. (This option applies only to the 3270 and # MAPPED command or a terminal control SEND or
# 8775.) # CONVERSE.
# FORMFEED # MAPONLY
# specifies that a new page is required. For 3270 printers # specifies that only default data from the map is to be
# and displays, the FORMFEED character is positioned at # written.
# the start of the buffer. The application program must
# MAPSET(name)
# thus ensure that this buffer position is not overwritten by
# specifies the unsuffixed name (1–7 characters) of the
# map or text data. It is ignored if the target terminal does
# mapset to be used. The mapset must reside in the
# not support FORMFEED (that is, the RDO TYPETERM
# CICS program library. The mapset can be defined either
# option FORMFEED was not used, or the terminal control
# by using RDO or by program autoinstall when the
# table TYPE=TERMINAL does not specify FF=YES).
# mapset is first used. If this option is not specified, the
# FREEKB # name given in the MAP option is assumed to be that of
# specifies that the 3270 keyboard should be unlocked # the mapset.
# after the data is written. If FREEKB is omitted, the
# The number of maps per mapset is limited to a
# keyboard remains locked.
# maximum of 9 998.
# When using the FREEKB option, refer to CTRL on page
# PRINT
# 391 for a description of the option priority.
# specifies that a print operation is to be started at a 3270
# FROM(data-area) # printer or at a 3275 with the printer adapter feature, or
# specifies the data area containing the data to be # that data on an LUTYPE2 (3274/76 or 3790) is to be
# processed. If this field is not specified, the name # printed on a printer allocated by the controller. If this
# defaults to the name of the map suffixed with an O. # option is omitted, the data is sent to the printer buffer but
# This includes the 12-byte prefix generated by the # is not printed.
# TIOAPFX=YES option on the DFHMDI and DFHMSD
# When using the PRINT option, refer to CTRL on page
# BMS map definitions (see pages 395 and 401).
# 391 for a description of the option priority.
# FRSET
# SET(ptr-ref)
# specifies that the modified data tags (MDTs) of all fields
# specifies the pointer to be set to the address of the
# currently in the 3270 buffer are to be reset to the
# mapped data.
# unmodified condition (that is, field reset) before any map
# data is written to the buffer. # The storage area containing the mapped data has the
# same format as the page buffer returned when using the
# This allows the ATTRB operand of DFHMDF for the
# SET option in the full BMS SEND command. See the
# requested map to control the final status of fields written
# description of the MAPPINGDEV facility in the
# or rewritten in response to a BMS command, if no other
# attribute information has been written in the symbolic
# map. # Error Conditions
# When using the FRSET option refer to CTRL on page # Some of the following conditions may occur in combination.
# 391 for a description of the option priority. # If more than one occurs, only the first is passed to the
# LENGTH(data-value) # application program.
# specifies the length of the data to be formatted as a # INVMPSZ
# halfword binary value. # occurs if the specified map is too wide for the terminal
# If the data area sending the map is longer than the data # specified by MAPPINGDEV or if a HANDLE CONDITION
# to be mapped, LENGTH should be specified. This # OVERFLOW command is active and the specified map
# should include the length of the 12-byte prefix generated # is too long for the terminal specified by MAPPINGDEV.
# by the TIOAPFX=YES option on the DFHMDI and # Default action: terminate the task abnormally.
# DFHMSD BMS map definitions (see pages 395 and
# 401). For a description of a safe upper limit, see # INVREQ
# “LENGTH options” on page 5. # occurs if the terminal specified by MAPPINGDEV does
# not exist, does not support BMS, or is not a 3270 printer
# MAP(name) # or display.
# specifies the name (1–7 characters) of the map to be
# used. # Default action: terminate the task abnormally.
# MAPPINGDEV(data-value)
# specifies the name of a 3270 terminal whose BMS
# characteristics match those of the terminal to which the
# data will eventually be sent using a SEND TEXT
SEND PAGE
Function
| Send last page of data. Only supplied by full BMS. For further information about BMS, see the CICS/ESA Application
Programming Guide.
Command syntax
──SEND PAGE──┬─RELEASE──┬───────────────┬─┬──┬────────────────────┬──┬──────────────┬────────────────────
│ └─TRANSID(name)─┘ │ └─TRAILER(data-area)─┘ └─SET(ptr-ref)─┘
└─RETAIN─────────────────────┘
──┬───────────────────────┬──┬───────────┬──┬───────────────┬──┬──────┬──"
├─AUTOPAGE──┬─────────┬─┤ └─OPERPURGE─┘ └─FMHPARM(name)─┘ └─LAST─┘
│ ├─CURRENT─┤ │
│ └─ALL─────┘ │
└─NOAUTOPAGE────────────┘
Conditions:
IGREQCD, INVREQ, RETPAGE, TSIOERR, WRBRK
SEND PAGE completes a BMS logical message. It causes AUTOPAGE is assumed for 3270 printers; it does not
BMS to generate a device-dependent data stream for the last apply to 3270 display terminals. If neither AUTOPAGE
(perhaps the only) page of data. Typically, this last page is nor NOAUTOPAGE is specified, the terminal has the
only partially full. paging status specified for it using the terminal control
table TYPE=TERMINAL or the RDO option AUTOPAGE.
Options can be included to specify how much control the
terminal operator should have over the disposition of the CURRENT
logical message (AUTOPAGE, NOAUTOPAGE, and specifies that if the ATTN key on a 2741 is pressed
OPERPURGE), to determine whether control should return to while a BMS logical message is being sent to the
the application program after transmission of the logical terminal, and the WRBRK condition is not active,
message (RELEASE or RETAIN), to add trailer data to a text transmission of the current page is to cease and
logical message (TRAILER), and to return the transmission of the next page (if any) is to begin.
device-dependent data stream for the last page of a logical
FMHPARM(name)
message to the application program (SET). If this is a
specifies the name (1–8 characters) of the outboard map
paging message, the last page of the logical message is
to be used. This option applies only to 3650 logical
transmitted to temporary storage and the terminal operator
units with outboard formatting.
paging transaction is initiated. If it is a terminal logical
message, the last page is transmitted to the terminal. LAST
specifies that this is the last output operation for a
This is supported by full BMS only. transaction and, therefore, the end of a bracket. If
RELEASE is specified, LAST is assumed unless the
SEND PAGE options SEND PAGE command is terminating a routing
operation. This option applies to logical units only.
ALL
specifies that if the ATTN key on a 2741 is pressed NOAUTOPAGE
while a BMS logical message is being sent to the specifies that pages of a BMS logical message are to be
terminal, and the WRBRK condition is not active, sent one at a time to the terminal. BMS sends the first
transmission of the current page is to cease and no page to the terminal when the terminal becomes
additional pages are to be transmitted. The logical available or on request of the terminal operator.
message is deleted. Subsequent pages are sent to the terminal in response
to requests from the terminal operator. (Refer to the
AUTOPAGE CICS/ESA CICS-Supplied Transactions for more
specifies that each page of a BMS logical message is to information about terminal operator paging commands.)
be sent to the terminal as soon as it is available. If
If automatic paging is specified for the terminal by the
paging on request is specified for the terminal by the
PGESTAT operand of the terminal control table
PGESTAT operand of the terminal control table
TYPE=TERMINAL, NOAUTOPAGE overrides it for this
TYPE=TERMINAL, or the RDO option AUTOPAGE(NO),
logical message. For logical units, NOAUTOPAGE
AUTOPAGE overrides it for this logical message.
applies to all pages for all LDCs in the logical message.
NOAUTOPAGE does not apply to 3270 printers. If this option is specified in a program that is not at the
highest logical level, the specified transaction identifier is
OPERPURGE
used only if a new transaction identifier is not provided in
specifies that CICS is to delete the BMS logical
another SEND PAGE command (or in a RETURN
message only when the terminal operator requests
program control command) issued in a program at a
deletion. If the option is omitted, CICS deletes the
higher logical level.
message if the operator enters data that is not a paging
command.
SEND PAGE conditions
RELEASE
specifies that, after the SEND PAGE command, control IGREQCD
is to be returned to CICS. occurs when an attempt is made to execute a SEND
PAGE command after a SIGNAL data-flow control
RETAIN command with a request change direction (RCD) code
specifies that after the SEND PAGE command, control is has been received from an LUTYPE4 logical unit.
returned to the application program when the operator
has finished displaying the pages. Default action: terminate the task abnormally.
SET(ptr-ref) INVREQ
specifies the pointer to be set to the address of the occurs if a request for BMS services is not valid for any
output data. of the following reasons:
The SET option specifies that the last or only page is The disposition (TERMINAL, PAGING, or SET) of a
returned to the application program. The pointer is set BMS logical message is changed prior to its
| to the address of the current page. A list of addresses completion by the SEND PAGE command.
| is created and, if the ROUTE command is in operation, Text data is output to the same partition or LDC as
| there is an address entry for each device. If the ROUTE mapped data while a BMS logical message is
| command is not in operation, the list contains only the active. If neither partitions nor LDCs are in use, text
| one entry. See the description of the SET option in the data is output to the same logical message as
section about full BMS in the CICS/ESA Application mapped data.
Programming Guide for more guidance on using the
SET option. The TRAILER option is specified when terminating a
logical message built with SEND MAP commands
The application program regains control either only.
immediately following the SEND PAGE command (if the
current page is not yet completed), or at the label During overflow processing data is sent to a
specified in a HANDLE CONDITION RETPAGE different LDC from the LDC that caused page
command if the page has been completed. overflow.
If TIOAPFX=YES is specified in the map definition, the The length of the trailer is negative.
| pointer returned contains the address of the TIOA prefix. Command not allowed for a distributed program link
| The user data starts at offset X'0C' from the start of the server program (RESP2=200).
| TIOA prefix.
Default action: terminate the task abnormally.
TRAILER(data-area)
| specifies the text data area that contains trailer data to RETPAGE
| be placed at the bottom of the last page only. The occurs if the SET option is specified and the last or only
| format of the trailer is: completed page is ready for return to the application
program.
| 2 bytes Binary length of the data (n)
Default action: return control to the application program
| 2 bytes Binary zero
at the point immediately following the BMS SEND PAGE
| n bytes Data.
command.
| See the CICS/ESA Application Programming Guide for
TSIOERR
| more information.
occurs if there is an irrecoverable temporary storage
TRANSID(name) input/output error.
specifies the transaction identifier (1–4 alphanumeric Default action: terminate the task abnormally.
characters) to be used with the next input message from
the terminal the task is attached to. The identifier must WRBRK
have been defined using the appropriate RDO program occurs if the SEND PAGE command is interrupted by
definition. TRANSID is valid only if SEND PAGE the terminal operator pressing the ATTN key. It applies
RELEASE is specified. only to the 2741 Communication Terminal, and only if
write break is supported for CICS.
SEND PARTNSET
Function
This command is available on standard and full BMS only. For further information about BMS, see the CICS/ESA Application
Programming Guide.
Command syntax
──SEND PARTNSET──┬────────┬──"
└─(name)─┘
Conditions:
INVPARTNSET, INVREQ
INVPARTNSET
occurs if the partition set named in the SEND
PARTNSET command is not a valid partition set (for
example, it may be a mapset).
Default action: terminate the task abnormally.
INVREQ
occurs in any of the following situations:
SEND TEXT
Function
Send data without mapping. The keywords are separated into those supported by standard and full BMS. For further
information about BMS, see the CICS/ESA Application Programming Guide.
Command syntax
──SEND TEXT──"
Standard BMS:
──FROM(data-area)──┬────────────────────┬──┬────────────────────┬──┬──────────┬──────────────────────────
└─LENGTH(data-value)─┘ └─CURSOR(data-value)─┘ └─FORMFEED─┘
──┬──────────────────────┬──┬───────┬──┬────────┬──┬───────┬──┬───────┬──┬───────────────┬────────────────
| └─ERASE──┬───────────┬─┘ └─PRINT─┘ └─FREEKB─┘ └─ALARM─┘ └─NLEOM─┘ └─FMHPARM(name)─┘
| ├─DEFAULT───┤
| └─ALTERNATE─┘
──┬─┬────────────────┬──┬────────────────┬─┬──┬─────────────────┬──"
│ └─OUTPARTN(name)─┘ └─ACTPARTN(name)─┘ │ └─MSR(data-value)─┘
└─LDC(name)──────────────────────────────┘
Full BMS:
┌─TERMINAL──┬──────┬──┬──────┬─┐
│ └─WAIT─┘ └─LAST─┘ │
──┼──────────────────────────────┼──┬─────────────┬──┬───────────────────┬──┬────────────────────┬───────
├─SET(ptr-ref)─────────────────┤ └─REQID(name)─┘ └─HEADER(data-area)─┘ └─TRAILER(data-area)─┘
└─PAGING───────────────────────┘
┌─HONEOM─┐
──┬─────────────────────┬──┬───────┬──┼────────┼──"
├─JUSTIFY(data-value)─┤ └─ACCUM─┘ ├─L4O────┤
├─JUSFIRST────────────┤ ├─L64────┤
└─JUSLAST─────────────┘ └─L8O────┘
Conditions:
IGREQCD, IGREQID, INVLDC, INVPARTN, INVREQ, LENGERR, RETPAGE, TSIOERR, WRBRK
SEND TEXT sends text data without mapping. The text is SEND TEXT options
split into lines of the same width as the terminal, such that
words are not broken across line boundaries. If the text ACCUM
exceeds a page, it is split into pages that fit on the terminal specifies that this command is one of a number of
with application-defined headers and trailers. commands that are used to build a logical message.
The logical message is completed by a SEND PAGE
When using the SEND TEXT command with any of the command, or deleted by a PURGE MESSAGE
ALARM, FREEKB, FRSET, HONEOM, L40, L64, L80, or command.
PRINT options, see CTRL on page 391 for a description of
ACTPARTN(name)
the option priority.
specifies the name (1–2 characters) of the partition to be
activated. Activating a partition moves the cursor into
the specified partition, and unlocks the keyboard for the
specified partition.
This option is ignored if the target terminal does not
support partitions, or if there is no application partition
set.
ERASE HONEOM
specifies that the screen printer buffer or partition is to specifies that the default printer line length is to be used.
be erased and the cursor returned to the upper left This length should be the same as that specified using
corner of the screen. (This option applies only to the the RDO options PAGESIZE or ALTPAGE, or PGESIZE
3270, or 8775, and to the 3604 Keyboard Display.) or ALTPGE in the terminal control table
TYPE=TERMINAL, and the same as the printer platen
The first output operation in any transaction, or in a
width; otherwise the data may not format correctly.
series of pseudoconversational transactions, should
always specify ERASE. For transactions attached to When using the HONEOM option, refer to CTRL on
| 3270 screens or printers, unless explicitly overridden by page 391 for a description of the option priority.
| the DEFAULT or ALTERNATE option, this also ensures
JUSFIRST
that the correct screen size is selected, as defined for
specifies that the text data is to be placed at the top of
| the transaction by the SCRNSIZE option in the profile
the page. Any partially formatted page from previous
| definition.
requests is considered to be complete. If the HEADER
| FMHPARM(name) option is specified, the header precedes the data. See
| specifies the name (1–8 characters) of the outboard map also the description of the JUSTIFY option.
| to be used. (This option applies only to 3650 logical
JUSLAST
| units with outboard formatting.)
specifies that the text data is to be positioned at the
FORMFEED bottom of the page. The page is considered to be
specifies that a new page is required. For 3270 printers complete after the request has been processed. If the
and displays, the FORMFEED character is positioned at TRAILER option is specified, the trailer follows the data.
the start of the buffer. The application program must See also the description of the JUSTIFY option.
thus ensure that this buffer position is not overwritten by
JUSTIFY(data-value)
map or text data. It is ignored if the target terminal does
specifies the line of the page at which the text data is to
not support FORMFEED (that is, the RDO option
be positioned. The data value must be a halfword
FORMFEED was not used, or the terminal control table
binary value in the range 1 through 240. Although they
TYPE=TERMINAL does not specify FF=YES).
may not be specified as constants, the special values −1
The FORMFEED option can appear on any SEND TEXT and −2 can be supplied dynamically to signify JUSFIRST
ACCUM command. You need only specify it once within or JUSLAST, respectively.
a physical page because it always forces a FORMFEED
at the start of the physical page. To force a
FORMFEED at the start of a particular SEND TEXT
Function
Send data with mapping. Only supplied by full BMS. For further information about BMS, see the CICS/ESA Application
Programming Guide.
Command syntax
┌─TERMINAL──┬──────┬──┬──────┬─┐
│ └─WAIT─┘ └─LAST─┘ │
──SEND TEXT MAPPED──FROM(data-area)──┬────────────────────┬──┼──────────────────────────────┼────────────
└─LENGTH(data-value)─┘ └─PAGING───────────────────────┘
──┬─────────────┬──"
└─REQID(name)─┘
Conditions:
IGREQCD, IGREQID, INVREQ, TSIOERR, WRBRK
SEND TEXT MAPPED sends a page of a device-dependent If PAGING is specified with a REQID that is defined as
data stream previously built by BMS, and returned to the recoverable in the temporary storage table (TST), CICS
application program with the SET option. provides message recovery for logical messages if the
task has reached a syncpoint.
It must only be used to send data previously generated by a
BMS SEND command specifying the SET option. It REQID(name)
references a 4-byte page control area (PGA) that BMS specifies a 2-character prefix to be used as part of a
placed at the end of the device-dependent data stream. temporary storage identifier for CICS message recovery.
Only one prefix can be specified for each logical
The length of the device-dependent data stream set in the message. The default prefix is **.
TIOATDL field of the page buffer returned by the SET option
BMS message recovery is provided for a logical
does not include the PGA. The LENGTH option of the
message only if the PAGING option is specified in the
SEND TEXT MAPPED command should be set from this
BMS SEND commands and if the syncpoint has been
TIOATDL, and hence does not include the PGA. However, if
reached.
the application program copies the page buffer returned by
the SET option, it should include the PGA in the copied data. TERMINAL
specifies that input data is to be sent to the terminal that
This command is only supported by full BMS. originated the transaction.
WAIT
SEND TEXT MAPPED options specifies that control should not be returned to the
FROM(data-area) application program until the output operation has been
specifies the data area containing the data to be sent. completed.
If WAIT is not specified, control returns to the application
LAST
program when the output operation has started. A
specifies that this is the last output operation for a
subsequent input or output command (terminal control,
transaction and, therefore, the end of a bracket. This
BMS, or batch data interchange) causes the application
option applies to logical units only.
program to wait until the previous command has been
LENGTH(data-value) completed.
specifies the length of the data to be formatted as a
halfword binary value. For a description of a safe upper
SEND TEXT MAPPED conditions
limit, see “LENGTH options” on page 5.
IGREQCD
PAGING
occurs when an attempt is made to execute a SEND
specifies that the output data is not to be sent
TEXT command after a SIGNAL data-flow control
immediately to the terminal, but is to be placed in
command with a request change direction (RCD) code
temporary storage and displayed in response to paging
has been received from an LUTYPE4 logical unit.
commands entered by the terminal operator.
Default action: terminate the task abnormally.
IGREQID
occurs if the prefix specified in the REQID option on a
BMS SEND command is different from that established
by a previous REQID option, or by default for this logical
message—REQID (**).
Default action: terminate the task abnormally.
INVREQ
occurs if a distributed program link server application
specified the function-shipping session (its principal
facility) on the CONVID option (RESP2=200).
Default action: terminate the task abnormally.
TSIOERR
occurs if there is an irrecoverable temporary storage
input/output error.
Default action: terminate the task abnormally.
WRBRK
occurs if a SEND command is interrupted by the
terminal operator pressing the ATTN key. It applies only
to the 2741 Communication Terminal, and only if write
break is supported for CICS.
Default action: ignore the condition.
Function
Send a page. Only supplied by full BMS. For further information about BMS, see the CICS/ESA Application Programming
Guide.
Command syntax
TSIOERR
occurs if there is an irrecoverable temporary storage
input/output error.
Default action: terminate the task abnormally.
WRBRK
occurs if a SEND command is interrupted by the
terminal operator pressing the ATTN key. It applies only
to the 2741 Communication Terminal, and only if write
break is supported for CICS.
Default action: ignore the condition.
SIGNOFF
Function
Sign off from a terminal.
Command syntax
──SIGNOFF──"
Conditions:
INVREQ
SIGNOFF condition
INVREQ
occurs in any of the following situations:
SIGNON
Function
Sign on to a terminal.
Command syntax
──SIGNON──USERID(data-value)──┬──────────────────────┬──┬────────────────────┬───────────────────────────
| └─ESMREASON(data-area)─┘ └─ESMRESP(data-area)─┘
──┬─────────────────────┬──┬──────────────────────────┬──┬──────────────────────┬─────────────────────────
| └─GROUPID(data-value)─┘ ├─LANGUAGECODE(data-value)─┤ └─LANGINUSE(data-area)─┘
└─NATLANG(data-value)──────┘
──┬─────────────────────────┬──┬──────────────────────┬──┬─────────────────────────┬──────────────────────
└─NATLANGINUSE(data-area)─┘ └─PASSWORD(data-value)─┘ └─NEWPASSWORD(data-value)─┘
──┬─────────────────────┬──"
└─OIDCARD(data-value)─┘
Conditions:
INVREQ, NOTAUTH, USERIDERR
USERIDERR
occurs in any of the following situations:
SPOOLCLOSE
Function
Close a spool report.
Command syntax
| ┌──
───────────────────┐
| ──SPOOLCLOSE──TOKEN(data-area)──┬────────┬───*┬─NOHANDLE────────┬┴──"
| ├─KEEP───┤ └─RESP──┬───────┬─┘
| └─DELETE─┘ └─RESP2─┘
Conditions:
ALLOCERR, INVREQ, NOSPOOL, NOSTG, NOTFND, NOTOPEN, STRELERR
The SPOOLCLOSE command closes a CICS spool report Condition RESP2 Meaning
and, optionally, changes its retention characteristics. If more ALLOCERR - MVS dynamic allocation has rejected a
than one transaction is trying to read reports from JES, request to allocate an input data set.
SPOOLCLOSE should not be immediately followed by RESP2 gives the dynamic allocation response
SPOOLOPEN. It should be followed by a WAIT, so that code that denotes this error. The first two
other transactions can use the interface. characters are the information reason code
(S99INFO), and the second two are the error
A default disposition is taken if both KEEP and DELETE are reason code (S99ERROR), as defined in the
| MVS/ESA Application Development Guide:
omitted from the SPOOLCLOSE command, or if the report is
| Authorized Assembler Language Programs,
closed implicitly by a SYNCPOINT or RETURN command: | GC28-1645.
When an INPUT report is explicitly closed by a INVREQ 4 Unsupported language.
SPOOLCLOSE command, the default disposition is
INVREQ 8 Unsupported function.
DELETE.
| INVREQ 40 Subsystem interface already enabled.
In all other cases, the default disposition is KEEP.
Note: Errors 1024 and over are internal, and
should not occur. If one of these error codes
SPOOLCLOSE options is returned, contact your IBM support center.
NOSPOOL 4 No subsystem present.
DELETE
NOSPOOL 8 Interface being disabled; CICS is quiescing.
For an INPUT report, DELETE specifies that the next
report is to be read on the subsequent OPEN INPUT. NOSPOOL 12 Interface has been stopped.
For an OUTPUT report, DELETE specifies that the NOSTG - An MVS GETMAIN has failed within the JES
interface subtask (DFHPSPSS).
report is to be purged.
RESP2 gives the GETMAIN register 15 return
Note: When a JCL job is submitted using the internal code.
reader (INTRDR) with the DELETE option specified, the
NOTFND 1024 Input or output function has been corrupted,
job is sometimes run before the output is deleted.
and SPOOLCLOSE could not complete.
KEEP | NOTOPEN 8 Data set has not been opened.
For an INPUT report, KEEP specifies that the report is to STRELERR - An MVS FREEMAIN has failed within the JES
be read again when SPOOLOPEN INPUT is next interface subtask (DFHPSPSS).
issued.
RESP2 gives the FREEMAIN register 15
For an OUTPUT report, KEEP specifies that the report is return code.
to be sent to its destination node.
TOKEN(data-area)
specifies the 8-character CICS-allocated token used to
identify a report.
SPOOLCLOSE conditions
| Note: There are no default actions.
SPOOLOPEN INPUT
Function
Open a spool report.
Command syntax
| ┌──
───────────────────┐
| ──SPOOLOPEN INPUT──TOKEN(data-area)──USERID(data-value)──┬───────────────────┬───*┬─NOHANDLE────────┬┴──"
| └─CLASS(data-value)─┘ └─RESP──┬───────┬─┘
| └─RESP2─┘
Conditions:
ALLOCERR, ILLOGIC, INVREQ, NOSPOOL, NOSTG, NOTAUTH, NOTFND, NOTOPEN, OPENERR, SPOLBUSY,
SPOLERR, STRELERR
The SPOOLOPEN INPUT command opens a spool report for SPOOLOPEN INPUT conditions
input from the system spooler to CICS.
| Note: There are no default actions.
It prepares to get (read) an existing spool data set directly
Condition RESP2 Meaning
using external writer name (USERID) and specified class. ALLOCERR - MVS dynamic allocation has rejected a
request to allocate an input data set.
Another task could have allocated a spool file for input. In
this case, you should retry after a suitable time interval. RESP2 gives the dynamic allocation response
code that denotes this error. The first two
When this command has been successfully executed, you characters are the information reason code
(S99INFO), and the second two are the error
should read the report and proceed to CLOSE as soon as
reason code (S99ERROR), as defined in the
possible, in order to permit other users to use the JES single | MVS/ESA Application Development Guide:
thread. If SPOOLCLOSE is not issued before transaction | Authorized Assembler Language Programs,
end or SYNCPOINT, CICS performs an implicit | GC28-1645.
SPOOLCLOSE KEEP, and writes a message to CSMT to ILLOGIC 3 Invalid CLASS value specified.
alert the system programmer to the possible unnecessary
INVREQ 4 Unsupported language.
retention of resources. You should not SPOOLOPEN a data
set using this command until you are prepared to process it INVREQ 8 Unsupported function.
completely. INVREQ 16 USERID missing.
INVREQ 36 INPUT|OUTPUT missing.
This command, if successful, returns a token, which is used
later to identify the report in SPOOLREAD and | INVREQ 40 Subsystem interface already enabled.
SPOOLCLOSE commands. Note: Errors 1024 and over are internal, and
should not occur. If one of these error codes
is returned, contact your IBM Support Center.
SPOOLOPEN INPUT options NOSPOOL 4 No subsystem present.
CLASS(data-value) NOSPOOL 8 Interface being disabled; CICS is quiescing.
specifies a 1-character class designation. The CLASS NOSPOOL 12 Interface has been stopped.
operand can be used as a selection parameter for input
NOSTG - An MVS GETMAIN has failed within the JES
reports. If it is omitted, the first report for the specified
interface subtask (DFHPSPSS).
USERID is obtained, regardless of its class.
RESP2 gives the GETMAIN register 15 return
TOKEN(data-area) code.
specifies the 8-character CICS-allocated token used to NOTAUTH - An application has issued a SPOOLOPEN
identify a report. INPUT command with an unauthorized
USERID. For the USERID to be authorized, its
USERID(data-value) first four characters must match the first four
specifies the 8-character user identifier. It must begin characters of the current CICS applid id.
with the same 4 characters as the CICS generic applid,
so that CICS can check that users are not attempting to
access data sets not intended for their CICS system.
SPOOLOPEN OUTPUT
Function
Open a spool report for output.
Command syntax
──SPOOLOPEN OUTPUT──TOKEN(data-area)──USERID(data-value)──NODE(data-value)──┬───────────────────┬────────
└─CLASS(data-value)─┘
| ┌─NOCC─┐ ┌─PRINT───────────────────────────────┐ ┌── ───────────────────┐
| ──┬───────────────────┬──┼──────┼──┼─────────────────────────────────────┼───*┬─NOHANDLE────────┬┴──"
| └─OUTDESCR(ptr-ref)─┘ ├─ASA──┤ ├─PRINT──┬──────────────────────────┬─┤ └─RESP──┬───────┬─┘
| └─MCC──┘ │ └─RECORDLENGTH(data-value)─┘ │ └─RESP2─┘
└─PUNCH───────────────────────────────┘
Conditions:
ALLOCERR, ILLOGIC, INVREQ, LENGERR, NODEIDERR, NOSPOOL, NOSTG, NOTFND, NOTOPEN, OPENERR,
OUTDESCERR, SPOLBUSY, STRELERR
The SPOOLOPEN OUTPUT command opens a spool report SPOOLOPEN OUTPUT options
for output from CICS to the system spooler and defines its
characteristics. ASA
specifies that the report has each record prefixed with an
It results in a dynamic allocation of the output file using the ASA carriage-control character, and this character must
nodeid to specify the remote destination and the userid to be used by the operating system to control formatting
specify the remote user. As this is a multithread output when the report is printed.
request, requesters of this service could interleave. This
CLASS(data-value)
SPOOLOPEN enables users to acquire the token for a report
specifies a 1-character class designation. If it is omitted,
that it expects to create (write). This token is used to identify
class A is assumed.
the report in later SPOOLWRITE and SPOOLCLOSE
commands. MCC
specifies that the report has each record prefixed with an
When printing on a local device, use the NOCC|ASA|MCC IBM machine command code carriage-control character,
options to control output formatting. If you do not specify a and this character must be used by the operating system
format, the default value of NOCC is used. to control formatting when the report is printed.
Apar PN13451 NOCC
Documentation for Apar PN13451 added 13/02/95 specifies that the report has no internal formatting
controls. When the report is printed, the operating
system prefixes each record with a carriage-control
# NODE and USERID can be used to write the data set character that causes page skipping according to the
# directly to the local spool file only if specified with a value of default operating system lines-per-page value.
# '*'.
NODE(data-value)
If you do not issue SPOOLCLOSE before the end of the specifies the 8-character identifier of a destination node
transaction, CICS performs an implicit SPOOLCLOSE that the system spooler uses to route the file. It is a
DELETE and writes a message to CSMT to alert you to the sender field.
possible unnecessary retention of resources.
OUTDESCR(ptr-ref)
Note: If you retrieve a formatted data set, the system | (MVS/SP—JES2 Version 3, or JES3 Version 4.2.1 only,
spooler could have changed the data set format. For | or a later upward-compatible release) specifies a pointer
example, the system spooler could have converted an MCC | variable to be set to the address of a field that contains
format data set to ASA format during data set creation. This | the address of a string of parameters to the OUTPUT
does not affect the final printed output. | statement of MVS JCL. This is called double indirect
| addressing. The user must set up the pointer, the
address field, and the string. This means that the
OUTDESCR option cannot be used from within CECI.
The format of the string is:
SPOOLREAD
Function
The SPOOLREAD command obtains the next record from the system spooler.
Command syntax
──SPOOLREAD──TOKEN(data-area)──INTO(data-area)──┬────────────────────────┬──┬──────────────────────┬─────
| └─MAXFLENGTH(data-value)─┘ └─TOFLENGTH(data-area)─┘
| ┌──
───────────────────┐
| ───*┬─NOHANDLE────────┬┴──"
| └─RESP──┬───────┬─┘
| └─RESP2─┘
Conditions:
ALLOCERR, ENDFILE, ILLOGIC, INVREQ, LENGERR, NOSPOOL, NOSTG, NOTFND, NOTOPEN, SPOLBUSY,
SPOLERR, STRELERR
SPOOLREAD options
INTO(data-area)
specifies the data area for the variable-length data. It is
a receiver field.
MAXFLENGTH(data-value)
specifies, as a fullword binary variable, the maximum
length of data transferred. This is set by the user on
input. The limit of length is 32 760 bytes. This is the
maximum size of the CICS buffer used to read a record.
TOFLENGTH(data-area)
specifies, as a fullword binary variable, the length of the
data that is transferred. This is set by CICS on input. It
is optional and, if it is omitted, you are not notified of the
SPOOLREAD
SPOOLWRITE
Function
The SPOOLWRITE command writes data to a spool report.
Command syntax
┌─LINE─┐
──SPOOLWRITE──TOKEN(data-area)──FROM(data-area)──┬─────────────────────┬──┼──────┼───────────────────────
└─FLENGTH(data-value)─┘ └─PAGE─┘
| ┌──
───────────────────┐
| ───*┬─NOHANDLE────────┬┴──"
| └─RESP──┬───────┬─┘
| └─RESP2─┘
Conditions:
ALLOCERR, INVREQ, LENGERR, NOSPOOL, NOSTG, NOTOPEN, SPOLBUSY, SPOLERR, STRELERR
START
| Function
| Start task at a specified time.
Command syntax
┌─INTERVAL()──────────────────────┐
──START──TRANSID(name)──┼──────────────────────────────────┼──┬─────────────┬────────────────────────────
├─INTERVAL(hhmmss)─────────────────┤ └─REQID(name)─┘
├─TIME(hhmmss)─────────────────────┤
│ ┌──
───────────────────────┐ │
| ├─AFTER───*┬─HOURS(data-value)───┬┴─┤
| │ ├─MINUTES(data-value)─┤ │
| │ └─SECONDS(data-value)─┘ │
│ ┌──
───────────────────────┐ │
| └─AT───*┬─HOURS(data-value)───┬┴────┘
| ├─MINUTES(data-value)─┤
| └─SECONDS(data-value)─┘
──┬──────────────────────────────────────────────┬──┬────────────────────┬──┬───────────────────┬─────────
| └─FROM(data-area)──LENGTH(data-value)──┬─────┬─┘ ├─TERMID(name)───────┤ └─SYSID(systemname)─┘
└─FMH─┘ └─USERID(data-value)─┘
──┬────────────────┬──┬───────────────┬──┬─────────────┬──┬─────────┬──┬─────────┬──┬────────┬──"
# └─RTRANSID(name)─┘ └─RTERMID(name)─┘ └─QUEUE(name)─┘ └─NOCHECK─┘ └─PROTECT─┘ └─ATTACH─┘
Conditions:
| INVREQ, IOERR, ISCINVREQ, LENGERR, NOTAUTH, SYSIDERR, TERMIDERR, TRANSIDERR, USERIDERR
Apar PN92143
Documentation for Apar PN92143 added 28/02/97
START starts a task, on a local or remote system, at a following situation. One task can start a second task,
# specified time. The time is specified by INTERVAL, AFTER, passing it a transaction name and a terminal name to be
# AT or TIME. See the section about expiration times in the used when the second task starts a third task. The first task
# CICS/ESA Application Programming Guide. may also pass the name of a queue to be accessed by the
second task.
| The default is INTERVAL(0), but for C the default is AFTER
| HOURS(0) MINUTES(0) SECONDS(0). One or more constraints have to be satisfied before the
transaction to be executed can be started, as follows:
The starting task may pass data to the started task and may
The specified interval must have elapsed or the specified
also specify a terminal to be used by the started task as its
expiration time must have been reached. (For more
principal facility.
information, see the CICS/ESA Application Programming
Note that CEDF is an exception to the START command and | Guide.) The INTERVAL or AFTER options
is not valid as a TRANSID name. You should therefore not should be specified when a transaction is to be
attempt to start CEDF in this way. executed on a remote system; this avoids complications
arising when the local and remote systems are in
You can use the RTRANSID, RTERMID, and QUEUE different time zones.
options to pass further data to the started task. These
If the TERMID option is specified, the named terminal
options can contain arbitrary data values whose meanings
must exist and be available. If the named terminal does
depend on what you have specified in the started and
not exist when the time interval expires, the START is
starting tasks. One possible way of using them is in the
discarded.
If the PROTECT option is specified, the starting task improve performance when the START command has to be
must have taken a successful syncpoint. This option, shipped to a remote system; it is also a prerequisite if the
coupled to extensions to system tables, reduces the shipping of the START command is queued pending the
exposure to lost or duplicated data caused by failure of a establishing of links to the remote system.
starting task.
If the transaction to be executed is on a remote system, Starting tasks without terminals
the format of the data must be declared to be the same
as that at the local system. This is done using the RDO If the task to be started is not associated with a terminal,
options DATASTREAM and RECORDFORMAT, or each START command results in a separate task being
DATASTR and RECFM on the terminal control table started. This happens regardless of whether or not data is
TYPE=SYSTEM. For CICS-CICS, these are always the passed to the started task. The following examples show
default values. For CICS-IMS/VS, care should be taken how to start a specified task, not associated with a terminal,
to specify the correct values. in one hour:
EXEC CICS START
Execution of a START command naming a transaction in the
TRANSID('TRNL')
local system cancels any outstanding POST commands INTERVAL(1OOOO)
executed by the starting task. REQID('NONGL')
| START commands are queued by means of the EXEC CICS START
| TRANSACTION definition as described in the CICS/ESA TRANSID('TRNL')
| Resource Definition Guide. AFTER HOURS(1)
REQID('NONGL')
| commands that expire before the new task is terminated. If The following examples show how to start a task associated
| the transaction has been defined as restartable (by defining with a terminal and pass data to it:
| the transaction using the RDO option RESTART(YES)) and EXEC CICS START
| such data has not been retrieved before the new task is TRANSID('TRN2')
| terminated, another new task is started and is able to retrieve TIME(173OOO)
| the outstanding data. If the subsequent new task fails to TERMID('STA3')
| retrieve the outstanding data, a third task will be started and REQID(DATAREC)
| so on, up to a maximum of five times, after which the data is FROM(DATAFLD)
| discarded. If the transaction has not been defined as LENGTH(1OO)
| restartable, no new task is initiated and the data is discarded. EXEC CICS START
TRANSID('TRN2')
AT HOURS(17) MINUTES(3O)
TERMID('STA3')
REQID(DATAREC)
FROM(DATAFLD)
LENGTH(1OO)
There are two ways to enter the time under AFTER and AT.
1. A combination of at least two of HOURS(0–99),
MINUTES(0–59), and SECONDS(0–59). HOURS(1)
SECONDS(3) would mean one hour and three seconds
(the minutes default to zero).
2. As one of HOURS(0–99), MINUTES(0–5999), or
SECONDS(0–359 999). HOURS(1) means one hour.
MINUTES(62) means one hour and two minutes.
SECONDS(3723) means one hour, two minutes, and
three seconds.
PROTECT
# ATTACH specifies that the new task is not started until the starting
# specifies that a non-terminal task is to be started at once task has taken a syncpoint. If the starting task abends
# in the local system. The only other options that may be before the syncpoint is taken, the request to start the
# used with ATTACH are FROM and LENGTH. If these new task is canceled. If the REQID option is also
# are specified, the data is not written to temporary specified, the request identifier should be a name
# storage. The attached task retrieves the data in the defined as recoverable to temporary storage. If the
# normal way but in effect only its address is passed. The started transaction is remote, PROTECT specifies that it
# task issuing the start must ensure that the data is valid must not be scheduled until the local transaction has
# when it is retrieved either by synchronizing its execution successfully completed a syncpoint. For more
# with the attached task, or by placing the data in shared information about the PROTECT option with remote
# storage. transactions, see the CICS/ESA Intercommunication
# The attached task has a STARTCODE of U and cannot Guide.
# be cancelled, so EIBREQID is set to nulls. QUEUE(name)
# ATTACH allows a START issued in a PLTPI program to # specifies a name (1–8 characters) that is passed to the
# take effect before initialization has completed. # started task. If this name represents a temporary storage
# queue, the queue must be local to the started task. The
FMH # contents of the queue are not passed.
specifies that the user data to be passed to the started
task contains function management headers. If you are also specifying REQID, make sure that the
name of the REQID and the name of the QUEUE are
FROM(data-area) not the same.
specifies the data to be stored for a task that is to be
started at some future time. REQID(name)
specifies a name (1–8 characters), which should be
| HOURS(data-value) | unique, to identify a command. This option can be used
specifies a fullword binary value in the range 0–99. | when another task is to be provided with the capability of
| canceling an unexpired command.
INTERVAL(hhmmss)
specifies the expiration time as an interval of time that is | If this option is omitted, CICS generates a unique
to elapse from the time at which the START command is | request identifier in the EIBREQID field of the EXEC
issued. The mm and ss are each in the range 0–59. | interface block, unless the NOCHECK option is
The time specified is added to the current clock time by | specified, in which case field EIBREQID is set to nulls
CICS when the command is executed, to calculate the | and cannot be used subsequently to cancel the START
expiration time. | command.
| When using the C language, you are recommended to | If you include any of the data options (FROM,
| use the AFTER/AT HOURS, MINUTES, and SECONDS | RTERMID, RTRANSID or QUEUE), the data is stored in
| options as C does not provide a packed decimal data | temporary storage using the REQID name specified (or
| type. You may use INTERVAL, but if the value specified | CICS generated) as the identifier. The temporary
| is not an integer constant, the application is responsible | storage record thus identified must be local to the CICS
| for ensuring that the value passed to CICS is in packed | system where the START command is processed. The
| decimal format. START command is processed on the system identified
by the SYSID option or, if the SYSID option is omitted,
LENGTH(data-value) on the system associated with the TRANSID option.
specifies a halfword binary data value that is the length
of the data to be stored for the new task. # If the same REQID name is specified on more than one
# START command, the behavior of subsequent
# RETRIEVE and CANCEL requests is unpredictable. In
# particular, the correspondence between each START | of whether or not the transaction definition is defined as
# and its data is lost. | remote in the PCT. Otherwise the transaction definition
is used to find out whether the transaction is on a local
RTERMID(name)
or a remote system.
specifies a value (1–4 characters), for example a
terminal name, that may be retrieved when the | USERID(data-value)
transaction, specified in the TRANSID option in the | Specifies the userid under whose authority the started
START command, is started. | transaction is to run, if the started transaction is not
| associated with a terminal (that is, when TERMID is not
When retrieved, the value may be used in the TERMID
| specified). This is referred to as userid1.
option of a subsequent START command.
| If you omit both TERMID and USERID, CICS uses
RTRANSID(name)
| instead the userid under which the transaction that
specifies a value (1–4 characters), for example a
| issues the START command is running. This is referred
transaction name, that may be retrieved when the
| to as userid2.
transaction, specified in the TRANSID option in the
START command, is started. | By using either userid1 or userid2 CICS ensures that a
| started transaction always runs under a valid userid,
When retrieved, the value may be used in the TRANSID
| which must be authorized to all the resources referenced
option of a subsequent START command.
| by the started transaction.
| SECONDS(data-value) | CICS performs a surrogate security check against
| specifies a fullword binary value in the range 0–59, when | userid2 to verify that this user is authorized to userid1.
| HOURS or MINUTES are also specified, or 0–359 999 | If userid2 is not authorized, CICS returns a NOTAUTH
| when SECONDS is the only option specified. | condition. The surrogate check is not done here if
| USERID is omitted.
SYSID(systemname)
specifies the name of the system to which the request is
directed. START conditions
TERMID(name) INVREQ
specifies the symbolic identifier (1–4 alphanumeric occurs in any of the following situations:
characters) of the principal facility associated with a
transaction to be started as a result of a START Apar PQ19047
command. This principal facility can be either a terminal Documentation for Apar PQ19047 added 27/10/98,
(the usual case) or an APPC session. Where an APPC modifies RCF 11734 added 1/12/97
session is specified, the connection (or modeset) name
is used instead of a terminal identifier. This option is
# The START command is not valid for processing by
required when the transaction to be started must
# CICS
communicate with a terminal; it should be omitted
# Values specified in the INTERVAL option are out of
otherwise.
# range
The terminal identifier must be defined as either a local # The value specified in HOURS, for AFTER and AT
or a remote terminal on the system in which the START # options, is out of range (RESP2=4)
command is executed, when the start of the # The value specified in MINUTES, for AFTER and
transaction takes effect. # AT options, is out of range (RESP2=5
# The value specified in SECONDS, for AFTER and
TIME(hhmmss)
# AT options, is out of range (RESP2=6)
specifies the time when a new task should be started.
# A START operation specifies a REQID name that
| When using the C language, you are recommended to # corresponds to an existing user temporary storage
| use the AFTER/AT HOURS, MINUTES, and SECONDS # queue
| options as C does not provide a packed decimal data # An attempt was made to ship a START request with
| type. You may use TIME, but if the value specified is # the ATTACH option (RESP2=11)
| not an integer constant, the application is responsible for # A START request with the ATTACH option has
| ensuring that the value passed to CICS is in packed # failed (RESP2=12).
| decimal format. | A USERID is specified and the CICS external
| security manager interface is not initialized
TRANSID(name)
| (RESP2=18)
specifies the symbolic identifier (1–4 characters) of the
transaction to be executed by a task started as the result # Apar PN92143
of a START command.
# Documentation for Apar PN92143 added 28/02/97
| If SYSID is specified, and names a remote system, the # RESP2=11 and 12 added
| transaction is assumed to be on that system irrespective
ISCINVREQ
occurs when the remote system indicates a failure that
does not correspond to a known condition.
Default action: terminate the task abnormally.
LENGERR
occurs if LENGTH is not greater than zero.
Default action: terminate the task abnormally.
NOTAUTH
| occurs in any of the following situations:
SYSIDERR
| occurs when the SYSID option specifies a name that is
| neither the local system nor a remote system (made
| known to CICS by defining a CONNECTION).
SYSIDERR also occurs when the link to the remote
system is known but unavailable. This condition may
not be raised if the user exit XISLCLQ is enabled (see
the CICS/ESA Customization Guide for programming
information).
Default action: terminate the task abnormally.
TERMIDERR
occurs if the terminal identifier in a START command
cannot be found in the terminal control table.
Default action: terminate the task abnormally.
STARTBR
Function
Start browse of a file.
Command syntax
──STARTBR──FILE(filename)──RIDFLD(data-area)──┬────────────────────────────────────┬─────────────────────
└─KEYLENGTH(data-value)──┬─────────┬─┘
└─GENERIC─┘
──┬───────────────────┬──┬───────────────────┬──┬────────┬──┬───────┬──"
└─REQID(data-value)─┘ └─SYSID(systemname)─┘ ├─RBA────┤ ├─GTEQ──┤
├─RRN────┤ └─EQUAL─┘
├─DEBKEY─┤
└─DEBREC─┘
Conditions:
| DISABLED, FILENOTFOUND, ILLOGIC, INVREQ, IOERR, ISCINVREQ, LOADING, NOTAUTH, NOTFND,
NOTOPEN, SYSIDERR
This option is the default for directly browsing through a This option should only be used with files referencing
KSDS or an RRDS. It is not valid for directly browsing relative record data sets.
an ESDS, although it is valid for browsing through an
SYSID(systemname)
ESDS using a path.
specifies the name of the system to which the request is
KEYLENGTH(data-value) directed.
specifies the length (halfword binary) of the key that has
If you specify SYSID, and omit both RBA and RRN, you
been specified in the RIDFLD option, except when RBA
must also specify KEYLENGTH.
or RRN is specified, in which case KEYLENGTH is not
valid.
This option must be specified if GENERIC is specified,
STARTBR conditions
and it can be specified whenever a key is specified. If Note: RESP2 values are not set for files that are on remote
the length specified is different from the length defined systems.
for the data set and the operation is not generic, the
DISABLED
INVREQ condition occurs.
occurs if a file is disabled (RESP2=50). A file may be
The INVREQ condition also occurs if a STARTBR disabled because:
command specifies GENERIC, and the KEYLENGTH is
not less than that specified in the VSAM definition. It was initially defined as disabled and has not since
been enabled.
If KEYLENGTH(0) is used with the object of positioning
on the first record in the data set, the GTEQ option must It has been disabled by a SET FILE or a CEMT
also be specified. If EQUAL is specified either explicitly SET FILE command.
or by default with KEYLENGTH(0), the results of the Default action: terminate the task abnormally.
STARTBR is unpredictable.
FILENOTFOUND
# RBA (VSAM ESDS, KSDS, or CMT) occurs if a file name referred to in the FILE option
# (base data sets only, not paths) cannot be found in the FCT and SYSID has not been
# specifies that the record identification field specified in specified (RESP2=1).
# the RIDFLD option contains a relative byte address.
# Use this option only when browsing an ESDS base, or a Default action: terminate the task abnormally.
# KSDS base when using relative byte addresses instead ILLOGIC (VSAM)
of keys to identify the records. occurs if a VSAM error occurs that does not fall within
| You cannot use RBA for user-maintained data tables. one of the other CICS response categories
(RESP2=110).
REQID(data-value)
specifies as a halfword binary value a unique request # (See EIBRCODE in the EXEC interface block; refer to
identifier for a browse, used to control multiple browse Appendix A, “EXEC interface block” on page 343 for
operations on the same or different data sets. If this details.)
option is not specified, a default value of zero is Default action: terminate the task abnormally.
assumed.
INVREQ
RIDFLD(data-area) occurs in any of the following situations:
# specifies the record identification field. When combined
# with RBA or RRN this is a 4-character field. The Browse operations are not allowed according to the
contents can be a key, a relative byte address, or file entry specification in the FCT (RESP2=20).
relative record number (for VSAM data sets), or a block The KEYLENGTH and GENERIC options are
reference, physical key, and deblocking argument (for specified, and the length defined for the data set to
BDAM data sets). For a relative byte address or a which this file specified in the KEYLENGTH option
relative record number, the format of this field must be is greater than or equal to the length of a full key
fullword binary. For a relative byte address, the RIDFLD (RESP2=25).
can be greater than or equal to zero. For a relative
The KEYLENGTH option is specified (but the
record number, the RIDFLD can be greater than or
GENERIC option is not specified), and the specified
equal to 1.
length does not equal the length defined for the data
For VSAM, a full record id of X'FF's indicates that the set to which this file refers (RESP2=26).
browse is to be positioned at the end of the data set in
An attempt is made to start a browse with a REQID
preparation for a backwards browse using READPREV
already in use for another browse (RESP2=33).
commands.
The KEYLENGTH and GENERIC options are
RRN (VSAM RRDS) specified, and the length specified in the
specifies that the record identification field specified in KEYLENGTH option is less than zero (RESP2=42).
the RIDFLD option contains a relative record number.
The specified file is a user-maintained data table This condition does not occur if the request is made
(RESP2=44). Browse commands are not in the either to a CLOSED, ENABLED file or to a CLOSED,
subset of the file control API that may be used for DISABLED file. In the first case, the file is opened as
user-maintained data tables. part of executing the request. In the second case, the
DISABLED condition occurs.
Default action: terminate the task abnormally.
Default action: terminate the task abnormally.
IOERR
occurs if there is an I/O error during the file control
operation (RESP2=120). An I/O error is any unusual
event that is not covered by a CICS condition.
For VSAM files, IOERR normally indicates a hardware
error.
(Further information is available in the EXEC interface
block; refer to Appendix A, “EXEC interface block” on
page 343 for details.)
Default action: terminate the task abnormally.
ISCINVREQ
occurs when the remote system indicates a failure that
does not correspond to a known condition (RESP2=70).
Default action: terminate the task abnormally.
| LOADING
| occurs if a STARTBR is issued to a user-maintained
| data table that is currently being loaded (RESP2=104).
| A user-maintained data table cannot be modified during
| loading.
| Default action: terminate the task abnormally.
NOTAUTH
occurs when a resource security check has failed on
FILE(filename) (RESP2=101).
Default action: terminate the task abnormally.
NOTFND
occurs if an attempt to position on a record based on the
search argument provided is unsuccessful (RESP2=80).
NOTFND can also occur if a generic STARTBR with
KEYLENGTH(0) specifies the EQUAL option.
Default action: terminate the task abnormally.
NOTOPEN
occurs in any of the following situations (RESP2=60):
SYSIDERR
| occurs when the SYSID option specifies a name that is
| neither the local system nor a remote system (made
| known to CICS by defining a CONNECTION).
SYSIDERR also occurs when the link to the remote
system is closed (RESP2=130).
Default action: terminate the task abnormally.
SUSPEND
Function
Suspend a task.
Command syntax
──SUSPEND──"
SUSPEND relinquishes control to a task of higher or equal dispatching priority. Control is returned to the task issuing the
command as soon as no other task of a higher or equal priority is ready to be processed.
SYNCPOINT
Function
Establish a syncpoint.
Command syntax
──SYNCPOINT──"
Conditions:
| INVREQ, ROLLEDBACK
SYNCPOINT conditions
| INVREQ
| occurs if SYNCPOINT was in a program that is linked to
| from a remote system that has not specified the
| SYNCONRETURN option, or if it has been linked to
| locally and is defined with
| EXECUTIONSET=DPLSUBSET (RESP2=200).
Default action: terminate the task abnormally.
| ROLLEDBACK
| occurs when a SYNCPOINT command is driven into
| rollback by a remote system that is unable to commit the
| syncpoint. All changes made to recoverable resources
| in the current LUW are backed out.
| Default action: terminate the task abnormally.
SYNCPOINT ROLLBACK
Function
Back out to last syncpoint.
Command syntax
──SYNCPOINT──ROLLBACK──"
Conditions:
INVREQ
UNLOCK
Function
Release exclusive control.
Command syntax
──UNLOCK──FILE(filename)──┬───────────────────┬──┬───────────────────┬──"
| └─TOKEN(data-value)─┘ └─SYSID(systemname)─┘
Conditions:
| DISABLED, FILENOTFOUND, ILLOGIC, INVREQ, IOERR, ISCINVREQ, NOTAUTH, NOTOPEN, SYSIDERR
UNLOCK releases the exclusive control established in It has been disabled by a SET FILE or a CEMT
response to a READ command with the UPDATE option. SET FILE command.
You use it if you retrieve a record for update, and then
This condition cannot occur when the UNLOCK
decide that you do not want to update the record after all.
follows a successful read for update or a VSAM
However, for a data set for which the system programmer
WRITE MASSINSERT.
| has specified automatic logging, or for a user-maintained
| data table that has been defined as recoverable, the Default action: terminate the task abnormally.
resource remains under the task control enqueue until either
FILENOTFOUND
a syncpoint command is executed or the task is terminated.
occurs if a file name referred to in the FILE option
| The record can be in a data set, or in a CICS or user
cannot be found in the FCT and SYSID has not been
maintained data table, on a local or a remote system.
specified (RESP2=1).
Use this command to terminate a VSAM WRITE Default action: terminate the task abnormally.
MASSINSERT operation against a VSAM file.
ILLOGIC (VSAM and CICS-maintained data tables)
occurs if a VSAM error occurs that does not fall within
UNLOCK options one of the other CICS response categories
FILE(filename) (RESP2=110).
specifies the of the file to be released. # (See EIBRCODE in the EXEC interface block; refer to
If SYSID is specified, the data set to which this file refers Appendix A, “EXEC interface block” on page 343 for
is assumed to be on a remote system irrespective of details.)
whether the name is defined in the FCT. Otherwise, the Default action: terminate the task abnormally.
FCT entry is used to find out whether the data set is on
a local or a remote system. | INVREQ
| occurs in any of the following situations:
SYSID(systemname)
specifies the name of the system to which the request is | An unlock includes a token whose value cannot be
directed. | matched against any token in use for an existing
| READ for UPDATE request (RESP2=47).
| TOKEN(data-value)
| An attempt is made to function-ship a request which
# specifies as a fullword binary value a unique request
| includes a TOKEN keyword (RESP2=48).
| identifier for an UNLOCK, used to associate it with a
| previous READ for UPDATE request. | If an UNLOCK command does not have a token, an
| attempt is made to match it to a READ for UPDATE
| which also does not have a token. If this is not found,
UNLOCK conditions | no action is taken and a NORMAL response is returned.
Note: RESP2 values are not set for files that are on remote
| Default action: terminate the task abnormally.
systems.
IOERR
DISABLED
occurs if there is an I/O error during the file control
occurs if a file is disabled (RESP2=50). A file may be
operation (RESP2=120). An I/O error is any unusual
disabled because:
event that is not covered by a CICS condition.
It was initially defined as disabled and has not since For VSAM files, IOERR normally indicates a hardware
been enabled. error.
SYSIDERR
| occurs when the SYSID option specifies a name that is
| neither the local system nor a remote system (made
| known to CICS by defining a CONNECTION).
SYSIDERR also occurs when the link to the remote
system is closed (RESP2=130).
Default action: terminate the task abnormally.
| VERIFY PASSWORD
| Function
| Allows an application to check that a password matches the password recorded by an external security manager (ESM) for a
| userid, and return values recorded by the external security manager for the password.
| Command syntax
|
| ──VERIFY PASSWORD(data-value)──USERID(data-value)──┬───────────────────────┬──┬─────────────────────┬────
| └─CHANGETIME(data-area)─┘ └─DAYSLEFT(data-area)─┘
| ──┬──────────────────────┬──┬────────────────────┬──┬───────────────────────┬─────────────────────────────
| └─ESMREASON(data-area)─┘ └─ESMRESP(data-area)─┘ └─EXPIRYTIME(data-area)─┘
| ──┬─────────────────────────┬──┬────────────────────────┬──"
| └─INVALIDCOUNT(data-area)─┘ └─LASTUSETIME(data-area)─┘
| Conditions:
| INVREQ, NOTAUTH, USERIDERR
| NOTAUTH
| occurs in any of the following situations:
| USERIDERR
| occurs if the USERID is not known to the external
| security manager (RESP2=8).
| Default action: terminate the task abnormally.
Function
Ensure accumulated data is transmitted on an APPC mapped conversation.
Command syntax
──WAIT CONVID(name)──┬─────────────┬──"
└─STATE(cvda)─┘
Conditions:
INVREQ, NOTALLOC
STATE(cvda)
gets the state of the current conversation. The cvda
values returned by CICS are:
ALLOCATED
CONFFREE
CONFRECEIVE
CONFSEND
FREE
PENDFREE
PENDRECEIVE
RECEIVE
ROLLBACK
SEND
SYNCFREE
SYNCRECEIVE
SYNCSEND
WAIT EVENT
Function
Wait for an event to occur.
Command syntax
──WAIT EVENT──ECADDR(ptr-value)──┬────────────┬──"
| └─NAME(name)─┘
Conditions:
INVREQ
WAIT EVENT synchronizes a task with the completion of an WAIT EVENT condition
event initiated by the same task or by another task. The
event would normally be the posting, at the expiration time, INVREQ
of a timer-event control area provided in response to a POST occurs in any of the following situations:
command, as described in “POST” on page 178. The WAIT The value of the pointer is zero (X'00000000')
EVENT command provides a method of directly relinquishing (RESP2=2).
control to some other task until the event being waited on is
completed. The specified event control area address is above
the 16MB line for programs executing in 24-bit
| CICS includes the addresses of all ECBs passed by WAIT mode (RESP2=3).
| EVENT commands of current tasks in the ECBLIST passed The event control area address is not aligned on a
| by CICS to the MVS WAIT facility when it runs out of work. fullword boundary (RESP2=4).
| Such ECBs can be posted using the MVS POST facility or by
| hand posting. Hand posting could, for example, be done by | The timer-event control area specified on a WAIT
| moving an appropriate value into the ECB. | EVENT is in user-key task-lifetime storage, and is
| inaccessible to another transaction. This condition
| A given ECB may not be waited on by more than one task at | can only occur if the storage for the timer-event
| the same time. If this rule is not followed and the ECBLIST | control area is obtained other than by a POST
| passed by CICS on the MVS WAIT contains duplicate ECB | command, and is for posting as an ECB by some
| addresses, MVS abends CICS. | other task on completion of an event (RESP2=6).
| Note: CICS obtains storage for a timer-event
The following example shows you how to suspend the
| control area in response to a POST command (and
processing of a task until the specified event control area is
| which can be used in conjunction with the WAIT
posted:
| EVENT command) from a shared subpool in
EXEC CICS WAIT EVENT ECADDR(PVALUE) | user-key storage. This ensures that timer-event
| control areas are in shared storage and, when
WAIT EVENT options | referenced by a subsequent WAIT EVENT
| command, do not fail with an INVREQ.
ECADDR(ptr-value)
specifies the address of the timer-event control area that Default action: terminate the task abnormally.
must be posted before task activity can be resumed.
| NAME(name)
| specifies the symbolic name, 1–8 alphanumeric
| characters, that is returned in SUSPENDVALUE or
| HVALUE, when a task issues WAIT EVENT and is the
| subject of an INQ TASK command or a CEMT INQ
| TASK.
WAIT EXTERNAL
Function
Synchronize events.
Command syntax
┌─PURGEABLE──────────┐
──WAIT EXTERNAL──ECBLIST(ptr-value)──NUMEVENTS(data-value)──┼────────────────────┼──┬────────────┬──"
| ├─PURGEABILITY(cvda)─┤ └─NAME(name)─┘
└─NOTPURGEABLE───────┘
Conditions:
INVREQ
PURGEABILITY(cvda)
determines the outcome of:
WAIT JOURNALNUM
Function
Synchronize with journal output.
Command syntax
──WAIT JOURNALNUM(data-value)──┬───────────────────┬──┬─────────┬──"
└─REQID(data-value)─┘ └─STARTIO─┘
Conditions:
# INVREQ, IOERR, JIDERR, NOTOPEN
The journal records in the journal buffer area may already be WAIT JOURNALNUM conditions
written out to auxiliary storage, or the journal record output # INVREQ
operation may be in progress. If the output operation has # occurs if a WAIT JOURNALNUM command is issued
already been completed, control returns immediately to the # before any WRITE JOURNALNUM command has been
requesting task; if not, the requesting task waits until the # issued in the same task.
operation has been completed. If STARTIO is specified,
output is initiated immediately. # Default action: terminate the task abnormally.
IOERR
If the requesting program has made a succession of
occurs if the physical output of a journal record was not
successful asynchronous output requests to the same
accomplished because of an irrecoverable I/O error.
journal, it is necessary to synchronize on only the last of
these requests to ensure that all of the journal records have Default action: terminate the task abnormally.
reached auxiliary storage. This may be done either by
JIDERR
issuing a stand-alone WAIT JOURNALNUM command, or by
occurs if the specified journal identifier does not exist in
making the last output command itself synchronous (by
the journal control table (JCT).
specifying the WAIT option in the WRITE JOURNALNUM
command). Default action: terminate the task abnormally.
REQID(data-value)
specifies a fullword binary variable set to a number that
refers to the journal record that has been created but
possibly not yet written out.
If REQID is not specified, the task is synchronized with
the output of the last record created for the journal
specified by JOURNALNUM.
WAIT SIGNAL
Function
Suspend task on a logical unit.
Command syntax
──WAIT SIGNAL──"
Conditions:
# NOTALLOC, SIGNAL, TERMERR
The logical units for which you can code a WAIT SIGNAL
command are:
LUTYPE4
LUTYPE6.1
3600 (3601)
3767 interactive
3770 batch
3790 full-function.
SIGNAL
occurs when the data-flow control command has been
received from the principal facility.
EIBSIG is always set when an inbound signal is
received.
Default action: ignore the condition.
TERMERR
occurs for a terminal-related error.
A CANCEL TASK request by a user node error program
(NEP) may cause this condition if the task has an
outstanding terminal control request active when the
node abnormal condition program (CSNE) handles the
session error.
Default action: terminate the task abnormally with abend
code ATNI.
WAIT TERMINAL
Function
Ensure terminal operation has completed on an LUTYPE6.1 logical unit.
Command syntax
──WAIT TERMINAL──┬───────────────┬──"
├─CONVID(name)──┤
└─SESSION(name)─┘
Conditions:
INVREQ, NOTALLOC, SIGNAL
SESSION(name)
specifies the symbolic identifier (1–4 characters) of a
session TCTTE. This option specifies the alternate
facility to be used. If both this option and CONVID are
omitted, the principal facility for the task is used.
NOTALLOC
occurs if the facility specified in the command is not
owned by the application.
Default action: terminate the task abnormally.
SIGNAL
occurs when an inbound SIGNAL data-flow control
command is received from a logical unit or session.
EIBSIG is always set when an inbound signal is
received.
Default action: ignore the condition.
WAITCICS
Function
Synchronize events.
Command syntax
┌─PURGEABLE──────────┐
──WAITCICS──ECBLIST(ptr-value)──NUMEVENTS(data-value)──┼────────────────────┼──┬────────────┬──"
| ├─PURGEABILITY(cvda)─┤ └─NAME(name)─┘
└─NOTPURGEABLE───────┘
Conditions:
INVREQ
PURGEABILITY(cvda)
causes the issuing task to be suspended until one of the
ECBs has been posted; that is, until one of the events
has occurred. The values passed to CICS are
PURGEABLE (the default value), or NOTPURGEABLE.
The field is fullword binary. If while this task is waiting
another function attempts to purge it, the result is as
follows:
WRITE
Function
Write a record.
Command syntax
──WRITE──FILE(filename)──┬────────────┬──FROM(data-area)──┬────────────────────┬──RIDFLD(data-area)──────
└─MASSINSERT─┘ └─LENGTH(data-value)─┘
──┬───────────────────────┬──┬───────────────────┬──┬─────┬──"
└─KEYLENGTH(data-value)─┘ └─SYSID(systemname)─┘ ├─RBA─┤
└─RRN─┘
Conditions:
| DISABLED, DUPREC, FILENOTFOUND, ILLOGIC, INVREQ, IOERR, ISCINVREQ, LENGERR, LOADING,
| NOSPACE, NOTAUTH, NOTOPEN, SUPPRESSED, SYSIDERR
WRITE conditions There is an I/O error during the file control operation
(RESP2=120). An I/O error is any unusual event
Note: RESP2 values are not set for files that are on remote
that is not covered by a CICS condition. (Further
systems.
information is available in the EXEC interface block;
DISABLED refer to Appendix A, “EXEC interface block” on
occurs if a file is disabled (RESP2=50). A file may be page 343 for details.)
disabled because: For VSAM files, IOERR normally indicates a
It was initially defined as disabled and has not since hardware error.
been enabled. You are trying to write to a BDAM track address that
It has been disabled by a SET FILE or a CEMT is not defined for the data set (RESP2=120).
SET FILE command. Default action: terminate the task abnormally.
Default action: terminate the task abnormally.
NOSPACE
| occurs in the following situations:
NOTAUTH
occurs when a resource security check has failed on
FILE(filename) (RESP2=101).
Default action: terminate the task abnormally.
NOTOPEN
occurs in any of the following situations (RESP2=60):
WRITE JOURNALNUM
Function
Create a journal record.
Command syntax
──WRITE JOURNALNUM(data-value)──JTYPEID(data-value)──FROM(data-area)──┬────────────────────┬─────────────
└─LENGTH(data-value)─┘
──┬──────────────────┬──┬─────────────────────────────────────────────┬──┬─────────┬──┬──────┬────────────
└─REQID(data-area)─┘ └─PREFIX(data-value)──┬─────────────────────┬─┘ └─STARTIO─┘ └─WAIT─┘
└─PFXLENG(data-value)─┘
──┬───────────┬──"
└─NOSUSPEND─┘
Conditions:
IOERR, JIDERR, LENGERR, NOJBUFSP, NOTAUTH, NOTOPEN
PFXLENG(data-value)
The following example shows how to request deferred
specifies the length (halfword binary value) in bytes of
(asynchronous) journal output:
the user prefix data to be included in the journal record.
EXEC CICS WRITE The minimum value is 0 and the maximum value is
JOURNALNUM(1) (buffer size−72) minus LENGTH.
JTYPEID('SD')
FROM(COMDATA) PREFIX(data-value)
LENGTH(1O) specifies the user prefix data to be included in the
REQID(ENTRYID) journal record. A data area must be provided in COBOL
programs.
REQID(data-area)
specifies a data area that identifies the journal record.
The data area is a fullword binary variable. CICS sets
the variable to a number that depends upon the position
in the data set of the record being created. REQID
applies to asynchronous output (WAIT option not
specified).
STARTIO
specifies that output of the journal record is to be
initiated immediately. If WAIT is specified for a journal
with a low utilization, STARTIO should be specified also
to prevent the requesting task waiting for the journal
buffer to be filled. Very high utilization ensures that the
buffer is cleared quickly, so that STARTIO is
unnecessary.
WAIT
specifies that synchronous journal output is required.
The requesting task waits until the record has been
written.
JIDERR
occurs if the specified journal identifier does not exist in
the journal control table (JCT).
Default action: terminate the task abnormally.
LENGERR
occurs if the computed length for the journal record
exceeds the total buffer space allocated for the journal,
as specified in the JCT entry for the journal, or if the
length specified for the prefix or for the data is negative.
Default action: terminate the task abnormally.
NOJBUFSP
occurs if the journal buffers are logically full (that is, the
current buffer is full, and I/O is in progress on the
alternate buffer) or the remaining space in the current
buffer is insufficient for this journal record.
Default action: suspend task activity until the journal
request can be satisfied. CICS ensures that both buffers
are written out to auxiliary storage, thus freeing them for
new records. (The default can be overridden by the
NOSUSPEND option.)
NOTAUTH
occurs when a resource security check has failed on
JOURNALNUM(data-value).
Default action: terminate the task abnormally.
NOTOPEN
occurs if the journal command cannot be satisfied
because the specified journal is not open.
Default action: terminate the task abnormally.
WRITE OPERATOR
Function
Write a message on the system console.
Command syntax
──WRITE OPERATOR──TEXT(data-value)──┬────────────────────────┬───────────────────────────────────────────
└─TEXTLENGTH(data-value)─┘
──┬───────────────────────────────────────────────┬───────────────────────────────────────────────────────
└─ROUTECODES(data-value)──NUMROUTES(data-value)─┘
┌─EVENTUAL─────────────────────────────────────────────────────────────────────────────────────┐
──┼──────────────────────────────────────────────────────────────────────────────────────────────┼──"
| ├─ACTION(cvda)─────────────────────────────────────────────────────────────────────────────────┤
├─CRITICAL─────────────────────────────────────────────────────────────────────────────────────┤
├─IMMEDIATE────────────────────────────────────────────────────────────────────────────────────┤
└─REPLY(data-area)──MAXLENGTH(data-value)──┬────────────────────────┬──┬─────────────────────┬─┘
└─REPLYLENGTH(data-area)─┘ └─TIMEOUT(data-value)─┘
Conditions:
EXPIRED, INVREQ, LENGERR
WRITE OPERATOR enables an application to write a programmer for information about how this command affects
message to one or more system consoles and, if necessary, the appearance of the console screen to the operator.
wait for a reply. The command can specify route codes.
This is of particular use to application packages that need to
issue their own operator messages.
WRITE OPERATOR options
Note: CICS/VSE, unlike CICS/ESA, does not support the
As a result of a change in the way CICS handles messages options ACTION, ROUTECODES, and NUMROUTES. If a
sent to the console, text lengths of greater than 113 program containing any of these three options is translated
characters are split into two lines. on VSE, warning message DFH7117 is produced and the
option ignored.
None of the variables below can be defined as PL/I variable
character strings. | ACTION(cvda)
specifies an action code to be associated with this
Note: If ACTION (or one of the equivalent CVDA values
message. The CVDA values are:
below) is specified, the message is retained by MVS until the
console operator explicitly deletes it or CICS terminates. CRITICAL specifies that the message requires
eventual action by the operator and
The action code is identical with the MVS descriptor code to has enough critical importance to
be associated with the message. Only one of the descriptor remain on the console screen. The
codes 2, 3, or 11 may be specified for this parameter. message remains on the screen until
it is deleted by the operator.
If ACTION is not specified, no descriptor code is associated
with the message. The descriptor codes have the following EVENTUAL specifies that the operator should
meanings: take action when there is time. The
message is rolled off when other
2 Immediate action
messages fill up the screen, but is
3 Eventual action
still retained by the operating system
11 Critical eventual action.
until the operator explicitly deletes it.
The CRITICAL option is equivalent to a specification of IMMEDIATE specifies that the operator should
ACTION(11). The EVENTUAL option is equivalent to a take action immediately. The
specification of ACTION(3). The IMMEDIATE option is message remains on the console
equivalent to a specification of ACTION(2). screen until it is deleted by the
operator.
Messages retained by MVS can be handled by the console
operator in a variety of ways (see the MVS/ESA Operations:
System Commands manual). Refer to your system
TEXT(data-value) LENGERR
is a data value containing the text to be sent. occurs when the reply was longer than MAXLENGTH,
and has been truncated (RESP2=8).
# For COBOL programs to be compiled with a Language
# Environment-conforming compiler, and translated with | Default action: terminate the task abnormally.
# the COBOL3 translator option, there is a restriction in
# the length of data-value, which cannot exceed 160
# bytes. If you are using an earlier compiler, such as VS
# COBOL II, that does not support the COBOL3 translator
# option, you must use a data-area that contains the text
# to be sent to the operator, and not a data-value.
TEXTLENGTH(data-value)
specifies the length (fullword binary value) of the text.
| If the REPLY option is specified, the length is in the
| range 0–121 bytes.
If the REPLY option is not specified, the length is in the
range 0–690 bytes.
If the length of the text is greater than 113, CICS
formats the message in a multiline write to operator
(WTO); each line has 69 bytes with a maximum of ten
lines.
# Apar 85038
# Documentation for Apar 85038 added 11/07/96
TIMEOUT(data-value)
is a fullword binary field that contains the maximum time
(in seconds) that CICS waits for a reply before returning
WRITEQ TD
Function
Write data to transient data queue.
Command syntax
──WRITEQ TD──QUEUE(name)──FROM(data-area)──┬────────────────────┬──┬───────────────────┬──"
└─LENGTH(data-value)─┘ └─SYSID(systemname)─┘
Conditions:
DISABLED, INVREQ, IOERR, ISCINVREQ, LENGERR, NOSPACE, NOTAUTH, NOTOPEN, QIDERR, SYSIDERR
SYSID(systemname) — remote systems only WRITEQ names an extrapartition queue and does
specifies the name (1–4 characters) of the system to not specify a length consistent with the RECFORM
which the request is directed. and RECSIZE options specified in the destination
control table TYPE=SDSCI that defined the queue.
If SYSID is specified, the data set is assumed to be on a
The check is made after the XTDOUT exit has been
remote system irrespective of whether or not the name
invoked; this exit may change the length of the data
is defined as remote in the DCT. Otherwise the entry in
to be passed to the access method.
the DCT is used to find out whether the data set is on a
local or a remote system. WRITEQ names an intrapartition queue and does
not specify a length consistent with the control
interval defined for the intrapartition data set. Again,
the check is made after the XTDOUT exit has been
invoked.
NOSPACE
occurs if no more space exists on the intrapartition or
extrapartition queue.
# Apar PQ07370
# The following paragraph was added by APAR PQ
# 07370 6/7/1998
NOTAUTH
occurs when a resource security check has failed on
QUEUE(name).
Default action: terminate the task abnormally.
NOTOPEN
occurs if the destination is closed.
Note: This condition cannot be raised for intrapartition
queues.
Default action: terminate the task abnormally.
QIDERR
occurs if the symbolic destination to be used with a
transient data control command cannot be found.
Default action: terminate the task abnormally.
SYSIDERR
| occurs when the SYSID option specifies a name that is
| neither the local system nor a remote system (made
| known to CICS by defining a CONNECTION).
SYSIDERR also occurs when the link to the remote
system is closed.
Default action: terminate the task abnormally.
WRITEQ TS
Function
Write data to a temporary storage queue.
Command syntax
──WRITEQ TS──QUEUE(name)──FROM(data-area)──┬────────────────────┬──┬──────────────────────────────┬──────
└─LENGTH(data-value)─┘ ├─NUMITEMS(data-area)──────────┤
└─ITEM(data-area)──┬─────────┬─┘
└─REWRITE─┘
┌─AUXILIARY─┐
──┬───────────────────┬──┼───────────┼──┬───────────┬──"
└─SYSID(systemname)─┘ └─MAIN──────┘ └─NOSUSPEND─┘
Conditions:
INVREQ, IOERR, ISCINVREQ, ITEMERR, LENGERR, NOSPACE, NOTAUTH, QIDERR, SYSIDERR
NUMITEMS(data-area)
specifies a halfword binary field into which CICS stores a
number indicating how many items there are now in the
queue, after the WRITEQ TS command is executed.
If the record starts a new queue, the item number
assigned is 1; subsequent item numbers follow on
sequentially. NUMITEMS is not valid if REWRITE is
specified.
QUEUE(name)
specifies the symbolic name (1-8 characters) of the
queue to be written to. If the queue name appears in
the TST, and the entry is marked as remote, the request
is shipped to a remote system. The name must be
unique within the CICS system. Do not use X'FA'
| through X'FF', or **, or $$, or DF, as the first character
of the name; these characters are reserved for CICS
use. The name cannot consist solely of binary zeros.
REWRITE
specifies that the existing record in the queue is to be
overwritten with the data provided. If the REWRITE
option is specified, the ITEM option must also be
specified. If the specified queue does not exist, the
QIDERR condition occurs. If the correct item within an
existing queue cannot be found, the ITEMERR condition
occurs and the data is not stored.
WRITEQ TS conditions
INVREQ
occurs in any of the following situations:
IOERR
occurs when there is an irrecoverable input/output error.
Default action: terminate the task abnormally.
ITEMERR
occurs in any of the following situations:
LENGERR
| occurs in any of the following situations:
NOSPACE
occurs when insufficient space is available in the
temporary storage data set to contain the data, and the
NOSUSPEND option is specified.
Default action: ignore the condition.
NOTAUTH
occurs when a resource security check has failed on
QUEUE(name).
Default action: terminate the task abnormally.
QIDERR
occurs when the queue specified by a WRITEQ TS
command with the REWRITE option cannot be found,
either in main or in auxiliary storage.
Default action: terminate the task abnormally.
SYSIDERR
| occurs when the SYSID option specifies a name that is
| neither the local system nor a remote system (made
| known to CICS by defining a CONNECTION).
SYSIDERR also occurs when the link to the remote
system is closed.
Default action: terminate the task abnormally.
XCTL
Function
Transfer program control.
Command syntax
──XCTL──PROGRAM(name)──┬─────────────────────────────────────────────┬───────────────────────────────────
└─COMMAREA(data-area)──┬────────────────────┬─┘
└─LENGTH(data-value)─┘
──┬──────────────────────────────────────────────────┬──"
└─INPUTMSG(data-area)──┬─────────────────────────┬─┘
└─INPUTMSGLEN(data-value)─┘
Conditions:
INVREQ, LENGERR, NOTAUTH, PGMIDERR
XCTL transfers control from one application program to | defined as a program to CICS, though if AUTOINSTALL
another at the same logical level. The program from which | is active a definition is autoinstalled.
control is transferred is released. If the program to which
control is transferred is not already in main storage, it is
loaded.
XCTL conditions
INVREQ
The following example shows how to request a transfer of occurs in the following circumstances:
control to an application program called PROG2:
EXEC CICS XCTL PROGRAM('PROG2') An XCTL command with the INPUTMSG option is
issued for a program that is not associated with a
terminal, or that is associated with an APPC logical
XCTL options unit, or an IRC session (RESP2=8).
COMMAREA(data-area) | EXEC XCTL is not allowed in a GLUE or TRUE
specifies a communication area to be made available to | (RESP2=29).
the invoked program. In this option a pointer to the data | The program manager domain has not yet been
area is passed. In COBOL, you must give this data area | initialized. This is probably due to a XCTL request
the name DFHCOMMAREA in the receiving program. | having been made in a first stage PLT (RESP2=30).
(See the section about passing data to other programs
in the CICS/ESA Application Programming Guide.) | An XCTL command with the INPUTMSG option is
| issued in a program invoked by DPL (RESP2=200).
INPUTMSG(data-area)
specifies data to be passed to the invoked program Default action: terminate the task abnormally.
when it first issues a RECEIVE command. If the | LENGERR
invoked program passes control to another program by a | occurs in the following conditions:
LINK command, a linked chain is created, as described
under the INPUTMSG option of the LINK command. | LENGTH is less than 0 or greater than 32763
The INPUTMSG data remains available until a RECEIVE | (RESP2=11).
command is issued or until control returns to CICS. | The COMMAREA address passed was zero, but
INPUTMSGLEN(data-value) | LENGTH was non-zero (RESP2=26).
specifies a halfword binary value that specifies the | INPUTMSGLEN was less than 0 or greater than
length of the data passed by INPUTMSG. | 32767 (RESP2=27).
LENGTH(data-value) | LENGTH or INPUTMSGLEN is greater than the
specifies the length (halfword binary data value) in bytes | length of the data area specified in the COMMAREA
of the communication area. For a description of a safe | or INPUTMSG options, and while that data was
upper limit, see “LENGTH options” on page 5. | being copied a destructive overlap occurred
| because of the incorrect length (RESP2=28).
PROGRAM(name)
specifies the identifier (1–8 alphanumeric characters) of | Default action: terminate the task abnormally.
the program to which control is to be passed
unconditionally. The specified name must have been
NOTAUTH PGMIDERR
occurs when a resource security check has failed on occurs in any of the following situations:
| PROGRAM(name) (RESP2=101).
| A program has no entry in the PPT and either
Default action: terminate the task abnormally. | program autoinstall was switched off, or the program
| autoinstall control program indicated that the
| program should not be autoinstalled (RESP2=1).
The program is disabled (RESP2=2).
| A program could not be loaded because
| – This was the first load of the program and the
| program load failed, usually because the load
| module could not be found.
| – This was a subsequent load of the program, but
| the first load failed.
| In order to reset the load status the load module
| must be in the DFHRPL concatenation, and a SET
| PROGRAM NEWCOPY will be required (RESP2=3).
The installed program definition is for a remote
program (RESP2=9).
| The program autoinstall control program failed either
| because the program autoinstall control program is
| incorrect, incorrectly defined, or as a result of an
| abend in the program autoinstall control program.
| Program autoinstall is disabled and message
| DFHPG0202 or DFHPG0203 written to the CSPL
| (RESP2=21).
| The model returned by the program autoinstall
| control program was not defined in the PPT table, or
| was not enabled (RESP2=22).
| The program autoinstall control program returned
| invalid data (RESP2=23).
| Define for the program failed due to autoinstall
| returning an invalid program name or definition
| (RESP2=24).
EIBCONF
For each field, the contents and format (for each of the
indicates that a CONFIRM request has been received
application programming languages COBOL, C, PL/I, and
(X'FF') for an APPC conversation.
ASM) are given. All fields contain zeros in the absence of
meaningful information. Fields are listed in alphabetical COBOL: PIC X(1).
order. C: unsigned char eibconf;
PL/I: CHAR(1)
ASM: CL1
EIB fields EIBCPOSN
contains the cursor address (position) associated with
the last terminal control or basic mapping support (BMS)
EIBAID
input operation from a display device such as the 3270.
contains the attention identifier (AID) associated with the
last terminal control or basic mapping support (BMS) COBOL: PIC S9(4) COMP.
input operation from a display device such as the 3270. C: short int eibcposn;
PL/I: FIXED BIN(15)
COBOL: PIC X(1). ASM: H
C: unsigned char eibaid;
PL/I: CHAR(1) EIBDATE
ASM: CL1 contains the date the task is started; this field is updated
by the ASKTIME command. The date is in packed
EIBATT
decimal form (0CYYDDD+) where C shows the century
indicates that the RU contains attach header data
with values 0 for the 1900s and 1 for the 2000s. For
(X'FF').
example, the dates 31 December 1999 and 1 January
COBOL: PIC X(1). 2000 have EIBDATE values of 0099365 and 0100001
C: unsigned char eibatt; respectively.
PL/I: CHAR(1)
ASM: CL1 COBOL: PIC S9(7) COMP-3.
C: char eibdate [4];
EIBCALEN PL/I: FIXED DEC(7,O)
contains the length of the communication area that has ASM: PL4
been passed to the application program from the last
EIBDS
program, using the COMMAREA and LENGTH options.
contains the symbolic identifier of the last data set
If no communication area is passed, this field contains
referred to in a file control request.
zeros.
COBOL: PIC X(8).
COBOL: PIC S9(4) COMP.
C: char eibds [8];
C: short int eibcalen;
PL/I: CHAR(8)
PL/I: FIXED BIN(15)
ASM: CL8
ASM: H
EIBEOC
EIBCOMPL
indicates that an end-of-chain indicator appears in the
indicates, on a terminal control RECEIVE command,
RU just received (X'FF').
whether the data is complete (X'FF'). If the
NOTRUNCATE option has been used on the RECEIVE COBOL: PIC X(1).
command, CICS retains data in excess of the amount C: unsigned char eibeoc;
requested via the LENGTH or MAXLENGTH option. PL/I: CHAR(1)
EIBRECV is set indicating that further RECEIVE ASM: CL1
commands are required. EIBCOMPL is not set until the
last of the data has been retrieved.
EIBCOMPL is always set when a RECEIVE command
without the NOTRUNCATE option is executed.
EIBFREE
16O2 SYNCPOINT indicates that the application program cannot continue
using the facility. The application program should either
18O2 RECEIVE MAP free the facility or should terminate so that the facility is
18O4 SEND MAP freed by CICS (X'FF').
18O6 SEND TEXT
18O8 SEND PAGE COBOL: PIC X(1).
18OA PURGE MESSAGE C: unsigned char eibfree;
18OC ROUTE PL/I: CHAR(1)
18OE RECEIVE PARTN ASM: CL1
181O SEND PARTNSET EIBNODAT
1812 SEND CONTROL
indicates that no data has been sent by the remote
1CO2 DUMP application (X'FF'). A message has been received from
the remote system that conveyed only control
1EO2 ISSUE ADD information. For example, if the remote application
1EO4 ISSUE ERASE executed a SEND command with the WAIT option, any
1EO6 ISSUE REPLACE data would be sent across the link. If the remote
1EO8 ISSUE ABORT application then executed a SEND INVITE command
1EOA ISSUE QUERY without using the FROM option to transmit data at the
1EOC ISSUE END same time, it would be necessary to send the INVITE
1EOE ISSUE RECEIVE instruction across the link by itself. In this case, the
1E1O ISSUE NOTE receiving application finds EIBNODAT set. The use of
1E12 ISSUE WAIT this field is restricted to application programs holding
1E14 ISSUE SEND conversations across APPC links only.
2OO2 BIF DEEDIT COBOL: PIC X(1).
C: unsigned char eibnodat;
48O2 ENTER TRACENUM PL/I: CHAR(1)
48O4 MONITOR ASM: CL1
EIBRCODE
4AO2 ASKTIME ABSTIME
4AO4 FORMATTIME contains the CICS response code returned after the
| function requested by the last CICS command to be
| 56O2 SPOOLOPEN issued by the task has been completed.
| 56O4 SPOOLREAD Note: For new commands where EIBRESP and
| 56O6 SPOOLWRITE EIBRESP2 are the strategic means of interrogating the
| 561O SPOOLCLOSE resulting condition of an executed command, byte 3 of
EIBRCODE has the same value as EIBRESP. Any
5EO6 CHANGE TASK
further information is in EIBRESP2 rather than
5E22 WAIT EXTERNAL
| 5E32 WAITCICS EIBRCODE. For a normal response, this field contains
hexadecimal zeros (6 X'00').
6AO2 QUERY SECURITY Almost all of the information in this field can be used
6CO2 WRITE OPERATOR within application programs by the HANDLE
6C12 ISSUE DFHWTO CONDITION command.
74O2 SIGNON COBOL: PIC X(6).
74O4 SIGNOFF C: char eibrcode [6];
| 74O6 VERIFY PASSWORD PL/I: CHAR(6)
| 74O8 CHANGE PASSWORD ASM: CL6
The following list contains the values of the bytes
7EO2 DUMP TRANSACTION together with the names of the conditions associated
Codes 82nn and 84nn are used by the CICS/ESA Front with the return codes.
End Programming Interface. See the CICS/ESA Front See the notes at the end of the list of values for
End Programming Interface User’s Guide for a explanations of the numbers following some of the
description. conditions.
Notes:
3. If SYSBUSY occurs on an ALLOCATE command 5. When LENGERR occurs during terminal control
that attempts to acquire a session to an APPC operations, further information is provided in byte 1
terminal or system, byte 3 of the EIBRCODE of EIBRCODE, as follows:
indicates where the error condition was detected: .. OO .. .. .. .. input data is overlong and
.. .. .. OO .. .. the request was for a has been truncated.
session to a connected .. O4 .. .. .. .. on output commands, an
terminal or system. incorrect (FROM)LENGTH has
.. .. .. O1 .. .. the request was for a been specified, either less
session to a remotely than zero or greater than
connected terminal or 32 767.
system, and the error .. O8 .. .. .. .. on input commands, an
occurred in the terminal- incorrect (TO)LENGTH has
owning region (TOR) or been specified, greater than
an intermediate system. 32 767.
.. .. .. O2 .. .. the request was for a .. OC .. .. .. .. length error has occurred on
session to a remotely ISSUE PASS command.
connected terminal or
| Note: This field is not used exclusively for the
system, and the error
| above and may take other values.
occurred in the
application-owning 6. When ILLOGIC or IOERR occurs during file control
region (AOR). operations, further information is provided in field
Further information about SYSBUSY can be found EIBRCODE, as follows:
in the CICS/ESA Intercommunication Guide. .. xx xx xx xx .. BDAM response.
.. xx .. .. .. .. VSAM return code.
4. When INVREQ occurs during terminal control
.. .. xx .. .. .. VSAM error code.
| operations, further information is provided in bytes 1
| or 3 of EIBRCODE as follows: Details of these response codes are given in the
# DFSMS/MVS Macro Instructions for Data Sets
| .. 24 .. .. .. .. ISSUE PREPARE command -
| STATE error. # manual for VSAM, and the Data Facility Product
.. .. .. O4 .. .. ALLOCATE command - TCTTE Customization Guide for BDAM.
already allocated. 7. When INVMPSZ occurs during BMS operations,
.. .. .. O8 .. .. FREE command - TCTTE in byte 3 of field EIBRCODE contains the terminal
wrong state. code:
.. .. .. OC .. .. CONNECT PROCESS command -
SYNCLVL 2 requested, but .. .. .. xx .. .. terminal code.
cannot be supported on These are the same as the mapset suffixes shown
the session in use. in Table 27 on page 400.
.. .. .. 1O .. .. EXTRACT ATTACH command -
incorrect data. 8. Codes 82nn and 84nn are used by the CICS/ESA
.. .. .. 14 .. .. SEND command - CONFIRM Front End Programming Interface. See the
option specified, but CICS/ESA Front End Programming Interface User’s
conversation not SYNCLVL 1. Guide for a description.
.. .. .. 18 .. .. EXTRACT TCT command -
incorrect netname. EIBRECV
.. .. .. 1C .. .. an incorrect command has indicates that the application program is to continue
been issued for the terminal receiving data from the facility by executing RECEIVE
or logical unit in use. commands (X'FF').
.. .. .. 2O .. .. an incorrect command has COBOL: PIC X(1).
been issued for the LUTYPE6.2 C: unsigned char eibrecv;
conversation type in use. PL/I: CHAR(1)
.. .. .. 28 .. .. GETMAIN failure on ISSUE ASM: CL1
PASS command.
EIBREQID
contains the request identifier assigned to an interval
control command by CICS; this field is not used when a
request identifier is specified in the application program.
COBOL: PIC X(8).
C: char eibreqid [8];
PL/I: CHAR(8)
ASM: CL8
EIBRESP2
contains more detailed information that may help explain
why the RESP condition occurred. This field contains
meaningful values, as documented with each command
EIBSYNC
indicates that the application program must take a
syncpoint or terminate. Before either is done, the
application program must ensure that any other facilities,
owned by it, are put into the send state, or are freed
(X'FF').
COBOL: PIC X(1).
C: unsigned char eibsync;
PL/I: CHAR(1)
ASM: CL1
EIBSYNRB
indicates that the application program should issue a
SYNCPOINT ROLLBACK command (X'FF'). This field
is only set in application programs holding a
conversation on an APPC or MRO link.
COBOL: PIC X(1).
C: unsigned char eibsynrb;
PL/I: CHAR(1)
ASM: CL1
EIBTASKN
contains the task number assigned to the task by CICS.
This number appears in trace table entries generated
while the task is in control. The format of the field is
packed decimal.
COBOL: PIC S9(7) COMP-3.
C: char eibtaskn [4];
PL/I: FIXED DEC(7,O)
ASM: PL4
EIBTIME
contains the time at which the task is started (this field is
# updated by the ASKTIME command). The time is in
# packed decimal form (0HHMMSS+), and can contain a
# value in the range 0000000+ to 0240000+. Both
# 0000000+ and 0240000+ are valid.
COBOL: PIC S9(7) COMP-3.
C: char eibtime [4];
PL/I: FIXED DEC(7,O)
ASM: PL4
EIBTRMID
contains the symbolic terminal identifier of the principal
facility (terminal or logical unit) associated with the task.
COBOL: PIC X(4).
C: char eibtrmid [4];
PL/I: CHAR(4)
ASM: CL4
EIBTRNID
contains the symbolic transaction identifier of the task.
COBOL: PIC X(4).
C: char eibtrnid [4];
PL/I: CHAR(4)
ASM: CL4
The codes are listed here as both bit patterns and 11.. ...1 X'C1' LUTYPE 4
hexadecimal values. 11.1 ...1 X'D1' ISC MM conversation
11.1 ..1. X'D2' LUC mode group entry
Code Meaning 11.1 ..11 X'D3' LUC session
.... ...1 X'01' 7770 Note: X'D3' is not used.
.... ..1. X'02' System 7
.... 1... X'08' Console
...1 ..1. X'12' Sequential disk
...1 .1.. X'14' Magnetic tape ASSIGN FCI
...1 1... X'18' Card reader or line printer
...1 1..1 X'19' Spooling system printer This section gives the meanings of the facility control
...1 1.1. X'1A' Spooling internal reader indicator codes in the data area returned by the FCI option of
..1. .... X'20' Hard-copy terminals the ASSIGN command.
..1. ...1 X'21' Model 33/35 TWX
..1. ..1. X'22' Teletypewriter Code Meaning
..1. .1.. X'24' 1050 .... ...1 X'01' TERMINAL FACILITY MASK
..1. 1... X'28' 2740 .... ..1. X'02' K C P MACRO FILE MASK
..1. 1.1. X'2A' 2741 Correspondence .... .1.. X'04' NONTERMINAL FACILITY MASK
..1. 1.11 X'2B' 2741 EBCDIC .... 1... X'08' DESTINATION CONTROL TABLE
.1.. .... X'40' Video terminals ...1 .... X'10' AID FACILITY MASK
.1.. ...1 X'41' 2260 local 111. .... X'E0' reserved
.1.. 1... X'48' 2260 remote
.1.. 1.1. X'4A' 1053
.1.. 11.. X'4C' 2265
.1.1 .... X'50' TCAM
1... .... X'80' Bisynchronous
1... ..1. X'82' 2770
1... .1.. X'84' 2780
1... .1.1 X'85' 3780
1... .11. X'86' 2980
1... 1... X'88' 3735
1... 1..1 X'89' 3740
1... 1.1. X'8A' 3600 bisynchronous
1..1 ...1 X'91' 3277 remote
1..1 ..1. X'92' 3275 remote
1..1 ..11 X'93' BTAM 3284 remote and VTAM 3270P
1..1 .1.. X'94' BTAM 3286 remote
1..1 1..1 X'99' 3277 local
1..1 1.11 X'9B' BTAM 3284 local
1..1 11.. X'9C' BTAM 3286 local
1.1. .... X'A0' Bisynchronous - programmable
1.1. ...1 X'A1' System/3
1.1. .1.. X'A4' System/370
1.1. .11. X'A6' System/7 with BSCA
1.11 .... X'B0' SDLC device class
Read from terminal or logical unit WAIT option of SEND command: Unless the WAIT
(RECEIVE) option is specified also, the transmission of the data
associated with the SEND command is deferred until a later
The RECEIVE command is used to read data from a terminal event, such as a syncpoint, occurs. This deferred
or logical unit. The INTO option is used to specify the area transmission reduces the flows of data by allowing data-flow
into which the data is to be placed. Alternatively, a pointer controls to be transmitted with the data.
reference can be specified in the SET option. CICS acquires
an area large enough to hold the data and sets the pointer Transmission is not deferred for distributed transaction
reference to the address of that data. processing when interregion communication (IRC) is in use.
The contents of this area are available to the task until the
next terminal I/O command. However, the area does not Synchronize terminal I/O for a transaction
belong to the task and is released by CICS while processing (WAIT TERMINAL)
the next request. Therefore, this area cannot be passed
back to CICS for further processing. This command is used to ensure that a terminal operation
has completed before further processing occurs in a task
The application can use MAXLENGTH to specify the under which more than one terminal or logical unit operation
maximum length of data that the program accepts. If the is performed. Alternatively, the WAIT option can be specified
MAXLENGTH option is omitted on a RECEIVE command for in a SEND command. (A wait is always carried out for a
which the INTO option is specified, the maximum length of RECEIVE command.) Either method may cause execution
data the program accepts can be specified in the LENGTH of a task to be suspended. If suspension is necessary,
option. If the MAXLENGTH option is omitted on a RECEIVE control is returned to CICS. Execution of the task is
command for which the SET option is specified, CICS resumed when the operation is completed.
acquires enough storage to hold all the available data.
Disconnect a switched line (ISSUE When TCAM is used, all of this line control is handled by the
message control facility rather than by CICS.
DISCONNECT)
The programmable terminal response to a read interrupt
This command is used to break a line connection between a
must be “end of transmission” (EOT). The EOT response
terminal and the processor, or to break a session between
may, however, be preceded by writes, in order to exhaust the
TCAM or VTAM logical units, when the transaction is
contents of output buffers (if the input buffer size is not
completed. If the terminal is a buffered device, the data in
exceeded by this data). The input buffer size is specified by
the buffers is lost.
the system programmer during preparation of the TCT.
When used with a VTAM terminal, ISSUE DISCONNECT, CICS issues a read continue until it receives an EOT, or until
which does not become effective until the task completes, the input message is greater than the input buffer (an error
signs off the terminal, frees the COMMAREA, clears the next condition).
TRANID, stops any BMS paging, and, if autoinstall is in
effect, deletes the terminal definition.
After receiving an EOT, CICS issues a write initial (TI) or the Input data is deblocked to ETX, ETB, RS, and US
equivalent (depending on the type of line). The characters. These characters are moved with the data but
programmable terminal response must be a read initial (TI) are not included in the data length. Characters such as NL
or the equivalent. (new line), CR (carriage return), LF (line feed), and EM (end
of message) are included as data in a CICS application
If the application program makes another output request, program.
CICS issues a write continue (TT) to that line. If the
application program makes an input request after it has
made an output request, CICS turns the line around with a
Teletypewriter programming
write reset (TR). (CICS does not recognize a read interrupt.)
The Teletypewriter (World Trade only) uses two different
To ensure that binary synchronous terminals (for example,
control characters for print formatting, as follows:
System/370, 1130, 2780) remain coordinated, CICS
processes the data collection or data transmission < carriage return (X'22' in ITA2
transaction on any line to completion, before polling other code or X'15' in EBCDIC)
terminals on that line.
_= line feed (X'28' in ITA2 code
The programmable terminal actions required for the above or X'25' in EBCDIC)
activity, with the corresponding user application program
The character < should always be used first; otherwise
commands and CICS actions, are summarized in Table 15.
following characters (data) may be printed while the type bar
is moving to the left.
Table 15. BTAM programmable terminal programming
User Application CICS1 Actions Programmable
Program Terminal Action Message format
Command
Message begin: To start a message on a new line at the
Read initial (TI) Write initial (TI)
left margin, the message text must begin with X'1517'
RECEIVE Read continue (TT) Write continue (TT)
(EBCDIC). CICS recognizes the X'17' and changes it to
X'25' (X'17' is an IDLE character).
SEND Read interrupt (RVI)2 Write reset (TR) or
Message body: To write several lines with a single
Read continue (TT)3 Write continue transmission, the lines must be separated by X'1525', or if
Write reset multiple blank lines are required, by X'152525...25'.
Write initial (TI) Read initial (TI) Message end before next input: To allow input of the next
message on a new line at the left margin, the preceding
SEND Write continue (TT) Read continue (TT) message must end with X'1517'. CICS recognizes X'15'
and changes the character following it to X'25'.
RECEIVE Write reset (TR)4 Read continue (TT)
Message end before next output: In the case of two or
Read initial (TI) Write initial (TI)
more successive output messages, the “message begin” and
1. CICS issues the macro shown, or, if the line is switched, the “message end” look the same; that is X'1517', except
the equivalent. The user-written programmable terminal for the last message (see above). To make the “message
program must issue the equivalent of the BTAM operation
end” of the preceding message distinguishable from the
shown.
“message begin” of the next message, the next to last
2. An RVI sequence is indicated by the DECFLAGS field of character of the “message end” must not be X'15'.
the data event control block (DECB) being set to X'02' and
a completion code of X'7F' being returned to the event
control block (ECB). Message length
3. The read continue is issued only if the EOT character is not
received on the read interrupt. Messages for teletypewriter terminals should not exceed a
length of about 3000 bytes or approximately 300 words.
4. Write reset is issued only for point-to-point terminals.
For a BTAM printer to be eligible, it must be attached to the Handle input without data (RECEIVE)
same control unit as the display, must have a buffer capacity
equal to or greater than that of the display, and must have The RECEIVE command with no options causes input to
FEATURE=PRINT specified in the associated terminal take place and the EIB to be updated. However, data
control table TYPE=TERMINAL. received by CICS is not passed on to the application
program and is lost. A wait is implied. Two of the fields in
For a 3270 logical unit to be eligible, it must have been the EIB that are updated are described below.
specified by PRINTTO or ALTPRT in the terminal control
table TERMINAL=TYPE, by RDO, or by a printer supplied by Cursor position (EIBCPOSN): For every terminal
the autoinstall user program, and it must have the correct control (or BMS) input operation associated with a display
buffer capacity; FEATURE=PRINT is not necessary. If device, the screen cursor address (position) is placed in the
COPY is specified with ALTPRT or PRINTTO, the printer EIBCPOSN field in the EIB. The cursor address is in the
must be on the same control unit. form of a halfword binary value and remains until updated by
a new input operation.
If an ISSUE PRINT command is executed, the printer
involved must be owned by the same CICS system that Attention identifier (EIBAID): For every terminal control
owns the terminal that is running the transaction. (or BMS) input operation associated with a display device, an
attention identifier (AID) is placed in field EIBAID in the EIB.
For some 3270 displays, it is possible also to print the
The AID indicates which method the terminal operator has
displayed information without using CICS. See An
used to initiate the transfer of information from the device to
Introduction to the IBM 3270 Information Display System
CICS; for example, the ENTER key, a program function key,
manual.
the light pen, and so on. The field contents remain unaltered
until updated by a new input operation.
Copy displayed information (ISSUE COPY)
Field EIBAID can be tested after each terminal control (or
The ISSUE COPY command is used to copy the format and BMS) input operation to determine further processing, and a
data contained in the buffer of a specified terminal into the standard attention identifier list (DFHAID) is provided for this
buffer of the terminal that started the transaction. This purpose. Alternatively, the HANDLE AID command can be
command cannot be used for an LUTYPE2 connection. Both used to pass control to specified labels when the AIDs are
terminals must be attached to the same remote control unit. received.
The terminal whose buffer is to be copied is identified in the
TERMID option. If the terminal identifier is not valid, that is, EIBAID and EIBCPOSN are also updated at task initiation for
it does not exist in the TCT, then the TERMIDERR condition non-ATI tasks and after each terminal control and BMS input.
occurs. The copy function to be performed is defined by the
copy control character (CCC) specified in the CTLCHAR
option of the ISSUE COPY command.
SRRCMT
Commit call (equivalent to EXEC CICS SYNCPOINT). The
return codes are:
RR_OK
RR_COMMITTED_OUTCOME_PENDING
RR_COMMITTED_OUTCOME_MIXED
RR_PROGRAM_STATE_CHECK
RR_BACKED_OUT
RR_BACKED_OUT_OUTCOME_PENDING
RR_BACKED_OUT_OUTCOME MIXED
SRRBACK
Backout call (equivalent to EXEC CICS SYNCPOINT
ROLLBACK). The return codes are:
RR_OK
RR_COMMITTED_OUTCOME_PENDING
RR_COMMITTED_OUTCOME_MIXED
RECEIVE
SEND
WAIT CONVID
Note: The above APPC commands are restricted only when they refer to the principal facility.
Signon SIGNON NO
SIGNOFF
Batch data interchange ISSUE NO
commands ABORT QUERY
ADD RECEIVE
END REPLACE
ERASE SEND
NOTE WAIT
# COLOR PAGENUM
# DESTCOUNT PARTNPAGE
# INPARTN PARTNS
# LDCMNEM PARTNSET
# LDCNUM PS
#
# MAPCOLUMN
# MAPHEIGHT
# MAPLINE
# MAPWIDTH
# OPCLASS
PURGE MESSAGE
RECEIVE
MAP
PARTN
ROUTE
SEND
CONTROL
MAP
PAGE
PARTNSET
TEXT
TEXT MAPPED
TEXT NOEDIT
Built-in functions BIF DEEDIT YES
Condition handling HANDLE CONDITION YES
IGNORE CONDITION
PUSH HANDLE
POP HANDLE
Console support WRITE OPERATOR YES
Diagnostic services DUMP YES
ENTER
TRACE
Environmental services ASSIGN YES
# Apar 72501
# Documentation for Apar 72501 added 3 Aug 1995 (TUCKER)
# ABCODE OPERKEYS
| ABDUMP OPID
| ABPROGRAM ORGABCODE
# APPLID PRINSYSID
# ASRAINTRPT PROGRAM
#
# ASRAKEY RESSEC
# ASRAPSW RESTART
# ASRAREGS RETURNPROG
# ASRASPC STARTCODE
# ASRASTG SYSID
#
# CMDSEC TASKPRIORITY
# CWALENG TCTUALENG
# INITPARM TRANPRIORITY
# INITPARMLEN TWALENG
# NETNAME USERID
# ALTSCRNHT MSRCONTROL
# ALTSCRNWD NATLANGINUSE
# APLKYBD NEXTTRANSID
# APLTEXT NUMTAB
# BTRANS OPCLASS
#
# COLOR OPSECURITY
# DEFSCRNHT OUTLINE
# DEFSCRNWD PAGENUM
# DELIMITER PARTNPAGE
# DESTCOUNT PARTNS
#
# DESTID PARTNSET
# DESTIDLENG PS
# DSSCS QNAME
# DS327O SCRNHT
# EWASUPP SCRNWD
#
# EXTDS SIGDATA
# FACILITY SOSI
# FCI STATIONID
# GCHARS TELLERID
# GCODES TERMCODE
#
# GMMI TERMPRIORITY
# HILIGHT TEXTKYBD
# INPARTN TEXTPRINT
# KATAKANA UNATTEND
# LDCMNEM USERNAME
#
# LDCNUM USERPRIORITY
# MAPCOLUMN VALIDATION
# MAPHEIGHT
# MAPLINE
# MAPWIDTH
# Environmental services ADDRESS YES
# (continued) Apar 72501
# Documentation for Apar 72501 added 3 Aug 1995 (TUCKER)
# ACEE TWA
# COMMAREA
# CWA
# EIB
# TCTUA
File control DELETE YES
ENDBR
READ
READNEXT
READPREV
RESETBR
REWRITE
STARTBR
UNLOCK
WRITE
Interval control ASKTIME YES
CANCEL
DELAY
FORMATTIME
POST
RETRIEVE
START
WAIT EVENT
Journaling WRITE JOURNALNUM YES
WAIT JOURNALNUM
Monitoring MONITOR POINT YES
The standard list DFHBMSCA makes it simpler to provide field attributes and printer control characters. Table 22 lists the
symbolic names for the various combinations of attributes and control characters. If you need combinations other than the
ones shown, you must generate them separately. To help you do this, see Table 23 on page 377 for a bit map of attributes.
To find the value of an attribute constant, see the 3274 Control Unit Reference Summary.
You can get the standard attribute and printer character control list by copying copybook DFHBMSCA into your application.
For COBOL users, it consists of a set of 01 statements that can be copied into the working storage section.
For C users, it is included in applications as follows:
#include "dfhbmsca.h"
For PL/I users, it consists of DECLARE statements defining elementary character variables.
For assembler-language users, the list consists of a set of EQU statements.
| You must use the symbolic name DFHDFT in the application structure to override a map attribute with the default. You can
| use a high value, such as X'FF', to reset the COLOR, HILIGHT, OUTLINE, PS, SOSI, or VALIDN attributes to their default
| values. On the other hand, to specify default values in a set attribute (SA) sequence in text build, you should use the symbolic
names DFHDFCOL, DFHBASE, or DFHDFHI.
Table 22 (Page 1 of 2). Standard attribute and printer control character list, DFHBMSCA
Constant Meaning
DFHBMPEM Printer end-of-message
DFHBMPNL Printer new-line
DFHBMPFF Printer form feed
DFHBMPCR Printer carriage return
DFHBMASK Autoskip
DFHBMUNP Unprotected
DFHBMUNN Unprotected and numeric
DFHBMPRO Protected
DFHBMBRY Bright
DFHBMDAR Dark
DFHBMFSE MDT set
DFHBMPRF Protected and MDT set
DFHBMASF Autoskip and MDT set
DFHBMASB Autoskip and bright
DFHBMPSO shift-out value X'0E'.
DFHBMPSI shift-in value X'0F'.
DFHBMEOF Field erased
DFHBMCUR Field containing cursor flagged
DFHBMEC Erased field containing cursor (COBOL only)
DFHBMFLG Flags (COBOL only)
DFHBMDET Field detected
DFHSA1 Set attribute (SA) order
DFHERROR Error code
DFHCOLOR1 Color
DFHPS1 Programmed symbols
DFHHLT1 Highlight
DFH32701 Base 3270 field attribute
DFHVAL Validation
DFHOUTLN Field outlining attribute code
DFHBKTRN Background transparency attribute code
DFHALL1 Reset all to defaults
DFHDFT Default
DFHDFCOL1 Default color
DFHBLUE Blue
DFHRED Red
DFHPINK Pink
DFHGREEN Green
DFHTURQ Turquoise
DFHYELLO Yellow
DFHNEUTR Neutral
DFHBASE1 Base programmed symbols
DFHDFHI1 Normal
Table 22 (Page 2 of 2). Standard attribute and printer control character list, DFHBMSCA
Constant Meaning
DFHBLINK Blink
DFHREVRS Reverse video
DFHUNDLN Underscore
DFHMFIL2 Mandatory fill
DFHMENT2 Mandatory enter
DFHMFE Mandatory fill and mandatory enter
DFHMT Trigger
DFHMFT Mandatory fill and trigger
DFHMET Mandatory enter and trigger
DFHMFET Mandatory fill and mandatory enter and trigger
DFHUNNOD Unprotected, nondisplay, nonprint, nondetectable, MDT
DFHUNIMD Unprotected, intensify, light-pen detectable, MDT
DFHUNNUM Unprotected, numeric, MDT
# Apar 67669
# Documentation for Apar 67669 added 7 Feb 1995 (TUCKER)
The characters in the body of the above table mean the following:
You can get a copy of the list by copying DFHAID into your application program. For COBOL users, it consists of a set of 01
statements that must be copied into the working-storage section. For C users, it consists of a series of defined constants. For
PL/I users, it consists of DECLARE statements defining elementary character variables.
Field groups
Very often, an output data display field has to contain several
subfields, all sharing the same display attributes, and each of
which might have to be modified separately. At output,
subfields that have not been modified by the program can
adopt default data values from the output map. For example,
a display can include a date field of a “day” subfield, “month”
subfield, and “year” subfield. The contents of the year
subfield remain constant over a relatively long period; its
value can safely be taken from a map. However, the day
value and month value must be updated regularly. Similarly,
on input the terminal operator can enter data in each subfield
separately.
MAPSET DFHMSD....
.
.
MAP DFHMDI....
.
.
DD DFHMDF GRPNAME=DATE,POS=4O,
LENGTH=2,ATTRB=...
.
MM DFHMDF GRPNAME=DATE,POS=46,
LENGTH=2
.
YY DFHMDF GRPNAME=DATE,POS=52,
LENGTH=2
.
FIELD DFHMDF LENGTH=5,COLOR=GREEN,...
DFHMSD TYPE=FINAL
DFHMDF
Command syntax
┌─,──────────────────────────────────────────────────────────────┐
──┬─────┬──DFHMDF───*┬──────────────────────────────────────────────────────────────┬┴──"
└─fld─┘ ├─POS=─┬─number────────┬───────────────────────────────────────┤
│ └─(line,column)─┘ │
├─LENGTH=number────────────────────────────────────────────────┤
├─JUSTIFY=(─┬───────┬──┬──────────────┬─)──────────────────────┤
│ ├─LEFT──┤ └─,─┬─BLANK─┬──┘ │
│ └─RIGHT─┘ └─ZERO──┘ │
├─┬─INITIAL='char-data'───────┬────────────────────────────────┤
│ ├─XINIT=hex-data────────────┤ │
(1) ─┘
│ └─GINIT='DBCS-characters'── │
│ ┌─ASKIP────────────┐ │
├─ATTRB=(─┼──────────────────┼──┬──────────────────────────┬─)─┤
│ ├─PROT─────────────┤ │ ┌──
─────────┐ │ │
│ └─UNPROT──┬──────┬─┘ └─,─┬─BRT──┬───*┬───────┬┴──┘ │
│ └─,NUM─┘ ├─NORM─┤ ├─,DET──┤ │
│ └─DRK──┘ ├─,IC───┤ │
│ └─,FSET─┘ │
│ ┌─DEFAULT─┐ │
├─COLOR=─┼─────────┼───────────────────────────────────────────┤
│ └─color───┘ │
│ ┌─BASE─┐ │
├─PS=─┴─psid─┴─────────────────────────────────────────────────┤
│ ┌─OFF───────┐ │
├─HILIGHT=─┼───────────┼───────────────────────────────────────┤
│ ├─BLINK─────┤ │
│ ├─REVERSE───┤ │
│ └─UNDERLINE─┘ │
│ ┌─,───────────┐ │
*
├─VALIDN=(──┬───────────┬┴─)───────────────────────────────────┤
│ ├─MUSTFILL──┤ │
│ ├─MUSTENTER─┤ │
│ ├─TRIGGER───┤ │
# │ └─USEREXIT──┘ │
├─GRPNAME=group-name───────────────────────────────────────────┤
├─OCCURS=number────────────────────────────────────────────────┤
├─PICIN='value'────────────────────────────────────────────────┤
├─PICOUT='value'───────────────────────────────────────────────┤
├─OUTLINE=─┬─BOX─────────────┬─────────────────────────────────┤
│ │ ┌─,───────┐ │ │
│ └─(──*┬───────┬┴─)─┘ │
│ ├─LEFT──┤ │
│ ├─RIGHT─┤ │
│ ├─OVER──┤ │
│ └─UNDER─┘ │
│ ┌─NO──┐ │
├─SOSI=─┼─────┼────────────────────────────────────────────────┤
│ └─YES─┘ │
│ ┌─YES─┐ │
├─TRANSP=─┼─────┼──────────────────────────────────────────────┤
│ └─NO──┘ │
└─CASE=MIXED───────────────────────────────────────────────────┘
Notes:
1 DBCS characters start with a shift-out character X'0E' and end with a shift-in character X'0F'.
The DFHMDF macro defines a field within a map defined by # Apar 91113 reroute of 90736
the previous DFHMDI macro. A map contains zero or more
# Documentation for Apar 91113 added 12/02/97
fields.
| “fld” is the name (1–30 characters) of the field. You should, # For more information about defining field names, see the
| however, refer to your compiler manual to make sure that # CICS/ESA Application Programming Guide. If “fld” is
| there are no other restrictions on the length.
omitted, application programs cannot access the field to recognized as detectable by BMS, DET
change its attributes or alter its contents. For an output map, must also be specified.
omitting the field name may be appropriate when the INITIAL
DET specifies that the field is potentially
operand is used to specify the contents of a field. If a field
detectable.
name is specified and the map that includes the field is used
in a mapping operation, nonnull data supplied by the user The first character of a 3270 detectable field
overlays data supplied by initialization (unless default data must be one of the following:
only is being written). ? > & blank
The performance of input mapping operations is optimized if If ? or >, the field is a selection field; if & or
DFHMDF macros are arranged in numerical order of the blank, the field is an attention field. (See An
POS operand. Introduction to the IBM 3270 Information
Display System for further details about
You cannot define more than 1023 named fields for a detectable fields.)
COBOL, C, or PL/I input/output map. A field for which BRT is specified is
potentially detectable to the 3270, because
You should ensure that the names of maps, and names of
of the 3270 attribute character bit
fields within a mapset (or within multiple mapsets that are
assignments, but is not recognized as such
copied into one application program) are unique. Maps and
by BMS unless DET is also specified.
mapsets must not have the same name.
DET and DRK are mutually exclusive.
Before CICS can load a physical map, you must define a
If DET is specified for a field on a map with
physical map using an RDO transaction with the MAPSET
MODE=IN, only one data byte is reserved
attribute.
for each input field. This byte is set to
X'00', and remains unchanged if the field is
DFHMDF operands not selected. If the field is selected, the
byte is set to X'FF'.
ATTRB
This operand applies only to 3270 data stream devices; No other data is supplied, even if the field is
it is ignored for other devices, except that ATTRB=DRK a selection field and the ENTER key has
is honored for the SCS Printer Logical Unit. It is also been pressed.
ignored (except for ATTRB=DRK) if the NLEOM option is If the data in a detectable field is required,
specified on the SEND MAP command for transmission all of the following conditions must be
to a 3270 printer. In particular, ATTRB=DRK should not fulfilled:
be used as a method of protecting secure data on output
1. The field must begin with one of the
on non-3270, non-SCS printer terminals. Refer to An
following characters:
Introduction to the IBM 3270 Information Display System
for further information. ? > & blank
If ATTRB is specified within a group of fields, it must be and DET must be specified in the
specified in the first field entry. A group of fields output map.
appears as one field to the 3270. Therefore, the ATTRB 2. The ENTER key (or some other
specification refers to all of the fields in a group as one attention key) must be pressed after the
field rather than as individual fields. It specifies field has been selected, although the
device-dependent characteristics and attributes, such as ENTER key is not required for
the capability of a field to receive data, or the intensity to detectable fields beginning with & or a
be used when the field is output. It could however, be blank.
used for making an input field nondisplay for secure
entry of a password from a screen. For input map fields, 3. DET must not be specified for the field
DET and NUM are the only valid options; all others are in the input map. DET must, however,
ignored. be specified in the output map. For
more information about BMS support of
ASKIP is the default and specifies that data cannot the light pen, see the CICS/ESA
be keyed into the field and causes the Application Programming Guide.
cursor to skip over the field.
DRK specifies that the field is
BRT specifies that a high-intensity display of the nonprint/nondisplay. DRK cannot be
field is required. Because of the 3270 specified if DET is specified.
attribute character bit assignments, a field
FSET specifies that the modified data tag (MDT)
specified as BRT is also potentially
for this field should be set when the field is
detectable. However, for the field to be
sent to a terminal.
Specification of FSET causes the 3270 to katakana display. It should not be specified if the field
treat the field as though it has been may contain valid katakana characters.
modified. On a subsequent read from the
COLOR
terminal, this field is read, whether or not it
indicates the individual color, or the default color for the
has been modified. The MDT remains set
mapset (where applicable).
until the field is rewritten without
ATTRB=FSET, or until an output mapping The valid colors are blue, red, pink, green, turquoise,
request causes the MDT to be reset. yellow, and neutral.
Either of two sets of defaults may apply The COLOR operand is ignored unless the terminal
when a field to be displayed on a 3270 is supports color, as indicated by FEATURE in the terminal
being defined but not all parameters are control table TYPE=TERMINAL, or by the RDO option
specified. If no ATTRB parameters are COLOR.
specified, ASKIP and NORM are assumed.
GINIT
If any parameter is specified, UNPROT and
specifies constant or default data for an output field.
NORM are assumed for that field unless
GINIT is used to specify data in DBCS character strings,
overridden by a specified parameter.
which must be enclosed by SO (shift out, X'0E') and SI
IC specifies that the cursor is to be placed in (shift in, X'0F') characters. When GINIT is specified,
the first position of the field. The IC the length must be even and is the number of bytes in
attribute for the last field for which it is the string (that is, not the number of DBCS characters).
specified in a map is the one that takes #
effect. If not specified for any fields in a Apar 69549
map, the default location is zero. Specifying # Documentation for Apar 69549 added 13 Apr 1995
IC with ASKIP or PROT causes the cursor # (TUCKER)
to be placed in an unkeyable field.
This option can be overridden by the # If a graphic data type (PS=X'F8') is used, and the
CURSOR option of the SEND MAP # language is COBOL2, a PIC G is generated. Only one
command that causes the write operation. of GINIT, INITIAL, or XINIT may be specified.
NORM specifies that the field intensity is to be GRPNAME
normal. is the name used to generate symbolic storage
NUM ensures that the data entry keyboard is set definitions and to combine specific fields under one
to numeric shift for this field unless the group name. The same group name must be specified
operator presses the alpha shift key, and | for each field that is to belong to the group. The length
prevents entry of nonnumeric data if the | of the name is up to 30 characters though you should
Keyboard Numeric Lock feature is installed. | refer to your compiler manual to make sure that there
| are no other restrictions on the length.
PROT specifies that data cannot be keyed into the
# Apar PQ27428
field.
If data is to be copied from one device to # Documentation for Apar PQ27428 added 24/06/99
another attached to the same 3270 control
unit, the first position (address 0) in the # For more information on defining the group name, see
buffer of the device to be copied from must # the CICS/ESA Application Programming Guide. The
not contain an attribute byte for a protected # same rules apply to group names.
field. Therefore, when preparing maps for If this operand is specified, the OCCURS operand
3270s, ensure that the first map of any page cannot be specified.
does not contain a protected field starting at
position 0. The fields in a group must follow on; there can be gaps
between them, but not other fields from outside the
UNPROT specifies that data can be keyed into the group. A field name must be specified for every field
field. that belongs to the group, and the POS operand must
CASE also be specified to ensure that the fields follow each
specifies that the field contains both uppercase and other. All the DFHMDF macros defining the fields of a
lowercase data that is to be converted to uppercase if group must be placed together, and in the correct order
FEATURE=KATAKANA has been included in the (ascending numeric order of the POS value).
terminal definition. For example, the first 20 columns of the first six lines of
This should be specified if a field is known to contain a map can be defined as a group of six fields, as long
lowercase Latin characters but may be displayed on a as the remaining columns on the first five lines are not
defined as fields.
The ATTRB operand specified on the first field of the BLANK specifies that blanks are to be inserted in
group applies to all of the fields within the group. any unfilled positions in an input field.
The valid picture values for COBOL input maps are: # The currency sign represented by the picture
A P S V X 9 / and ( # symbol is defined in the same clause. For
# example:
The valid picture values for PL/I input maps are:
# SPECIAL NAMES.
A B E F G H I K M P R S T V # CURRENCY SIGN IS '$' WITH PICTURE SYMBOL '$'.
X Y and Z # CURRENCY SIGN IS '£' WITH PICTURE SYMBOL '£'.
# CURRENCY SIGN IS 'EUR' WITH PICTURE SYMBOL '#'.
1 2 3 6 7 8 9 / + - , . _
$ and (
# Apar PQ14850 # WORKING STORAGE SECTION.
# O1 USPRICE PIC $99.99.
# Documentation for Apar PQ14850 added 09/07/98 # O1 UKPRICE PIC £99.99.
# O1 ECPRICE PIC #99.99.
# For PL/I, a currency symbol can be used as a picture # LENGTH must be specified when PICOUT
# character. The symbol can be any sequence of # specifies a COBOL picture containing a currency
# characters enclosed in < and >, for example <DM>. # symbol that will be replaced by a currency sign
Refer to the appropriate language reference manual for # of length greater than 1.
the correct syntax of the PICTURE attribute.
POS
PICOUT (COBOL and PL/I only) specifies the location of a field. This operand specifies
is similar to PICIN, except that a picture to be applied to the individually addressable character location in a map
an output field in the OUT or INOUT map is generated. at which the attribute byte that precedes the field is
positioned.
Note: The valid picture values for COBOL output maps
are: number specifies the displacement (relative to zero)
A B E P S V X Z O 9 , . + - $ from the beginning of the map being
CR DB / and ( defined.
The valid picture values for PL/I output maps are: (line,column)
specify lines and columns (relative to one)
A B E F G H I K M P R S T V
X Y and Z within the map being defined.
The location of data on the output medium
1 2 3 6 7 8 9 / + - , . _ $ | is also dependent on DFHMDI operands.
CR DB and (
The first position of a field is reserved for an
# Apar PQ14850 attribute byte. When supplying data for
# Documentation for Apar PQ14850 added 09/07/98 input mapping from non-3270 devices, the
input data must allow space for this attribute
byte. Input data must not start in column 1
# For PL/I, a currency symbol can be used as a picture
but may start in column 2.
# character. The symbol can be any sequence of
# characters enclosed in < and >, for example <DM>. The POS operand always contains the
location of the first position in a field, which
Refer to the appropriate language reference manual for
is normally the attribute byte when
the correct syntax of the PICTURE attribute.
communicating with the 3270. For the
Note: second and subsequent fields of a group,
# Apar PQ21323 the POS operand points to an assumed
attribute-byte position, ahead of the start of
# Documentation for Apar PQ21323 added the data, even though no actual attribute
# 11/12/98 byte is necessary. If the fields follow on
immediately from one another, the POS
# COBOL supports multiple currency signs and operand should point to the last character
# multi-character currency signs in PICTURE position in the previous field in the group.
# specifications.
When a position number is specified that
# The default currency picture symbol is the dollar represents the last character position in the
# sign ($),which represents the national currency 3270, two special rules apply:
# symbol; for example the dollar ($), the pound (£),
ATTRIB=IC should not be coded. The
# or the yen (¥).
cursor can be set to location zero by
# The default currency picture symbol may be using the CURSOR option of a SEND
# replaced by a different currency picture symbol MAP, SEND CONTROL, or SEND
# that is defined in the SPECIAL NAMES clause. TEXT command.
If the field is to be used in an output move the cursor from an empty field raises
mapping operation with the INHIBIT INPUT condition
MAP=DATAONLY on the SEND MAP
TRIGGER specifies that this field is a trigger field.
command, an attribute byte for that field
Trigger fields are discussed in the
must be supplied in the symbolic map
CICS/ESA Application Programming Guide.
data structure by the application
# Apar PQ12071
program.
PS specifies that programmed symbols are to be used. This # Documentation for Apar PQ12071
overrides any PS operand set by the DFHMDI macro or # added 12/03/98
the DFHMSD macro.
# USEREXIT
BASE is the default and specifies that the base # specifies that this field is to be processed by
symbol set is to be used. # the BMS global user exits, XBMIN and
psid specifies a single EBCDIC character, or a # XBMOUT, if this field is received or
hexadecimal code of the form X'nn', that # transmitted in a 3270 datastream when the
identifies the set of programmed symbols to # respective exit is enabled. For further
be used. # information on the use of the BMS global
# user exits, refer to the CICS/ESA
The PS operand is ignored unless the terminal supports # Customization Guide.
programmed symbols, as indicated by
PROGSYMBOLS(YES) on the RDO TYPETERM # The MUSTFILL, MUSTENTER and TRIGGER
definition, or by FEATURE in the terminal control table # specifications are valid only for terminals that support the
TYPE=TERMINAL. # field validation extended attribute, otherwise they are
# ignored. The USEREXIT specification applies to all
SOSI # 3270 devices.
indicates that the field may contain a mixture of EBCDIC
and DBCS data. The DBCS subfields within an EBCDIC # Note: The USEREXIT specification is totally
field are delimited by SO (shift out) and SI (shift in) # unconnected with the field validation extended
characters. SO and SI both occupy a single screen # attribute as defined in the 3270 datastream
position (normally displayed as a blank). They can be # architecture.
included in any non-DBCS field on output, if they are The VALIDN operand is ignored unless the terminal
correctly paired. The terminal user can transmit them supports validation, as indicated by VALIDATION(YES)
inbound if they are already present in the field, but can option on the RDO TYPETERM definition, or by
add them to an EBCDIC field only if the field has the FEATURE in the terminal control table
SOSI attribute. TYPE=TERMINAL.
TRANSP XINIT
determines whether the background of an alphanumeric see INITIAL, earlier in the list. Only one of GINIT,
field is transparent or opaque, that is, whether an INITIAL, or XINIT may be specified.
underlying (graphic) presentation space is visible
between the characters.
VALIDN
specifies:
DFHMDI
Function
Map definition.
Command syntax
Minimum BMS:
┌─,─────────────────────────┐ ┌─,───────────────────────────────┐
*┬─────────────────────────┬┴───*┬───────────────────────────────┬┴──"
──map──DFHMDI───
├─SIZE=(line,column)──────┤ ├─PS=─┬─BASE─┬──────────────────┤
├─TERM=type───────────────┤ │ └─psid─┘ │
# │ ┌─,────────┐ │ │ ┌─,───────────┐ │
# *
├─CTRL=(──┬────────┬┴─)───┤ *
├─VALIDN=(──┬───────────┬┴─)────┤
# │ ├─PRINT──┤ │ │ ├─MUSTFILL──┤ │
# │ ├─length─┤ │ │ ├─MUSTENTER─┤ │
# │ ├─FREEKB─┤ │ │ ├─TRIGGER───┤ │
# │ ├─ALARM──┤ │ │ └─USEREXIT──┘ │
│ └─FRSET──┘ │ ├─COLUMN=number─────────────────┤
│ ┌─NO──────┐ │ ├─LINE=number───────────────────┤
├─EXTATT=─┼─────────┼─────┤ ├─FIELDS=NO─────────────────────┤
│ ├─MAPONLY─┤ │ │ ┌─,────────────┐ │
│ └─YES─────┘ │ ├──*MAPATTS=(attr)┴──────────────┤
│ ┌─DEFAULT─┐ │ │ ┌─,───────────┐ │
├─COLOR=─┼─────────┼──────┤ ├──*DSATTS=(attr)┴───────────────┤
│ └─color───┘ │ ├─OUTLINE=─┬─BOX─────────────┬──┤
│ ┌─NO──┐ │ │ │ ┌─,───────┐ │ │
├─CURSLOC=─┼─────┼────────┤ │ └─(──*┬───────┬┴─)─┘ │
│ └─YES─┘ │ │ ├─LEFT──┤ │
│ ┌─OFF───────┐ │ │ ├─RIGHT─┤ │
└─HILIGHT=─┼───────────┼──┘ │ ├─OVER──┤ │
├─BLINK─────┤ │ └─UNDER─┘ │
├─REVERSE───┤ │ ┌─NO──┐ │
└─UNDERLINE─┘ ├─SOSI=─┼─────┼─────────────────┤
│ └─YES─┘ │
│ ┌─YES─┐ │
├─TRANSP=─┼─────┼───────────────┤
│ └─NO──┘ │
└─JUSTIFY=BOTTOM────────────────┘
Standard BMS:
┌─,───────────────────────────────┐
───*┬───────────────────────────────┬┴──"
├─PARTN=(name)─┬─────────────┬──┤
│ └─,──ACTIVATE─┘ │
├─OBFMT=─┬─YES─┬────────────────┤
│ └─NO──┘ │
│ ┌─FIELD─┐ │
├─DATA=─┼───────┼───────────────┤
│ └─BLOCK─┘ │
│ ┌─NO──┐ │
├─TIOAPFX=─┴─YES─┴──────────────┤
└─FLDSEP=─┬─char────────┬───────┘
└─X'hex-char'─┘
Full BMS:
┌─,─────────────────────────────────────────┐
───*┬─────────────────────────────────────────┬┴──"
│ ┌─SAME───┐ │
├─COLUMN=─┼────────┼──────────────────────┤
│ ├─number─┤ │
│ └─NEXT───┘ │
│ ┌─NEXT───┐ │
├─LINE=─┼────────┼────────────────────────┤
│ ├─number─┤ │
│ └─SAME───┘ │
│ ┌─LEFT──┐ │
├─JUSTIFY=(─┼───────┼──┬──────────────┬─)─┤
│ └─RIGHT─┘ └─,─┬─FIRST─┬──┘ │
│ └─LAST──┘ │
├─HEADER=YES──────────────────────────────┤
└─TRAILER=YES─────────────────────────────┘
The DFHMDI macro defines a map within the mapset defined page margin are not available for subsequent use on the
by a previous DFHMSD macro. A map contains zero or page for any lines included in the map.
more fields.
NUMBER is the column from the left or right page
“map” is the name (1–7 characters) of the map. margin where the left or right map margin is
to be established.
You should ensure that the names of maps, and names of
NEXT indicates that the left or right map margin is
fields within a mapset (or within multiple mapsets that are
to be placed in the next available column
copied into one application program) are unique. Maps and
from the left or right on the current line.
mapsets must not have the same name.
SAME indicates that the left or right map margin is
Before CICS can load a physical map, you must define a to be established in the same column as the
physical map using an RDO transaction with the MAPSET last nonheader or nontrailer map used that
attribute. specified COLUMN=number and the same
JUSTIFY operands as this macro.
Note for COBOL users: If the maps are for use in a
For input operations, the map is positioned
COBOL program, and STORAGE=AUTO has not been
at the extreme left-hand or right-hand side,
specified in the DFHMSD macro, they must be specified in
depending on whether JUSTIFY=LEFT or
descending size sequence. (Size refers to the generated
JUSTIFY=RIGHT has been specified.
01-level data areas and not to the size of the map on the
screen.) CTRL
defines characteristics of IBM 3270 terminals. Use of
DFHMDI operands any of the control options in the SEND MAP command
overrides all control options in the DFHMDI macro,
COLOR which in turn overrides all control options in the
indicates the individual color, or the default color for the DFHMSD macro.
mapset (where applicable). This is overridden by the
If CTRL is used with cumulative BMS paging (that is, the
COLOR operand of the DFHMDF macro.
ACCUM option is used on the BMS SEND MAP
The valid colors are blue, red, pink, green, turquoise, commands), it must be specified on the last (or only)
yellow, and neutral. map of a page, unless it is overridden by the ALARM,
The COLOR operand is ignored unless the terminal FREEKB and so on, options on the SEND MAP or
supports color, as indicated by FEATURE in the terminal accumulated SEND CONTROL command.
control table TYPE=TERMINAL, or with the RDO PRINT must be specified if the printer is to be
TYPETERM definition option COLOR. started; if omitted, the data is sent to the
COLUMN printer buffer but is not printed. This
specifies the column in a line at which the map is to be operand is ignored if the mapset is used
placed, that is, it establishes the left or right map margin. with 3270 displays without the Printer
The JUSTIFY operand of the DFHMDI macro controls Adapter feature.
whether map and page margin selection and column LENGTH indicates the line length on the printer;
counting are to be from the left or right side of the page. length can be specified as L40, L64, L80, or
The columns between the specified map margin and the HONEOM. L40, L64, and L80 force a new
line after 40, 64, or 80 characters,
DATA
specifies the format of the data.
LL A data field
This stream is processed as line segments BLINK specifies that the field must blink.
of the length specified in the map used to
REVERSE specifies that the character or field is
process the data. The data is in the form in
displayed in reverse video, for example, on
which it appears at the terminal; that is, it
a 3278, black characters on a green
contains data fields and interspersed blanks
background.
corresponding to any spaces that are to
appear between the fields on output. You UNDERLINE
cannot use DSATTS=YES if you specify specifies that a field is underlined.
DATA=BLOCK.
The HILIGHT operand is ignored unless the terminal
Block data is further discussed in the supports highlighting, as indicated by HILIGHT(YES) on
CICS/ESA Application Programming Guide. the RDO TYPETERM definition, or by FEATURE in the
terminal control table TYPE=TERMINAL.
DSATTS
specifies the attribute types to be included in the JUSTIFY
symbolic description map. These types can be one or specifies the position of the map on the page.
more of the following: COLOR, HILIGHT, OUTLINE, PS,
LEFT specifies that the map is to be positioned
SOSI, TRANSP, and VALIDN. Any type included in
starting at the specified column from the left
DSATTS should also be included in MAPATTS.
margin on the specified line.
EXTATT
RIGHT specifies that the map is to be positioned
this operand is supported for compatibility with previous
starting at the specified column from the
releases. Each of the extended attributes can be
right margin on the specified line.
defined individually. For new maps, the operands
DSATTS and MAPATTS should be used instead. FIRST specifies that the map is to be positioned as
the first map on a new page. Any partially
NO is equivalent to specifying neither the formatted page from preceding BMS
DSATTS operand nor the MAPATTS commands is considered to be complete.
operand. This operand can be specified for only one
YES is equivalent to: map per page.
MAPATTS=(COLOR,HILIGHT,PS,VALIDN) LAST indicates that the map is to be positioned at
DSATTS=(COLOR,HILIGHT,PS,VALIDN) the bottom of the current page. This
operand can be specified for multiple maps
MAPONLY is equivalent to:
to be placed on one page. However, maps
MAPATTS=(COLOR,HILIGHT,PS,VALIDN) other than the first map for which it is
FIELDS specified must be able to be positioned
specifies whether or not the map contains fields. If you horizontally without requiring that more lines
specify FIELDS=NO, you create a null map that defines be used.
a “hole” in BMS’s view of the screen. BMS cannot BOTTOM for a SEND MAP ACCUM command has the
change the contents of such a hole after it has created it same effect as LAST, above. For a SEND
by sending a null map. MAP command (without ACCUM) and a
RECEIVE MAP command,
FLDSEP
JUSTIFY=BOTTOM positions the map at the
specifies the field separator sequence (1–4 characters)
bottom of the screen if the number of lines
for input from non-3270 devices. Input from non-3270
in the map is specified in the SIZE operand.
devices can be entered as a single string of data with
No account is taken of trailer maps in the
the field separator sequence delimiting fields. The data
mapset. JUSTIFY=BOTTOM is equivalent
between the field separators is moved to the input fields
to specifying
in the map in order.
LINE=(screendepth−mapdepth+1)
HEADER
on the map definition, but it allows the same
allows the map to be used during page building without
map to be used for different screen sizes.
terminating the OVERFLOW condition. This operand
JUSTIFY=BOTTOM is ignored if the number
may be specified for more than one map in a mapset.
of lines is not also specified. If
HILIGHT JUSTIFY=BOTTOM and LINE are both
specifies the default highlighting attribute for all fields in specified, the value specified in LINE is
all maps in a mapset. This is overridden by the ignored.
HILIGHT operand of the DFHMDF.
LEFT and RIGHT are mutually exclusive, as are FIRST
OFF is the default and indicates that no and LAST. If neither FIRST nor LAST is specified, the
highlighting is used. data is mapped at the next available position as
determined by other parameters of the map definition YES specifies that this map definition can be
and the current mapping operation. FIRST or LAST is used in outboard formatting.
ignored unless ACCUM is specified on SEND MAP
NO specifies that this map definition cannot be
commands; otherwise only one map is placed on each
used in outboard formatting.
page.
OUTLINE
Note: If a field is initialized by an output map or
allows lines to be included above, below, to the left, or to
contains data from any other source, data that is keyed
the right of a field. You can use these lines in any
as input overwrites only the equivalent length of the
combination to construct boxes around fields or groups
existing data; surplus existing data remains in the field
of fields.
and could cause unexpected interpretation of the new
data. PARTN
specifies the default partition to be associated with maps
LINE
in this mapset. If the ACTIVATE option is specified, the
specifies the starting line on a page in which data for a
specified partition is also activated when maps in this
map is to be formatted.
mapset are output to a terminal that supports partitions.
NUMBER is a value in the range 1–240, specifying a
This option overrides the PARTN option of the DFHMSD
starting line number. A request to map, on
macro and is overridden by any OUTPARTN or
a line and column, data that has been
ACTPARTN option on the SEND MAP command, or the
formatted in response to a preceding BMS
INPARTN option on a RECEIVE MAP command.
command, causes the current page to be
treated as though complete. The new data The PARTN option is ignored if the target terminal does
is formatted at the requested line and not support partitions, or if there is no partition set
column on a new page. associated with the transaction.
NEXT specifies that formatting of data is to begin PS specifies that programmed symbols are to be used. This
on the next available completely empty line. overrides the PS operand of the DFHMSD macro and is
If LINE=NEXT is specified in the DFHMDI overridden by the PS operand of the DFHMDF macro.
macro, it is ignored for input operations and
BASE specifies that the base symbol set is to be
LINE=1 is assumed.
used.
SAME specifies that formatting of data is to begin
psid specifies a single EBCDIC character, or a
on the same line as that used for a
hexadecimal code of the form X'nn', that
preceding BMS command. If
identifies the set of programmed symbols to
COLUMN=NEXT is specified, it is ignored
be used.
for input operations and COLUMN=1 is
assumed. If the data does not fit on the The PS operand is ignored unless the terminal supports
same line, it is placed on the next available programmed symbols, as indicated by the
completely-empty line. PROGSYMBOLS(YES) on the RDO TYPETERM
definition, or by FEATURE in the terminal control table
MAPATTS
TYPE=TERMINAL.
specifies the attribute types to be included in the
physical map. These types can be one or more of the SIZE
following: COLOR, HILIGHT, OUTLINE, PS, SOSI, specifies the size of a map.
TRANSP, and VALIDN. This list must include all the
attribute types to be specified for individual fields in the line is a value in the range 1–240, specifying the
map (DFHMDF macro). depth of a map as a number of lines.
Where possible these values are deduced from column is a value in the range 1–240, specifying the
operands already specified in the DFHMDI and width of a map as a number of columns.
DFHMSD macros. For example, if COLOR=BLUE has This operand is required in the following
been specified, MAPATTS=COLOR is assumed. cases:
OBFMT An associated DFHMDF macro with the
specifies whether outboard formatting is to be used. POS operand is used.
This operand is available only for 3650 logical units, or
The map is to be referred to in a SEND
for an 8100 series processor running DPS Release 2
MAP command with the ACCUM option.
and defined to CICS as an LUTYPE2 logical unit. For
more information, see the CICS/ESA Application The map is to be used when referring
Programming Guide. to input data from other than a 3270
terminal in a RECEIVE MAP command.
The OBFMT operand overrides the OBFMT operand on
the DFHMSD macro.
SOSI MUSTENTER
indicates that the field may contain a mixture of EBCDIC specifies that data must be entered into the
and DBCS data. The DBCS subfields within an EBCDIC field, though need not fill it. An attempt to
field are delimited by SO (shift out) and SI (shift in) move the cursor from an empty field raises
characters. SO and SI both occupy a single screen the INHIBIT INPUT condition
position (normally displayed as a blank). They can be
TRIGGER specifies that this field is a trigger field.
included in any non-DBCS field on output, if they are
Trigger fields are discussed in the
correctly paired. The terminal user can transmit them
CICS/ESA Application Programming Guide.
inbound if they are already present in the field, but can
# Apar PQ12071
add them to an EBCDIC field only if the field has the
SOSI attribute. # Documentation for Apar PQ12071
TERM # added 12/03/98
kept for compatibility with previous releases.
# USEREXIT
TIOAPFX # specifies that this field is to be processed by
specifies whether BMS should include a filler in the # the BMS global user exits, XBMIN and
symbolic description maps to allow for the unused TIOA # XBMOUT, if this field is received or
prefix. This operand overrides the TIOAPFX operand # transmitted in a 3270 datastream when the
specified for the DFHMSD macro. # respective exit is enabled. For further
YES specifies that the filler should be included in # information on the use of the BMS global
the symbolic description maps. If # user exits, refer to the CICS/ESA
TIOAPFX=YES is specified, all maps within # Customization Guide.
the mapset have the filler. TIOAPFX=YES # The MUSTFILL, MUSTENTER and TRIGGER
should always be used for command-level # specifications are valid only for terminals that support the
application programs. # field validation extended attribute, otherwise they are
NO is the default and specifies that the filler is # ignored. The USEREXIT specification applies to all
not to be included. # 3270 devices.
VALIDN
# specifies:
DFHMSD
Function
Mapset definition.
Command syntax
Minimum BMS:
# Apar 69549
# Documentation for Apar 69549 added 13 Apr 1995 (TUCKER)
┌─,───────────────────────┐ ┌─,───────────────────────────────┐
──mapset──DFHMSD──TYPE=─┬─DSECT─┬────*┬───────────────────────┬┴───*┬───────────────────────────────┬┴──"
├─MAP───┤ │ ┌─OUT───┐ │ │ ┌─NO──┐ │
└─FINAL─┘ ├─MODE=─┼───────┼───────┤ ├─CURSLOC=─┼─────┼──────────────┤
│ ├─IN────┤ │ │ └─YES─┘ │
│ └─INOUT─┘ │ │ ┌─OFF───────┐ │
│ ┌─LOWER─┐ │ ├─HILIGHT=─┼───────────┼────────┤
├─FOLD=─┼───────┼───────┤ │ ├─BLINK─────┤ │
│ └─UPPER─┘ │ │ ├─REVERSE───┤ │
│ ┌─NO──┐ │ │ └─UNDERLINE─┘ │
├─TRIGRAPH=─┼─────┼─────┤ ├─PS=─┬─BASE─┬──────────────────┤
│ └─YES─┘ │ │ └─psid─┘ │
# │ ┌─ASM────┐ │ │ ┌─,───────────┐ │
# ├─LANG=─┼────────┼──────┤ *
├─VALIDN=(──┬───────────┬┴─)────┤
# │ ├─COBOL──┤ │ │ ├─MUSTFILL──┤ │
# │ ├─COBOL2─┤ │ │ ├─MUSTENTER─┤ │
# │ ├─PLI────┤ │ │ ├─TRIGGER───┤ │
# │ └─C──────┘ │ │ └─USEREXIT──┘ │
├─┬──────────────┬──────┤ ├─┬─TERM=type─┬─────────────────┤
│ ├─STORAGE=AUTO─┤ │ │ └─SUFFIX=n──┘ │
│ └─BASE=name────┘ │ │ ┌─NO──┐ │
│ ┌─,────────┐ │ ├─TIOAPFX=─┼─────┼──────────────┤
├─CTRL=(──*┬────────┬┴─)─┤ │ └─YES─┘ │
│ ├─PRINT──┤ │ │ ┌─,────────────┐ │
│ ├─length─┤ │ ├──*MAPATTS=(attr)┴──────────────┤
│ ├─FREEKB─┤ │ │ ┌─,───────────┐ │
│ ├─ALARM──┤ │ ├──*DSATTS=(attr)┴───────────────┤
│ └─FRSET──┘ │ ├─OUTLINE=─┬─BOX─────────────┬──┤
│ ┌─NO──────┐ │ │ │ ┌─,───────┐ │ │
├─EXTATT=─┼─────────┼───┤ │ └─(──*┬───────┬┴─)─┘ │
│ ├─MAPONLY─┤ │ │ ├─LEFT──┤ │
│ └─YES─────┘ │ │ ├─RIGHT─┤ │
│ ┌─DEFAULT─┐ │ │ ├─OVER──┤ │
└─COLOR=─┼─────────┼────┘ │ └─UNDER─┘ │
└─color───┘ │ ┌─NO──┐ │
├─SOSI=─┼─────┼─────────────────┤
│ └─YES─┘ │
│ ┌─YES─┐ │
└─TRANSP=─┼─────┼───────────────┘
└─NO──┘
Standard BMS:
┌─,───────────────────────────────┐
───*┬───────────────────────────────┬┴──"
├─PARTN=(name)─┬─────────────┬──┤
│ └─,──ACTIVATE─┘ │
├─LDC=mnemonic──────────────────┤
│ ┌─NO──┐ │
├─OBFMT=─┼─────┼────────────────┤
│ └─YES─┘ │
│ ┌─,─────┐ │
*
├─HTAB=────tab──┴───────────────┤
│ ┌─,─────┐ │
├─VTAB=──*──tab──┴───────────────┤
│ ┌─FIELD─┐ │
├─DATA=─┼───────┼───────────────┤
│ └─BLOCK─┘ │
└─FLDSEP=─┬─char────────┬───────┘
└─X'hex-char'─┘
FREEKB causes the keyboard to be unlocked after FIELD specifies that the data is passed as
the map is written. If FREEKB is not contiguous fields, each field having the
specified, the keyboard remains locked; data format:
entry from the keyboard is inhibited until this
status is changed. LL A data field
ALARM activates the 3270 audible alarm. For
non-3270 VTAM terminals, it sets the alarm “LL” is two bytes specifying the length of the
flag in the FMH. (This feature is not data as input from the terminal (these two
supported by interactive and batch logical bytes are ignored in output processing). “A”
units.) is a byte into which the programmer can
place an attribute to override that specified
FRSET specifies that the modified data tags (MDTs)
in the map used to process this data (see
of all fields currently in the 3270 buffer are
copybook DFHBMSCA in Appendix J,
to be reset to a not-modified condition (that
“BMS-related constants” on page 375).
is, field reset) before map data is written to
the buffer. This allows the DFHMDF macro BLOCK specifies that the data is passed as a
with the ATTRB operand to control the final continuous stream in the following format:
status of any fields written or rewritten in
response to a BMS command. A data field space
CURSLOC
indicates that for all RECEIVE MAP operations using this This stream is processed as line segments
map on 3270 terminals, BMS sets a flag in the of the length specified in the map used to
application data structure element for the field where the process the data. The data is in the form
cursor is located. that it appears on the terminal; that is, it
contains data fields and interspersed blanks
The flag may be tested by DFHBMCUR (see copybook corresponding to any spaces that are to
DFHBMSCA in Appendix J, “BMS-related constants” on appear between the fields on output. You
page 375). cannot use DSATTS=YES, if you specify
To test the flag (COBOL example): DATA=BLOCK.
(DFHBMSCA) Block data is further discussed in the
... CICS/ESA Application Programming Guide.
O2 DFHBMEOF PIC X VALUE X'8O'.
O2 DFHBMCUR PIC X VALUE X'O2'. DSATTS
O2 DFHBMEC PIC X VALUE X'82'. specifies the attribute types to be included in the
O2 DFHBMFLG PIC X. symbolic description map. These types can be one or
88 DFHERASE VALUES ARE X'8O', X'82'. more of the following: COLOR, HILIGHT, OUTLINE, PS,
88 DFHCURSR VALUES ARE X'O2', X'82'. SOSI, TRANSP, and VALIDN. Any type included in
MOVE FLD1F TO DFHBMFLG. DSATTS should also be included in MAPATTS.
IF DFHERASE THEN ...
ELSE ... EXTATT
IF DFHCURSR THEN ... this operand is supported for compatibility with previous
ELSE ... releases. Each of the extended attributes can be
defined individually. For new maps, the operands
Notes:
DSATTS and MAPATTS should be used instead.
1. If CURSLOC=YES is specified for the MAP
NO is equivalent to specifying neither the
definitions, and there is no data for any field of the
DSATTS operand nor the MAPATTS
application data structure, but the cursor lies within
operand.
a field known to the application data structure, BMS
sets the cursor flag for the appropriate field, but the YES is equivalent to:
data for all fields in the application data structure is MAPATTS=(COLOR,HILIGHT,PS,VALIDN)
null, and the MAPFAIL condition does not occur. DSATTS=(COLOR,HILIGHT,PS,VALIDN)
The unmapped data stream is not available to the
application program unless it is a RECEIVE DATA MAPONLY is equivalent to:
FROM request. MAPATTS=(COLOR,HILIGHT,PS,VALIDN)
2. A valid CURSLOC definition in DFHMDI overrides FLDSEP
the definition in DFHMSD. specifies the field separator sequence (1–4 characters)
for input from non-3270 devices. Input from non-3270
DATA devices can be entered as a single string of data with
specifies the format of the data. the field separator sequence delimiting fields. The data
between the field separators is moved to the input fields Where possible these values are deduced from
in the map in order. operands already specified in the DFHMDI and
DFHMSD macros. For example, if COLOR=BLUE has
FOLD
been specified, MAPATTS=COLOR is assumed.
specifies whether to generate lowercase or uppercase
characters in C language programs. MODE
specifies whether the mapset is to be used for input,
FOLD is only available for programs written in C.
output, or both.
HILIGHT
OBFMT
specifies the default highlighting attribute for all fields in
specifies whether outboard formatting is to be used.
all maps in a mapset. This is overridden by the
This operand is available only for 3650 logical units, or
HILIGHT operand of the DFHMDI, which is in turn
for an 8100 series processor running DPS Release 2
overridden by the HILIGHT operand of the DFHMDF.
and defined to CICS as an LUTYPE2 logical unit. For
OFF is the default and indicates that no more information, see the CICS/ESA Application
highlighting is used. Programming Guide.
BLINK specifies that the field must blink. The OBFMT operand on DFHMSD is overridden by the
OBFMT operand on DFHMDI.
REVERSE specifies that the character or field is
displayed in reverse video, for example, on YES specifies that all maps within this mapset
a 3278, black characters on a green can be used in outboard formatting, except
background. those for which OBFMT=NO is specified in
UNDERLINE the DFHMDI macro.
specifies that a field is underlined. NO specifies that no maps within this mapset
can be used in outboard formatting, except
The HILIGHT operand is ignored unless the terminal
those for which OBFMT=YES is specified in
supports highlighting, as indicated by HILIGHT(YES) on
DFHMDI.
the RDO TYPETERM definition or by FEATURE in the
terminal control table TYPE=TERMINAL. OUTLINE
allows lines to be included above, below, to the left, or to
HTAB
the right of a field. You can use these lines in any
specifies one or more tab positions for use with
combination to construct boxes around fields or groups
interactive and batch logical units and SCS printers with
of fields.
horizontal forms control.
PARTN
LANG
specifies the default partition to be associated with maps
specifies the source language of the application
in this mapset. If the ACTIVATE option is specified, the
programs into which the symbolic description maps in
specified partition is also activated when maps in this
the mapset are copied. This option need only be coded
mapset are output to a terminal that supports partitions.
for DFHMSD TYPE=DSECT. If a mapset is to be used
This option is overridden by the PARTN operand of the
by more than one program, and the programs are not all
DFHMDI macro, which is in turn overridden by any
written in the same source language, a separate version
OUTPARTN or ACTPARTN option on the SEND MAP
of the mapset must be defined for each programming
command, or the INPARTN option on a RECEIVE MAP
language.
command.
LDC
The PARTN operand is ignored if the target terminal
specifies the code to be used by CICS to determine the
does not support partitions, or if there is no partition set
logical device mnemonic to be used for a BMS output
associated with the transaction.
operation. If no LDC operand has been specified on any
previous BMS output in the logical message, this LDC PS specifies that programmed symbols are to be used. This
will be transmitted in the function management header to is overridden by the PS operand of the DFHMDI macro,
the logical unit. This operand is used only for TCAM which is in turn overridden by the PS operand of the
and VTAM-supported 3600 terminals, and batch logical DFHMDF macro.
units.
BASE specifies that the base symbol set is to be
MAPATTS used.
specifies the attribute types to be included in the
psid specifies a single EBCDIC character, or a
physical map. These types can be one or more of the
hexadecimal code of the form X'nn', that
following: COLOR, HILIGHT, OUTLINE, PS, SOSI,
identifies the set of programmed symbols to
TRANSP, and VALIDN. This list must include all the
be used.
attribute types to be specified for individual fields in the
map (DFHMDF macro).
For an assembler-language program, For TCAM-connected terminals (other than 3270 or SNA
STORAGE=AUTO specifies that individual maps within a devices), use either CRLP or ALL; for TCAM-connected
mapset are to occupy separate areas of storage instead 3270s or SNA devices, select the appropriate parameter
of overlaying one another. in the normal way.
If ALL is specified, ensure that device dependent
SUFFIX
characters are not included in the mapset and that
specifies a 1-character, user-defined, device-dependent
format characteristics such as page size are suitable for
suffix for this mapset, as an alternative to a suffix
all input/output operations (and all terminals) in which
generated by the TERM operand. The suffix specified
the mapset is applied. For example, some terminals are
by this operand should match the value of a transaction
limited to 480 bytes, others to 1920 bytes; the 3604 is
defined with ALTSUFFIX, or ALTSFX in the terminal
limited to six lines of 40 characters each. Within these
control table TYPE=TERMINAL. Use a numeric value to
guidelines, use of ALL can offer important advantages.
avoid conflict with suffixes generated by the TERM
Because an assembly run is required for each map
operand.
generation, the use of ALL, indicating that one map is to
be used for more than one terminal, can result in
significant time and storage savings.
However, better run-time performance for maps used by before an application program can use
single terminal types is achieved if the terminal type them.
(rather than ALL) is specified. Alternatively, BMS
If both map and DSECT are to be generated in the
support for device-dependent mapsets can be bypassed
same job, the SYSPARM option can be used in the
by specifying NODDS in the BMS operand of the system
assembler job execution step, as described in the
initialization parameters. For more information, see the
CICS/ESA Installation Guide.
CICS/ESA Resource Definition Guide.
VALIDN
TIOAPFX
specifies whether BMS should include a filler in the
# specifies:
symbolic description maps to allow for the unused TIOA
prefix. # the validation that is to be used on an 8775 terminal
YES specifies that the filler should be included in # that this field is to be processed by the BMS global
the symbolic description maps. If # user exits
TIOAPFX=YES is specified, all maps within
This is overridden by the VALIDN operand of the
the mapset have the filler, except when
DFHMDI macro, which is in turn overridden by the
TIOAPFX=NO is specified on the DFHMDI
VALIDN operand of the DFHMDF macro.
macro. TIOAPFX=YES should always be
used for command-level application MUSTFILL specifies that the field must be filled
programs. completely with data. An attempt to move
NO is the default and specifies that the filler is the cursor from the field before it has been
not to be included. The filler may still be filled, or to transmit data from an incomplete
included for a map if TIOAPFX=YES is field, raises the INHIBIT INPUT condition.
specified on DFHMDI. MUSTENTER
specifies that data must be entered into the
TRANSP
field, though need not fill it. An attempt to
determines whether the background of an alphanumeric
move the cursor from an empty field raises
field is transparent or opaque, that is, whether an
the INHIBIT INPUT condition.
underlying (graphic) presentation space is visible
between the characters. TRIGGER specifies that this field is a trigger field.
Trigger fields are discussed in the
TRIGRAPH
CICS/ESA Application Programming Guide.
specifies trigraph sequences to be used in C/370
# Apar PQ12071
language symbolic description maps.
When TRIGRAPH=YES, trigraph sequences are # Documentation for Apar PQ12071
produced: # added 12/03/98
{ prints as ??<
# USEREXIT
} prints as ??>
# specifies that this field is to be processed by
[ prints as ??(
# the BMS global user exits, XBMIN and
] prints as ??)
# XBMOUT, if this field is received or
This option is only available for programs written in C. # transmitted in a 3270 datastream when the
# respective exit is enabled. For further
TYPE # information on the use of the BMS global
specifies the type of map to be generated using the # user exits, refer to the CICS/ESA
definition. Both types of map must be generated before # Customization Guide.
the mapset can be used by an application program. If
aligned symbolic description maps are required, you # The MUSTFILL, MUSTENTER and TRIGGER
should ensure that you specify SYSPARM=ADSECT and # specifications are valid only for terminals that support the
SYSPARM=AMAP when you assemble the symbolic and # field validation extended attribute, otherwise they are
physical maps respectively. # ignored. The USEREXIT specification applies to all
# 3270 devices.
DSECT specifies that a symbolic description map is
to be generated. Symbolic description maps # Note: The USEREXIT specification is totally
must be copied into the source program # unconnected with the field validation extended
before it is translated and compiled. # attribute as defined in the 3270 datastream
# architecture.
MAP specifies that a physical map is to be
generated. Physical maps must be The VALIDN operand is ignored unless the terminal
assembled or compiled, link-edited, and supports validation, as indicated by VALIDATION(YES)
cataloged in the CICS program library
VTAB
specifies one or more tab positions for use with
interactive and batch logical units and SCS printers
having vertical forms control.
DFHPDI
Function
Partition definition.
Command syntax
┌─,────────────────────────┐
──┬───────┬──DFHPDI──VIEWPOS=(lines,columns)──,VIEWSZE=(lines,columns)───*┬────────────────────────┬┴──"
└─partn─┘ ├─BUFSZE=(lines,columns)─┤
├─CHARSZE=(vpels,hpels)──┤
├─MAPSFX=mapset-suffix───┤
└─ATTRB=ERROR────────────┘
A partition set contains one or more partitions. Each partition defaults for individual partitions by coding CHARSZE in
is defined by coding a partition definition macro. the DFHPDI macro.
DFHPSD
Function
Partition set definition.
Command syntax
┌─,─────────────────────────┐
──partnset DFHPSD───*┬─────────────────────────┬┴──"
├─SUFFIX=user-suffix──────┤
├─ALTSCRN=(lines,columns)─┤
└─CHARSZE=(vpels,hpels)───┘
DFHPSD operands
ALTSCRN(lines,columns)
specifies the size, in characters, of the usable area of
the target terminal. This is normally the same as the
RDO ALTSCREEN option, or the ALTSCRN operand of
the terminal control table TYPE=TERMINAL entry for the
terminal. You use ALTSCRN to ensure that the
viewports of partitions within a partition set fit into the
usable area of the screen.
CHARSZE(vpels,hpels)
specifies the size of the character cell to be reserved for
each character displayed in a partition. You specify the
size as numbers of vertical picture elements (vpels) and
numbers of horizontal picture elements (hpels). You can
specify this operand on either the DFHPSD macro only,
or on both the DFHPSD and DFHPDI macros. The
values specified in this operand become the defaults for
all partitions in the partition set. You can override this
default for individual partitions by coding CHARSZE in
the DFHPDI macro.
Index 407
batch mode application, 3740 60, 216, 260 CASE operand
BELOW option DFHMDF 385
GETMAIN 121 CBIDERR condition
BIF DEEDIT command 30 ALLOCATE (APPC) 16
BLANK value ALLOCATE (LUTYPE6.1) 18
DFHMDF 386 CONVERSE (non-VTAM) 63
BLINK value CONVERSE (VTAM) 51
DFHMDF 386 EXTRACT ATTACH (LUTYPE6.1) 83
DFHMDI 393 EXTRACT ATTACH (MRO) 85
DFHMSD 399 SEND (non-VTAM) 262
BLOCK value SEND (VTAM) 253
DFHMDI 392 CBUFF option
DFHMSD 398 SEND (non-VTAM) 261
BMS CHANGE PASSWORD command 37
See basic mapping support CHANGE TASK command 38
BOTTOM value CHANGETIME option
DFHMDI 393 VERIFY PASSWORD 318
browse operation CHARSZE operand
ending 77 DFHPDI 403
read next record 189 DFHPSD 404
read previous record 193 CICSDATAKEY option
reset starting point 229 GETMAIN 121
starting 309 CLASS option
BRT value SPOOLOPEN 296
DFHMDF 384 SPOOLOPEN INPUT 294
BTAM programmable terminals 358 CLEAR option
BTRANS option HANDLE AID 125
ASSIGN 24 CLRPARTN option
BUFFER option HANDLE AID 125
GDS RECEIVE 115 CMDSEC option
RECEIVE (non-VTAM) 218 ASSIGN 24
RECEIVE (VTAM) 208 CNOTCOMPL option
BUFSZE operand SEND (non-VTAM) 261
DFHPDI macro 403 SEND (VTAM) 252
BUILD ATTACH (LUTYPE6.1) command 31 COBOL
BUILD ATTACH (MRO) command 33 argument values 2
built-in functions translated code 353
commands 9 CODEREG operand 355
COLOR operand
DFHMDF 385
C DFHMDI 391
C language DFHMSD 397
ADDRESS COMMAREA 13 COLOR option
ADDRESS EIB 13 ASSIGN 24
argument values 2 COLUMN operand
LENGTH option default 3 DFHMDI 391
translated code 353 command language translator
CANCEL command 35 translated code 353
CANCEL option commands
ABEND 12 format, arguments 1
HANDLE ABEND 123 security 10
CARD option spool 10
ISSUE ABORT 131 temporary storage control 10
ISSUE END 141 COMMAREA option
ISSUE SEND 162 ADDRESS 13
ISSUE WAIT 166 LINK 169
Index 409
copybooks CVDA options (continued)
DFHAID 379 PURGEABILITY
DFHBMSCA 375 WAIT EXTERNAL 323
DFHEIBLK 355 WAITCICS 328
DFHMSRCA 377 READ
CPI Communications (SAA) 365 QUERY SECURITY 182
create a journal record 332 STATE 51, 63, 209, 219, 253, 262
CSMT transaction ALLOCATE (APPC) 16
resend message destination 59 ALLOCATE (MRO) 20
CSTL transaction CONNECT PROCESS 39
resend message destination 59 EXTRACT ATTRIBUTES (APPC) 86
CTLCHAR option EXTRACT ATTRIBUTES (MRO) 87
CONVERSE (non-VTAM) 61 FREE (APPC) 96
CONVERSE (VTAM) 50 FREE (MRO) 98
ISSUE COPY (3270 display) 137 GDS ALLOCATE 102
ISSUE COPY (3270 logical) 138 GDS CONNECT PROCESS 105
SEND (non-VTAM) 261 GDS EXTRACT ATTRIBUTES 107
SEND (VTAM) 252 GDS FREE 109
CTRL operand GDS ISSUE ABEND 110
DFHMDI 391 GDS ISSUE CONFIRMATION 111
DFHMSD 397 GDS ISSUE ERROR 112
CURRENT option GDS ISSUE PREPARE 113
SEND PAGE 276 GDS ISSUE SIGNAL 114
CURSLOC operand GDS RECEIVE 116
DFHMDI 392 GDS SEND 118
DFHMSD 398 GDS WAIT 119
cursor address 361 ISSUE ABEND 130
CURSOR option ISSUE CONFIRMATION 135
RECEIVE MAP MAPPINGDEV command 223 ISSUE ERROR 149
SEND CONTROL 265 ISSUE PREPARE 154
SEND MAP 269 ISSUE SIGNAL (APPC) 164
SEND MAP MAPPINGDEV command 274 WAIT CONVID 320
SEND TEXT 281 UPDATE
cursor position QUERY SECURITY 183
terminal control 361 CVDA values
CVDA (CICS-value data area) ALLOCATED
argument values 2 ALLOCATE (APPC) 16
command format 2 ALLOCATE (MRO) 20
passing and receiving 5 CONNECT PROCESS 39
values in alphabetic order 371 EXTRACT ATTRIBUTES (APPC) 86
values in numeric order 371 EXTRACT ATTRIBUTES (MRO) 87
CVDA options FREE (APPC) 96
ACTION FREE (MRO) 98
WRITE OPERATOR 334 GDS ALLOCATE 102
ALTER GDS CONNECT PROCESS 105
QUERY SECURITY 182 GDS EXTRACT ATTRIBUTES 107
ASRAKEY GDS FREE 109
ASSIGN 23 GDS ISSUE ABEND 110
ASRASPC GDS ISSUE CONFIRMATION 111
ASSIGN 24 GDS ISSUE ERROR 112
CONTROL GDS ISSUE PREPARE 113
QUERY SECURITY 182 GDS ISSUE SIGNAL 114
LOGMESSAGE GDS RECEIVE 116
QUERY SECURITY 182 GDS SEND 118
MAXLIFETIME GDS WAIT 119
DEQ 72 ISSUE ABEND 130
ENQ 79 ISSUE CONFIRMATION 135
Index 411
CVDA values (continued) CVDA values (continued)
FREE (continued) PENDFREE (continued)
ISSUE ABEND 130 ISSUE PREPARE 154
ISSUE CONFIRMATION 135 ISSUE SIGNAL (APPC) 164
ISSUE ERROR 149 RECEIVE (APPC) 209
ISSUE PREPARE 154 RECEIVE (MRO) 219
ISSUE SIGNAL (APPC) 164 SEND (APPC) 253
RECEIVE (APPC) 209 SEND (MRO) 262
RECEIVE (MRO) 219 WAIT CONVID 320
SEND (APPC) 253 PENDRECEIVE
SEND (MRO) 262 CONNECT PROCESS 39
WAIT CONVID 320 EXTRACT ATTRIBUTES (APPC) 86
IMMEDIATE FREE (APPC) 96
WRITE OPERATOR 334 GDS ALLOCATE 102
LOG GDS CONNECT PROCESS 105
QUERY SECURITY 182 GDS EXTRACT ATTRIBUTES 107
LUW GDS FREE 109
DEQ 72 GDS ISSUE ABEND 110
ENQ 79 GDS ISSUE CONFIRMATION 111
NOLOG GDS ISSUE ERROR 112
QUERY SECURITY 182 GDS ISSUE PREPARE 113
NONCICS GDS ISSUE SIGNAL 114
ASSIGN 23 GDS RECEIVE 116
NOTALTERABLE GDS SEND 118
QUERY SECURITY 182 GDS WAIT 119
NOTAPPLIC ISSUE ABEND 130
ASSIGN 23, 24 ISSUE CONFIRMATION 135
NOTCTRLABLE ISSUE ERROR 149
QUERY SECURITY 182 ISSUE PREPARE 154
NOTPURGEABLE ISSUE SIGNAL (APPC) 164
WAIT EXTERNAL 323 RECEIVE (APPC) 209
WAITCICS 328 SEND (APPC) 253
NOTREADABLE WAIT CONVID 320
QUERY SECURITY 182 PURGEABLE
NOTUPDATABLE WAIT EXTERNAL 323
QUERY SECURITY 183 WAITCICS 328
PENDFREE READABLE
CONNECT PROCESS 39 QUERY SECURITY 182
EXTRACT ATTRIBUTES (APPC) 86 RECEIVE
EXTRACT ATTRIBUTES (MRO) 87 CONNECT PROCESS 39
FREE (APPC) 96 CONVERSE (MRO) 63
FREE (MRO) 98 EXTRACT ATTRIBUTES (APPC) 86
GDS ALLOCATE 102 EXTRACT ATTRIBUTES (MRO) 87
GDS CONNECT PROCESS 105 FREE (APPC) 96
GDS EXTRACT ATTRIBUTES 107 FREE (MRO) 98
GDS FREE 109 GDS ALLOCATE 102
GDS ISSUE ABEND 110 GDS CONNECT PROCESS 105
GDS ISSUE CONFIRMATION 111 GDS EXTRACT ATTRIBUTES 107
GDS ISSUE ERROR 112 GDS FREE 109
GDS ISSUE PREPARE 113 GDS ISSUE ABEND 110
GDS ISSUE SIGNAL 114 GDS ISSUE CONFIRMATION 111
GDS RECEIVE 116 GDS ISSUE ERROR 112
GDS SEND 118 GDS ISSUE PREPARE 113
GDS WAIT 119 GDS ISSUE SIGNAL 114
ISSUE ABEND 130 GDS RECEIVE 116
ISSUE CONFIRMATION 135 GDS SEND 118
ISSUE ERROR 149 GDS WAIT 119
Index 413
CVDA values (continued) CWA option
SYNCRECEIVE (continued) ADDRESS 13
GDS ISSUE ABEND 110 CWALENG option
GDS ISSUE CONFIRMATION 111 ASSIGN 24
GDS ISSUE ERROR 112
GDS ISSUE PREPARE 113
GDS ISSUE SIGNAL 114 D
GDS RECEIVE 116 Data Facility Product (DFP)
GDS SEND 118 duct xi
GDS WAIT 119 DATA operand
ISSUE ABEND 130 DFHMDI 392
ISSUE CONFIRMATION 135 DFHMSD 398
ISSUE ERROR 149 DATA option
ISSUE PREPARE 154 FREEMAIN 101
ISSUE SIGNAL (APPC) 164 data sets
RECEIVE (APPC) 209 add records to 133
RECEIVE (MRO) 219 interrogating 156
SEND (APPC) 253 processing termination 141
SEND (MRO) 262 read records from 157
WAIT CONVID 320 update records 159
SYNCSEND data tables
CONNECT PROCESS 39 CICS/user-maintained
CONVERSE (MRO) 63 DELETE 67
EXTRACT ATTRIBUTES (APPC) 86 ENDBR 77
EXTRACT ATTRIBUTES (MRO) 87 READ 185
FREE (APPC) 96 READNEXT 189
FREE (MRO) 98 READPREV 193
GDS ALLOCATE 102 RESETBR 229
GDS CONNECT PROCESS 105 REWRITE 237
GDS EXTRACT ATTRIBUTES 107 STARTBR 309
GDS FREE 109 UNLOCK 316
GDS ISSUE ABEND 110 WRITE 329
GDS ISSUE CONFIRMATION 111 data to output device, sending 162
GDS ISSUE ERROR 112 data-area argument
GDS ISSUE PREPARE 113 CICS command format 2
GDS ISSUE SIGNAL 114 definition 1
GDS RECEIVE 116 data-value argument
GDS SEND 118 CICS command format 2
GDS WAIT 119 definition 1
ISSUE ABEND 130 data, deleting
ISSUE CONFIRMATION 135 file control records 67
ISSUE ERROR 149 temporary storage queues 71
ISSUE PREPARE 154 transient data queues 70
ISSUE SIGNAL (APPC) 164 data, passing to new tasks 305
RECEIVE (APPC) 209 DATA1 option
RECEIVE (MRO) 219 MONITOR 175
SEND (APPC) 253 DATA2 option
SEND (MRO) 262 MONITOR 175
WAIT CONVID 320 DATALENGTH option
TASK LINK 169
DEQ 72 DATAONLY option
ENQ 79 SEND MAP 269
UPDATABLE SEND MAP MAPPINGDEV command 274
QUERY SECURITY 183 DATAPOINTER option
USEREXECKEY FREEMAIN 101
ASSIGN 23
Index 415
DFHEIEND macro 353 DSSCS option
DFHEIENT macro ASSIGN 25
CODEREG 355 DSSTAT condition
DATAREG 355 ISSUE RECEIVE 157
defaults 355 DUMP TRANSACTION command 74
description 353 DUMPCODE option
EIBREG 355 DUMP TRANSACTION 74
DFHEIGBL macro 353 DUMPID option
DFHEIPLR symbolic register 356 DUMP TRANSACTION 74
DFHEIRET macro 354 DUPKEY condition
DFHEISTG macro 355 DELETE 68
DFHMDF macro 383 READ 187
DFHMDI macro 390 READNEXT 191
DFHMIRS 169 READPREV 194
DFHMSD macro 396 DUPREC condition
DFHMSRCA, MSR control value constants 377 REWRITE 237
DFHPDI macro 403 WRITE 330
DFHPSD macro 404 dynamic allocation 296
DFHRESP, built-in function 5 dynamic storage, extensions 355
DFHVALUE, translator routine 5
DFP, Data Facility Product xi
diagnostic services commands 9 E
DISABLED condition ECADDR option
DELETE 68 WAIT EVENT 321
DELETEQ TD 70 ECBLIST option
READ 187 WAIT EXTERNAL 323
READQ TD 197 WAITCICS 328
STARTBR 310 EDF, execution diagnostic facility 308
UNLOCK 316 EIB fields
WRITE 330 EIBAID 343
WRITEQ TD 336 EIBATT 343
disconnect a switched line 358 EIBCALEN 343
display-device operations EIBCOMPL 343
attention identifier (AID) 361 EIBCONF 343
attention identifier list, DFHAID 379 EIBCPOSN 343
copy displayed information 361 EIBDATE 343
cursor address 361 EIBDS 343
erase all unprotected fields 361 EIBEOC 343
input operation without data 361 EIBERR 344
pass control on receipt of an AID 125, 129 EIBERRCD 344
print displayed information 360 EIBFMH 344
standard attribute and printer control character list, EIBFN 344
DFHBMSCA 375 EIBFREE 345
terminal 360 EIBNODAT 345
distributed program link (DPL) EIBRCODE 345
ogram link 367 EIBRECV 348
DPL, distributed program link 367 EIBREQID 348
DRK value EIBRESP 349
DFHMDF 384 EIBRESP2 349
DS3270 option EIBRLDBK 349
ASSIGN 25 EIBRSRCE 349
DSATTS operand EIBSIG 349
DFHMDI 393 EIBSYNC 350
DFHMSD 398 EIBSYNRB 350
DSECT value EIBTASKN 350
DFHMSD 401 EIBTIME 350
Index 417
execution diagnostic facility (EDF) 308 FILE option (continued)
exit from ASM program 354 READ 185
exit, abnormal termination recovery 123 READNEXT 189
expiration time, notification when reached 178 READPREV 193
EXPIRED condition RESETBR 229
DELAY 66 REWRITE 237
POST 179 STARTBR 309
WRITE OPERATOR 335 UNLOCK 316
EXPIRYTIME option WRITE 329
VERIFY PASSWORD 318 filename
EXTATT operand definition 2, 3, 4
DFHMDI 393 filename argument, CICS command format 2
DFHMSD 398 FILENOTFOUND condition
EXTDS option DELETE 68
ASSIGN 25 ENDBR 77
external security manager (ESM) 182, 308 READ 187
EXTRACT ATTACH (LUTYPE6.1) command 82 READNEXT 191
EXTRACT ATTACH (MRO) command 84 READPREV 194
EXTRACT ATTRIBUTES (APPC) command 86 RESETBR 230
EXTRACT ATTRIBUTES (MRO) command 87 REWRITE 237
EXTRACT LOGONMSG command 88 STARTBR 310
EXTRACT PROCESS command 89 UNLOCK 316
EXTRACT TCT command 91 WRITE 330
FIRST value
DFHMDI 393
F FLDSEP operand
FACILITY option DFHMDI 393
ASSIGN 25 DFHMSD 398
FCI option FLENGTH option
ASSIGN 25, 351 DUMP TRANSACTION 74
FCT option fullword alternative to LENGTH 357
DUMP TRANSACTION 74 GDS RECEIVE 115
field definition macro, BMS 381 GDS SEND 117
field edit built-in function GETMAIN 121
See BIF DEEDIT LOAD 172
FIELD option RECEIVE (non-VTAM) 218
BIF DEEDIT 30 RECEIVE (VTAM) 208
field separator operand 393, 398 SEND (non-VTAM) 261
FIELD value SEND (VTAM) 252
DFHMDI 392 SPOOLWRITE 301
DFHMSD 398 FMH option
FIELDS operand CONVERSE (non-VTAM) 62
DFHMDI 393 CONVERSE (VTAM) 50
file control SEND (non-VTAM) 261
commands 10 SEND (VTAM) 252
deleting VSAM records 67 START 306
end browse operation 77 FMHPARM option
read next record 189 SEND MAP 269
read previous record 193 SEND PAGE 276
release exclusive control 316 SEND TEXT 281
specify start for browse 309 FOLD operand
update a record 237 DFHMSD 399
writing new record 329 FOR option
FILE option DELAY 65
DELETE 67 FORMATTIME command 92
ENDBR 77
Index 419
get main storage 120 IGREQCD condition
GETMAIN command 120 CONVERSE (VTAM) 52
GINIT operand ISSUE SEND 163
DFHMDF 385 SEND (VTAM) 253
GMMI option SEND CONTROL 266
ASSIGN 25 SEND MAP 271
GROUPID option SEND PAGE 277
SIGNON 290 SEND TEXT 283
GRPNAME operand SEND TEXT MAPPED 284
DFHMDF 385 SEND TEXT NOEDIT 287
GTEQ option IGREQID condition
READ 186 SEND CONTROL 266
RESETBR 229 SEND MAP 271
STARTBR 309 SEND TEXT 283
SEND TEXT MAPPED 285
SEND TEXT NOEDIT 287
H ILLOGIC condition
HANDLE ABEND command 123 DELETE 68
HANDLE AID command 125 EIBRCODE 348
HANDLE CONDITION command 127 ENDBR 77
HEADER operand READ 187
DFHMDI 393 READNEXT 191
HEADER option READPREV 194
SEND TEXT 281 RESETBR 230
hhmmss argument, CICS command format 2 REWRITE 237
HILIGHT operand STARTBR 310
DFHMDF 386 UNLOCK 316
DFHMDI 393 WRITE 330
DFHMSD 399 IMMEDIATE option
HILIGHT option RETURN 235
ASSIGN 25 implicit SPOOLCLOSE 294
HOLD option INBFMH condition
LOAD 172 CONVERSE (non-VTAM) 64
HONEOM option CONVERSE (VTAM) 52
SEND CONTROL 265 RECEIVE (non-VTAM) 219
SEND MAP 269 RECEIVE (VTAM) 209
SEND TEXT 281 INITIAL operand
SEND TEXT NOEDIT 286 DFHMDF 386
host command processor LU, 3650/3680 248 initialize main storage 120
host conversational LU 3650 initiate a task 305
(3270) 46, 247 INITIMG option
(3653) 46, 248 GETMAIN 121
HOURS option INITPARM option
DELAY 65 ASSIGN 25
POST 179 INITPARMLEN option
ROUTE 239 ASSIGN 25
START 306 INPARTN option
HTAB operand ASSIGN 25
DFHMSD 399 RECEIVE MAP 220
input operation without data 361
INPUTMSG option
I LINK 169
IC value
RETURN 235
DFHMDF 385
XCTL 341
IGNORE CONDITION command 129
INPUTMSGLEN option
LINK 169
Index 421
INVREQ condition (continued) INVREQ condition (continued)
ISSUE ABEND 130 SIGNOFF 289
ISSUE ABORT 132 SIGNON 291
ISSUE ADD 134 START 307
ISSUE CONFIRMATION 135 STARTBR 310
ISSUE END 142 SYNCPOINT 314
ISSUE ENDFILE 143 SYNCPOINT ROLLBACK 315
ISSUE ENDOUTPUT 144 UNLOCK 316
ISSUE EODS 145 VERIFY PASSWORD 319
ISSUE ERASE 147 WAIT CONVID 320
ISSUE ERASEAUP 148 WAIT EVENT 321
ISSUE ERROR 149 WAIT EXTERNAL 323
ISSUE NOTE 151 WAIT JOURNALNUM 324
ISSUE PASS 153 WAIT TERMINAL 326
ISSUE PREPARE 154 WAITCICS 328
ISSUE PRINT 155 WRITE 330
ISSUE QUERY 156 WRITE OPERATOR 335
ISSUE RECEIVE 158 WRITEQ TD 336
ISSUE REPLACE 160 WRITEQ TS 339
ISSUE RESET 161 XCTL 341
ISSUE SEND 163 IOERR condition
ISSUE SIGNAL (APPC) 164 DELETE 69
ISSUE WAIT 167 DUMP TRANSACTION 76
LINK 170 EIBRCODE 348
LOAD 173 READ 188
MONITOR 175 READNEXT 191
POP HANDLE 177 READPREV 195
POST 179 READQ TD 197
PURGE MESSAGE 180 READQ TS 199
QUERY SECURITY 183 RESETBR 230
READ 187 RETRIEVE 234
READNEXT 191 REWRITE 238
READPREV 195 START 308
READQ TD 197 STARTBR 311
READQ TS 199 UNLOCK 316
RECEIVE (non-VTAM) 219 WAIT JOURNALNUM 324
RECEIVE (VTAM) 209 WRITE 330
RECEIVE MAP 221 WRITE JOURNALNUM 333
RECEIVE MAP MAPPINGDEV command 224 WRITEQ TD 336
RECEIVE PARTN 226 WRITEQ TS 339
RELEASE 227 ISCINVREQ condition
RESETBR 230 CANCEL 36
RETRIEVE 234 DELETE 69
RETURN 236 DELETEQ TD 70
REWRITE 238 DELETEQ TS 71
ROUTE 241 ENDBR 77
SEND (non-VTAM) 262 READ 188
SEND (VTAM) 253 READNEXT 191
SEND CONTROL 266 READPREV 195
SEND MAP 272 READQ TD 197
SEND MAP MAPPINGDEV command 275 READQ TS 199
SEND PAGE 277 RESETBR 230
SEND PARTNSET 279 REWRITE 238
SEND TEXT 283 START 308
SEND TEXT MAPPED 285 STARTBR 311
SEND TEXT NOEDIT 287 UNLOCK 317
Index 423
katakana terminals (continued) LDC option
SEND (3735) 261 CONVERSE (VTAM) 50
SEND (3740) 261 ROUTE 239
SEND (System/3) 261 SEND (VTAM) 253
SEND (System/7) 261 SEND CONTROL 265
KEEP option SEND MAP 270
SPOOLCLOSE 293 SEND TEXT 282
KEYLENGTH option LDCMNEM option
DELETE 67 ASSIGN 26
ISSUE ERASE 146 LDCNUM option
ISSUE REPLACE 159 ASSIGN 26
READ 186 LEAVEKB option
READNEXT 189 CONVERSE (non-VTAM) 62
READPREV 193 RECEIVE (non-VTAM) 218
RESETBR 229 SEND (non-VTAM) 261
STARTBR 310 LEFT value
WRITE 329 DFHMDF 386
KEYNUMBER option DFHMDI 393
ISSUE ERASE 146 LENGERR condition
ISSUE REPLACE 159 BIF DEEDIT 30
keyword length 357 CONNECT PROCESS 40
CONVERSE (non-VTAM) 64
CONVERSE (VTAM) 52
L DEQ 72
L40, L64, or L80 options EIBRCODE byte 1 348
SEND CONTROL 265 ENQ 79
SEND MAP 270 ENTER TRACENUM 81
SEND TEXT 282 EXTRACT PROCESS 89
SEND TEXT NOEDIT 287 GETMAIN 122
label argument, CICS command format 2 ISSUE COPY (3270 logical) 138
LABEL option ISSUE PASS 153
HANDLE ABEND 123 ISSUE RECEIVE 158
LANG operand LINK 170
DFHMSD 399 LOAD 173
LANGINUSE option QUERY SECURITY 183
ASSIGN 26 READ 188
SIGNON 291 READNEXT 192
language codes 373 READPREV 195
LANGUAGECODE option READQ TD 197
SIGNON 290 READQ TS 199
LAST option RECEIVE (non-VTAM) 219
GDS SEND 117 RECEIVE (VTAM) 209
SEND (non-VTAM) 261 RECEIVE PARTN 226
SEND (VTAM) 252 RETRIEVE 234
SEND CONTROL 265 RETURN 236
SEND MAP 270 REWRITE 238
SEND PAGE 276 SEND (non-VTAM) 262
SEND TEXT 282 SEND (VTAM) 253
SEND TEXT MAPPED 284 SEND TEXT 283
SEND TEXT NOEDIT 287 START 308
LAST value WRITE 331
DFHMDI 393 WRITE JOURNALNUM 333
LASTUSETIME option WRITE OPERATOR 335
VERIFY PASSWORD 318 WRITEQ TD 336
LDC operand WRITEQ TS 340
DFHMSD 399 XCTL 341
Index 425
LUNAME option maps, loading 172
ISSUE PASS 152 mapset definition macro (DFHMSD) 381, 397
LUTYPE2, 3270-Display LU 42, 202, 243 MAPSET option
LUTYPE3, 3270-Display LU 202, 243 RECEIVE MAP 221
LUTYPE4 RECEIVE MAP MAPPINGDEV command 224
logical unit 42, 202, 243 SEND MAP 270
LUTYPE6.1 logical unit SEND MAP MAPPINGDEV command 275
acquiring a session 18 MAPSFX operand
communicating on LUTYPE6.1 session 43 DFHPDI 403
converting 8-character names to 4 characters 91 MAPWIDTH option
disconnecting 140 ASSIGN 26
ensuring terminal operation has completed 326 MASSINSERT option
getting information about 176 WRITE 330
receiving data 203 MAXFLENGTH option
requesting change of direction 165 CONVERSE (non-VTAM) 62
retrieving values from an LUTYPE6.1 header 82 CONVERSE (VTAM) 51
sending data 244 fullword alternative to MAXLENGTH 357
specifying values for an MRO attach header 33 GDS RECEIVE 115
specifying values for LUTYPE6.1 attach header 31 RECEIVE (non-VTAM) 218
RECEIVE (VTAM) 208
SPOOLREAD 299
M MAXLENGTH option
macros, BMS, summary 381 CONVERSE (non-VTAM) 62
magnetic slot reader (MSR) 377 CONVERSE (VTAM) 51
MAIN option fullword length alternative (MAXFLENGTH) 357
WRITEQ TS 338 RECEIVE (non-VTAM) 218
main storage 120 RECEIVE (VTAM) 208
map definition macro, BMS 381, 391 WRITE OPERATOR 335
MAP option MAXLIFETIME option
RECEIVE MAP 221 DEQ 72
RECEIVE MAP MAPPINGDEV command 224 ENQ 79
SEND MAP 270 MAXPROCLEN option
SEND MAP MAPPINGDEV command 275 EXTRACT PROCESS 89
MAP value GDS EXTRACT PROCESS 108
DFHMSD 401 MCC option
MAPATTS operand SPOOLOPEN 296
DFHMDI 394 MINUTES option
DFHMSD 399 DELAY 65
MAPCOLUMN option POST 179
ASSIGN 26 ROUTE 240
MAPFAIL condition START 306
RECEIVE MAP 221 MMDDYY option
RECEIVE MAP MAPPINGDEV command 224 FORMATTIME 93
MAPHEIGHT option MMDDYYYY option
ASSIGN 26 FORMATTIME 93
MAPLINE option MODE operand
ASSIGN 26 DFHMSD 399
MAPONLY option model codes (terminal) 351
SEND MAP 270 MODENAME option
SEND MAP MAPPINGDEV command 275 GDS ALLOCATE 102
MAPONLY value MONITOR command 174
DFHMDI 393 monitoring application performance 174
DFHMSD 398 monitoring commands 10
MAPPINGDEV option MONTHOFYEAR option
RECEIVE MAP MAPPINGDEV command 224 FORMATTIME 93
SEND MAP MAPPINGDEV command 275
Index 427
NOSUSPEND option (continued) NOTAUTH condition (continued)
ENQ 79 READ 188
GETMAIN 121 READNEXT 192
READQ TD 196 READPREV 195
WRITE JOURNALNUM 332 READQ TD 197
WRITEQ TS 339 READQ TS 199
NOTALLOC condition RELEASE 227
CONNECT PROCESS 40 RESETBR 230
CONVERSE (non-VTAM) 64 REWRITE 238
CONVERSE (VTAM) 52 SIGNON 291
EXTRACT ATTACH (LUTYPE6.1) 83 START 308
EXTRACT ATTACH (MRO) 85 STARTBR 311
EXTRACT ATTRIBUTES (APPC) 86 UNLOCK 317
EXTRACT ATTRIBUTES (MRO) 87 VERIFY PASSWORD 319
EXTRACT LOGONMSG 88 WRITE 331
EXTRACT PROCESS 90 WRITE JOURNALNUM 333
EXTRACT TCT 91 WRITEQ TD 337
FREE 95 WRITEQ TS 340
FREE (APPC) 96 XCTL 342
FREE (LUTYPE6.1) 97 NOTFND condition
FREE (MRO) 98 CANCEL 36
ISSUE ABEND 130 DELETE 69
ISSUE CONFIRMATION 135 QUERY SECURITY 183
ISSUE COPY (3270 display) 137 READ 188
ISSUE COPY (3270 logical) 138 READNEXT 192
ISSUE DISCONNECT (LUTYPE6.1) 140 READPREV 195
ISSUE ENDFILE 143 RESETBR 230
ISSUE ENDOUTPUT 144 RETRIEVE 234
ISSUE EODS 145 REWRITE 238
ISSUE ERASEAUP 148 STARTBR 311
ISSUE ERROR 149 NOTOPEN condition
ISSUE LOAD 150 DELETE 69
ISSUE PASS 153 DUMP TRANSACTION 76
ISSUE PREPARE 154 READ 188
ISSUE PRINT 155 READQ TD 197
ISSUE RESET 161 STARTBR 311
ISSUE SIGNAL (APPC) 164 UNLOCK 317
ISSUE SIGNAL (LUTYPE6.1) 165 WAIT JOURNALNUM 324
POINT 176 WRITE 331
RECEIVE (non-VTAM) 219 WRITE JOURNALNUM 333
RECEIVE (VTAM) 209 WRITEQ TD 337
SEND (non-VTAM) 262 NOTRUNCATE option
SEND (VTAM) 253 CONVERSE (non-VTAM) 62
WAIT CONVID 320 CONVERSE (VTAM) 51
WAIT SIGNAL 325 RECEIVE (non-VTAM) 218
WAIT TERMINAL 326 RECEIVE (VTAM) 208
NOTAUTH condition NOWAIT option
CANCEL 36 ISSUE ADD 133
CHANGE PASSWORD 37 ISSUE ERASE 146
DELETE 69 ISSUE REPLACE 159
DELETEQ TD 70 ISSUE SEND 162
DELETEQ TS 71 NUM value
ENDBR 77 DFHMDF 385
HANDLE ABEND 123 NUMBER value
LINK 170 DFHMDI 391, 394
LOAD 173
Index 429
passbook control, 2980 213 posting timer-event control area 178
passing a session 152 PPT option
passing control DUMP TRANSACTION 75
expecting return (LINK) 168 PREFIX option
on receipt of an AID (HANDLE AID) 125 WRITE JOURNALNUM 332
on receipt of an AID (IGNORE AID) 129 PRINCONVID option
without return (XCTL) 341 GDS ASSIGN 104
passing data to new tasks 305 PRINSYSID option
PASSWORD option ASSIGN 27
CHANGE PASSWORD 37 GDS ASSIGN 104
SIGNON 291 print displayed information 360
VERIFY PASSWORD 318 PRINT option
PCT option ISSUE ABORT 131
DUMP TRANSACTION 75 ISSUE END 141
performance, application, monitoring 174 ISSUE SEND 162
PF1–24 option ISSUE WAIT 166
HANDLE AID 125 SEND CONTROL 266
PFXLENG option SEND MAP 271
WRITE JOURNALNUM 332 SEND MAP MAPPINGDEV command 275
PGMIDERR condition SEND TEXT 282
HANDLE ABEND 124 SEND TEXT NOEDIT 287
LINK 170 SPOOLOPEN 297
LOAD 173 PRINT value
RELEASE 228 DFHMDI 391
XCTL 342 DFHMSD 397
PICIN operand printer control character list, DFHBMSCA 375
DFHMDF 387 priority of task, changing 38
PICOUT operand PRIORITY option
DFHMDF 388 CHANGE TASK 38
pipeline logical units 204, 245 PROCESS option
PIPLENGTH option BUILD ATTACH (LUTYPE6.1) 32
CONNECT PROCESS 39 BUILD ATTACH (MRO) 33
EXTRACT PROCESS 89 EXTRACT ATTACH (LUTYPE6.1) 82
GDS CONNECT PROCESS 105 EXTRACT ATTACH (MRO) 84
GDS EXTRACT PROCESS 108 processing task, control delay of 65
PIPLIST option PROCLENGTH option
CONNECT PROCESS 39 CONNECT PROCESS 39
EXTRACT PROCESS 89 EXTRACT PROCESS 89
GDS CONNECT PROCESS 105 GDS CONNECT PROCESS 105
GDS EXTRACT PROCESS 108 GDS EXTRACT PROCESS 108
PL/I language PROCNAME option
argument values 3 CONNECT PROCESS 39
LENGTH option default 4 EXTRACT PROCESS 89
PROCEDURE statement 353 GDS CONNECT PROCESS 105
STAE option 12 GDS EXTRACT PROCESS 108
translated code 353 PROFILE option
POINT command 176 ALLOCATE (APPC) 16
POINT option ALLOCATE (LUTYPE6.1) 18
MONITOR 175 program control
pointer-ref argument, CICS command format 2 commands 10
pointer-value argument, CICS command format 2 deleting loaded program 227
POP HANDLE command 177 LINK options 169
POS operand 382 linking to another program 168
DFHMDF 388 load a program, table, or map 172
POST command 178 returning program control 235
transfer program control 341
Index 431
RECEIVE (LUTYPE2/LUTYPE3) command 202 REQID option (continued)
RECEIVE (LUTYPE4) command 202 WRITE JOURNALNUM 332
RECEIVE (LUTYPE6.1) command 203 RESCLASS option
RECEIVE (MRO) command 210 QUERY SECURITY 182
RECEIVE (non-VTAM) command 210 RESET option
RECEIVE (System/3) command 211 HANDLE ABEND 123
RECEIVE (System/7) command 211 reset start for browse 229
RECEIVE (VTAM default) command 201 RESETBR command 229
RECEIVE command RESID option
input operation without data 361 QUERY SECURITY 182
read from terminal or logical unit 357 RESIDLENGTH option
RECEIVE MAP command 220 QUERY SECURITY 182
RECEIVE MAP MAPPINGDEV command 223 RESOURCE option
RECEIVE PARTN command 225 BUILD ATTACH (LUTYPE6.1) 32
RECFM option BUILD ATTACH (MRO) 34
BUILD ATTACH (LUTYPE6.1) 32 DEQ 72
BUILD ATTACH (MRO) 34 ENQ 79
EXTRACT ATTACH (LUTYPE6.1) 83 ENTER TRACENUM 80
EXTRACT ATTACH (MRO) 85 EXTRACT ATTACH (LUTYPE6.1) 83
RECORDLENGTH option EXTRACT ATTACH (MRO) 85
SPOOLOPEN 297 resource scheduling 72
records RESP
deleting VSAM 67 deactivating NOHANDLE 127
reading 157, 185 option 5
release exclusive control 316 values in EIBRESP 349
requesting next number 151 RESP and RESP2 options
updating 159, 237 for interface to JES 8
writing new 329 RESP2
writing new (adding) 133 EXPIRED in messages to console operators 335
register contents in assembler language 353 INVREQ in messages to console operators 335
relative byte address (RBA) 68 INVREQ in SIGNOFF (Security control) 289
RELEASE command 227 INVREQ in SIGNON (Security control) 291
RELEASE option INVREQ in WAIT EXTERNAL 323
SEND PAGE 277 INVREQ on WAITCICS 328
relocatable expression 4 LENGERR in messages to console operators 335
REPLY option NOTAUTH in SIGNON (Security control) 291
WRITE OPERATOR 335 option 5
REPLYLENGTH option USERIDERR in SIGNON (Security control) 292
WRITE OPERATOR 335 values in EIBRESP2 349
REQID option RESSEC option
CANCEL 35 ASSIGN 27
DELAY 66 RESTART option
ENDBR 77 ASSIGN 27
POST 179 RESTYPE option
READNEXT 190 QUERY SECURITY 182
READPREV 194 RETAIN option
RESETBR 230 SEND PAGE 277
ROUTE 240 RETCODE option
SEND CONTROL 266 GDS ALLOCATE 102
SEND MAP 271 GDS ASSIGN 104
SEND TEXT 282 GDS CONNECT PROCESS 105
SEND TEXT MAPPED 284 GDS EXTRACT ATTRIBUTES 107
SEND TEXT NOEDIT 287 GDS EXTRACT PROCESS 108
START 306 GDS FREE 109
STARTBR 310 GDS ISSUE ABEND 110
WAIT JOURNALNUM 324 GDS ISSUE CONFIRMATION 111
Index 433
SELNERR condition (continued) SESSION option (continued)
ISSUE NOTE 151 CONVERSE (non-VTAM) 62
ISSUE QUERY 156 CONVERSE (VTAM) 51
ISSUE REPLACE 160 EXTRACT ATTACH (LUTYPE6.1) 83
ISSUE SEND 163 EXTRACT ATTACH (MRO) 85
ISSUE WAIT 167 EXTRACT ATTRIBUTES (MRO) 87
SEND (2260) command 257 FREE (LUTYPE6.1) 97
SEND (2741) command 257 FREE (MRO) 98
SEND (2980) command 258 ISSUE DISCONNECT (LUTYPE6.1) 140
SEND (3270 display) command 258 ISSUE SIGNAL (LUTYPE6.1) 165
SEND (3270 logical) command 245 POINT 176
SEND (3600 BTAM) command 259 RECEIVE (non-VTAM) 219
SEND (3600 pipeline) command 245 RECEIVE (VTAM) 208
SEND (3600-3601) command 246 SEND (non-VTAM) 262
SEND (3600-3614) command 246 SEND (VTAM) 253
SEND (3650 interpreter) command 247 WAIT TERMINAL 326
SEND (3650-3270) command 247 session, passing 152
SEND (3650-3653) command 248 SESSIONERR condition
SEND (3650-3680) command 248 ALLOCATE (LUTYPE6.1) 18
SEND (3735) command 259 EIBRCODE bytes 1-2 347
SEND (3740) command 260 SET option
SEND (3767) command 249 ADDRESS SET 15
SEND (3770) command 249 CONVERSE (non-VTAM) 62
SEND (3790 3270-display) command 251 CONVERSE (VTAM) 51
SEND (3790 3270-printer) command 251 EXTRACT LOGONMSG 88
SEND (3790 full-function or inquiry) command 250 GDS RECEIVE 115
SEND (3790 SCS) command 250 GETMAIN 122
SEND (APPC) command 242 ISSUE RECEIVE 157
SEND (LUTYPE2/LUTYPE3) command 243 LOAD 172
SEND (LUTYPE4) command 243 POST 179
SEND (LUTYPE6.1) command 244 READ 186
SEND (MRO) command 255 READNEXT 191
SEND (non-VTAM default) command 255 READPREV 194
SEND (SCS) command 244 READQ TD 196
SEND (System/3) command 256 READQ TS 199
SEND (System/7) command 256 RECEIVE (non-VTAM) 219
SEND (vtam default) command 242 RECEIVE (VTAM) 208
send asynchronous interrupt 358 RECEIVE MAP 221
SEND command RECEIVE MAP MAPPINGDEV command 224
write to terminal 357 RECEIVE PARTN 225
SEND CONTROL command 264 RETRIEVE 233
SEND MAP command 268 SEND CONTROL 266
SEND MAP MAPPINGDEV command 274 SEND MAP 271
SEND PAGE command 276 SEND MAP MAPPINGDEV command 275
SEND PARTNSET command 279 SEND PAGE 277
SEND TEXT command 280 SEND TEXT 283
SEND TEXT MAPPED command 284 SHARED option
SEND TEXT NOEDIT command 286 GETMAIN 122
sending data to output device 162 SIGDATA option
sequential retrieval, browsing ASSIGN 28
reading records 185 SIGNAL condition
SESSBUSY condition CONVERSE (VTAM) 52
ALLOCATE (LUTYPE6.1) 18 ISSUE CONFIRMATION 136
SESSION option ISSUE DISCONNECT (default) 139
ALLOCATE (LUTYPE6.1) 18 ISSUE ERROR 149
CONNECT PROCESS 39 RECEIVE (VTAM) 209
Index 435
SYNCONRETURN option SYSIDERR condition (continued)
LINK 169 RESETBR 231
syncpoint REWRITE 238
backing out 315 START 308
commands 10 STARTBR 312
establishing 314 UNLOCK 317
SYNCPOINT command 314 WRITE 331
SYNCPOINT ROLLBACK command 315 WRITEQ TD 337
syntax notation 1 WRITEQ TS 340
SYSBUSY condition System/3
ALLOCATE (APPC) 17 CONVERSE 54
ALLOCATE (LUTYPE6.1) 18 RECEIVE 211
ALLOCATE (MRO) 20 SEND 256
EIBRCODE byte 3 348 System/7
SYSID option CONVERSE 54
ALLOCATE (APPC) 16 RECEIVE 211
ALLOCATE (LUTYPE6.1) 18 SEND 256
ALLOCATE (MRO) 20 systemname
ASSIGN 28 definition 2, 3, 4
CANCEL 35 systemname argument, CICS command format 2
DELETE 68
DELETEQ TD 70
DELETEQ TS 71 T
ENDBR 77 TABLES option
EXTRACT TCT 91 DUMP TRANSACTION 75
GDS ALLOCATE 102 tables, loading 172
LINK 169 task control commands 10
READ 187 task initiation 305
READNEXT 191 TASK option
READPREV 194 DUMP TRANSACTION 75
READQ TD 197 task, abnormal termination 123
READQ TS 199 task, delay processing of 65
RESETBR 230 TASKDATALOC resource definition option 13
REWRITE 237 TASKPRIORITY option
START 307 ASSIGN 28
STARTBR 310 TCAM-supported terminals and logical units 358
UNLOCK 316 TCT option
WRITE 330 DUMP TRANSACTION 76
WRITEQ TD 336 TCTUA option
WRITEQ TS 339 ADDRESS 14
SYSIDERR condition TCTUALENG option
ALLOCATE (APPC) 17 ASSIGN 28
ALLOCATE (LUTYPE6.1) 19 telecommunication line, relinquishing 358
ALLOCATE (MRO) 20 teletypewriter
CANCEL 36 messages 359
DELETE 69 programming 359
DELETEQ TD 70 TELLERID option
DELETEQ TS 71 ASSIGN 28
EIBRCODE bytes 1-2 347 temporary storage control commands 10
ENDBR 77 TERM operand
LINK 171 DFHMDI 395
READ 188 DFHMSD 400
READNEXT 192 TERMCODE option
READPREV 195 ASSIGN 28, 351
READQ TD 197 TERMERR condition
READQ TS 200 CONNECT PROCESS 40
Index 437
transient data commands 11 UNLOCK command 316
transient data control UNPROT value
delete intrapartition queue 70 DFHMDF 385
read data from TD queue 196 UNTIL option
write data to TD queue 336 DELAY 66
translated code 353 UPDATE option
TRANSP operand QUERY SECURITY 183
DFHMDF 389 READ 187
DFHMDI 395 updating records
DFHMSD 401 batch data interchange 159
TRIGGER option file control 237
HANDLE AID 125 USERDATAKEY option
TRIGGER value GETMAIN 122
DFHMDF 389 USEREXIT value
DFHMDI 395 DFHMDF 389
DFHMSD 401 DFHMDI 395
TRIGRAPH operand DFHMSD 401
DFHMSD 401 USERID option
TRT option ASSIGN 29
DUMP TRANSACTION 76 CHANGE PASSWORD 37
TSIOERR condition SIGNON 291
PURGE MESSAGE 180 SPOOLCLOSE 294
SEND CONTROL 267 SPOOLOPEN 297
SEND MAP 273 START 307
SEND PAGE 277 VERIFY PASSWORD 318
SEND TEXT 283 USERIDERR condition
SEND TEXT MAPPED 285 CHANGE PASSWORD 37
SEND TEXT NOEDIT 288 SIGNON 292
TWA option START 308
ADDRESS 14 VERIFY PASSWORD 319
TWALENG option USERNAME option
ASSIGN 29 ASSIGN 29
type codes (terminal) 351 USERPRIORITY option
TYPE operand ASSIGN 29
DFHMSD 401 USING option
ADDRESS SET 15
U
UNATTEND option V
ASSIGN 29 VALIDATION option
UNDERLINE value ASSIGN 29
DFHMDF 386 VALIDN operand
DFHMDI 393 DFHMDF 389
DFHMSD 399 DFHMDI 395
UNEXPIN condition DFHMSD 401
ISSUE ABORT 132 VERIFY PASSWORD command 318
ISSUE ADD 134 VIEWPOS operand
ISSUE END 142 DFHPDI 403
ISSUE ERASE 147 VIEWSZE operand
ISSUE NOTE 151 DFHPDI 403
ISSUE QUERY 156 VOLUME option
ISSUE RECEIVE 158 ISSUE ABORT 131
ISSUE REPLACE 160 ISSUE ADD 133
ISSUE SEND 163 ISSUE END 141
ISSUE WAIT 167 ISSUE ERASE 146
RECEIVE MAP 222 ISSUE NOTE 151
Index 439
Z
ZERO value
DFHMDF 386
SC33-1170-03
If you especially like or dislike anything about this book, please use one of the methods listed below to
send your comments to IBM.
Feel free to comment on what you regard as specific errors or omissions, and on the accuracy,
organization, subject matter, or completeness of this book. Please limit your comments to the information
in this book and the way in which the information is presented.
To request additional publications, or to ask questions or make comments about the functions of IBM
products or systems, you should talk to your IBM representative or to your IBM authorized remarketer.
When you send comments to IBM, you grant s1tr9talusntatrightentsase uke ortributeimit your comm IBM
Readers’ Comments
CICS for MVS/ESA.
SC33-1170-03
Use this form to tell us what you think about this manual. If you have found errors in it, or if you want
to express your opinion about it (such as organization, subject matter, appearance) or make
suggestions for improvement, this is the form to use.
To request additional publications, or to ask questions or make comments about the functions of IBM
products or systems, you should talk to your IBM representative or to your IBM authorized remarketer.
This form is provided for comments about the information in this manual and the way it is presented.
When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your
comments in any way it believes appropriate without incurring any obligation to you.
Be sure to print your name and address below if you would like a reply.
Name Address
Company or Organization
Telephone Email
CICS for MVS/ESA.
If your country is not listed here, your local IBM representative will be pleased to forward your comments
to us. Or you can pay the postage and send the form direct to IBM (this includes mailing in the U.K.).
Fold along this line
Par avion
IBRS/CCRI NUMBER: PHQ - D/1348/SO
NO STAMP REQUIRED
REPONSE PAYEE
GRANDE-BRETAGNE
IBM United Kingdom Laboratories Limited
Information Development Department (MP 095)
Hursley Park
WINCHESTER, Hants
SO21 2ZZ United Kingdom
From: Name
Company or Organization
Cut along this line
Address
EMAIL
Telephone
SC33-117O-O3
Spine information: