ZCICS Application Programming Guide
ZCICS Application Programming Guide
Table of Contents
Introduction
Assembly Notes
VSAM Notes
Basic Mapping Support
zCOBOL Support
Extra Parameters
Supported EXEC CICS commands (summary by type)
Supported EXEC CICS commands (detail by type)
Appendicies
Keypress information
Change Summary
References
Trademarks
Credits
General
HANDLE AID
HANDLE CONDITION
IGNORE CONDITION
POP HANDLE
PUSH HANDLE
ADDRESS
ASSIGN
Terminal Control
RECEIVE
SEND
SEND CONTROL
File Control
READ
STARTBR
READNEXT
READPREV
ENDBR
RESETBR
Storage Control
FREEMAIN
GETMAIN
Program Control
ABEND
HANDLE ABEND
LINK
LOAD
RELEASE
RETURN
XCTL
Interval Control
ASKTIME
DELAY
FORMATTIME
START
RETRIEVE
CANCEL
Task Control
ENQ
DEQ
BMS
RECEIVE MAP
SEND MAP
DUMP CONTROL
DUMP
System
INQUIRE FILE
SET FILE
Introduction
The EXEC CICS commands and parameters listed here are the only ones currently
supported in the zCICS environment.
For the operation of each command and parameter please refer to the Manuals
listed in the Reference section at the end of this document.
If you create your own zCICS applications, it would be wise to create a .BAT file that
re-assembles them all in one go. The internal interfaces are volatile at present and
this will be a frequent instruction.
The current zCICS environment and all test programs can be re-assembled using
[Link]. The test VSAM catalog and files can be rebuilt using [Link].
Assembly notes
NOEPILOG is supported but not fully tested, testing and correct usage is scheduled
for a future release of zCICS.
DFHEISTG -- Define the prefix areas of the Dynamic Storage Area (DSA).
DFHEIEND – Replaces the END statement and defines the end of the DSA.
DFHEIENT – Replaces the first CSECT statement
Establish linkage and base registers
GETMAIN the DSA
Establish addressability to the EIB and TCTTE
Some COMMAREA management
Other macros...
DFHEIBLK -- EIB DSECT
DFHPCT -- Transaction definition
DFHFCT – File definitions and options
EXEC -- Converts EXEC CICS statements into a unique macro call with a
parameter list
DFHREGS – A synonym for EQUREGS
Copy books...
DFHAID Standard CICS equates for AID keys
DFHBMSCA Mapping support equates
DFHPCTUS User transaction codes
DFHFCTUS User file definitions
Register Usage...
This standard method with the PROLOG option (default) will generate a single code
base of R12 and a single DSA base of R13.
If you want to extend the code base and/or the DSA base registers, convert your
code in line with the sample given, and include the NOPROLOG option in CALL
MZ390.
e.g. DFHEISTG
MYFIELD DS CL100 demo user field
...
MYPROG DFHEIENT CODEREG=(R8,R5),DATAREG=(R13,R6,R7)
Notes:You cannot override the first DATAREG value, it will always be R13
i.e. if you code DATAREG=(R6,R7) you will get DATAREG=(R13,R7).
VSAM Notes
See the zCICS VSAM Guide for guidance in the setup of a VSAM environment.
This document also contains extensions to the VSAM facilities currently available.
The commands RECEIVE MAP, SEND MAP and SEND CONTROL are documented
here.
For general BMS documentation and the mapping macros DFHMSD, DFHMDI and
DFHMDF see the zCICS BMS Guide.
zCOBOL support
Parameters like SET() which address imported structures may use the ADDRESS
OF special register.
LENGTH, FLENGTH and KEYLENGTH which would normally allow a numeric option
may use the LENGTH OF special register.
Extra Parameters
You can add NOEDF to any EXEC CICS command if you wish that command to be
excluded from a CEDF session.
You can add NOEDF to the CALL MZ390 if you wish all CEDF intercepts in that
program excluded.
9) BMS (18)
a) RECEIVE MAP(name) MAPSET(name) INTO()
b) SEND MAP(name) MAPSET(name)
CURSOR/CURSOR() DATAONLY/MAPONLY ERASE/ERASEAUP
FROM() LENGTH() ALARM FREEKB FRSET
SET()
c) SEND CONTROL CURSOR/CURSOR() ERASE/ERASEAUP
ALARM FREEKB FRSET
a) HANDLE AID
The manual is not clear about ANYKEY (no label). I have assumed that it
clears all settings for CLEAR, PA and PF keys.
Notes:
There is a current limit of 30 AIDs, please request more if needed.
Errors
AN INTERNAL ERROR HAS OCCURRED
NO PARAMETERS SPECIFIED
NUMBER OF AIDS EXCEEDS 30
BAD PARM
HANDLE TYPE NOT RECOGNISED
b) HANDLE CONDITION
Notes:
There is a current limit of 30 conditions, please request more if needed.
Errors
AN INTERNAL ERROR HAS OCCURRED
NUMBER OF CONDITIONS EXCEEDS 30
BAD PARM
HANDLE TYPE NOT RECOGNISED
c) IGNORE CONDITION
Notes:
Ignoring an error may lead to unpredictable abends.
There is a current limit of 30 conditions, please request more if needed.
INVREQ on EXEC CICS RETURN will abend the task ASRA as I cannot
ignore a RETURN.
Errors
BAD PARM
IGNORE TYPE NOT RECOGNISED
AN INTERNAL ERROR HAS OCCURRED
NO PARAMETERS SPECIFIED
NUMBER OF CONDITIONS EXCEEDS 30
d) POP HANDLE
Errors
BAD PARM
POP TYPE NOT RECOGNISED
Conditions (RESP/RESP2)
INVREQ/0
e) PUSH HANDLE
Errors
BAD PARM
PUSH TYPE NOT RECOGNISED
f) ADDRESS
Errors
BAD PARM
g) ASSIGN
Note: zCICS allows a CWA size greater than 32K. If the CWA
does exceed 32K, then ASSIGN CWALENG() will return an
incorrect value.
Conditions (RESP/RESP2)
INVREQ/2
INVREQ/5
Errors
BAD PARM
a) RECEIVE
NOHANDLE is optional.
Errors
BAD PARM
BOTH INTO AND LENGTH ARE REQUIRED
LENGTH ERROR
Conditions (RESP/RESP2)
NOTALLOC/0
LENGERR/0
b) SEND
FROM(label) is mandatory.
label may take three forms:
Direct reference
Indirect reference
Adcon literal
LENGTH
Can be specified as LENGTH(value) or LENGTH(label)
LENGTH(value) supports the use of the length attribute.
label must point to a 2-byte hex value.
Errors
BAD PARM
FROM IS MANDATORY
LENGTH IS MANDATORY
Conditions (RESP/RESP2)
INVREQ/0
Note: Attempt to execute this in a non-terminal attached task.
This is not documented in the Manual.
LENGERR/E1
c) SEND CONTROL
Errors
BAD PARM
CURSOR POSITION AND SYMBOLIC CURSOR SPECIFIED
ERASE AND ERASEAUP SPECIFIED
Conditions (RESP/RESP2)
INVREQ/0
Note: Attempt to execute this in a non-terminal attached task.
This is not documented in the Manual.
Notes:
FLENGTH and XRBA are extensions; do not use these parameters if the
source code is likely to be ported back to a mainframe environment.
When conditions are raised as a result of a VSAM error, the RPL feedback codes
(2nd and 4th bytes) are placed in EIBRCODE +1 and +2.
a) READ
LENGTH
Can be specified as a constant, literal or label.
A constant must not exceed 32767.
A literal or label must be 2 bytes and must not exceed 32767.
FLENGTH
Can be specified as a constant, literal or label.
A constant must not exceed 2G-1.
A literal or label must be 4 bytes and must not exceed 2G-1.
LENGTH/FLENGTH notes:
If SET is specified, LENGTH/FLENGTH are ignored and LENGERR
cannot occur.
KEYLENGTH
Can be specified as a constant or label.
A constant must not exceed 32767.
A label must be 2 bytes and must not exceed 32767.
Keylengths greater than 128 are ignored.
GTEQ/EQUAL
The parameter is ignored for ESDS and RRDS.
GENERIC
KEYLENGTH must be specified.
The parameter is ignored for ESDS and RRDS.
Errors
BAD PARM
BOTH FILE AND DATASET ARE SPECIFIED
BOTH GTEQ AND EQUAL ARE SPECIFIED
BOTH INTO AND SET ARE SPECIFIED
BOTH LENGTH AND FLENGTH ARE SPECIFIED
BOTH RBA AND XRBA ARE SPECIFIED
BOTH RRN AND (X)RBA ARE SPECIFIED
FILE OR DATASET MUST BE SPECIFIED
GENERIC CANNOT BE SPECIFIED WITH RRN OR (X)RBA
GENERIC REQUIRES KEYLENGTH
INTO OR SET MUST BE SPECIFIED
INVALID FILE OR DATASET
KEYLENGTH REQUIRES GENERIC
RIDFLD IS MANDATORY
Conditions (RESP/RESP2)
FILENOTFOUND/1
DISABLED/50
ILLOGIC/110
INVREQ/20
INVREQ/25
INVREQ/42
LENGERR/E1
NOTFND/80
NOTOPEN/60
b) STARTBR
REQID
Copyright 2009 Automated Software Tools Corporation.
This is part of z390 distributed under open source GPL License.
19
zCICS Application Programming Guide
KEYLENGTH
Can be specified as a constant or label.
A constant must not exceed 32767.
A label must be 2 bytes and must not exceed 32767.
Keylengths greater than 128 are ignored.
GTEQ/EQUAL
The parameter is ignored for ESDS and RRDS.
GENERIC
KEYLENGTH must be specified.
The parameter is ignored for ESDS and RRDS.
Errors
BAD PARM
BOTH FILE AND DATASET ARE SPECIFIED
BOTH GTEQ AND EQUAL ARE SPECIFIED
BOTH RBA AND XRBA ARE SPECIFIED
BOTH RRN AND (X)RBA ARE SPECIFIED
FILE OR DATASET MUST BE SPECIFIED
GENERIC CANNOT BE SPECIFIED WITH RRN OR (X)RBA
GENERIC REQUIRES KEYLENGTH
INVALID FILE OR DATASET
KEYLENGTH REQUIRES GENERIC
RIDFLD IS MANDATORY
Conditions (RESP/RESP2)
DISABLED/50
FILENOTFOUND/1
ILLOGIC/110
INVREQ/20
INVREQ/25
INVREQ/33
INVREQ/42
NOTFND/80
NOTOPEN/60
c) READNEXT
LENGTH
Can be specified as a constant, literal or label.
A constant must not exceed 32767.
A literal or label must be 2 bytes and must not exceed 32767.
FLENGTH
Can be specified as a constant, literal or label.
A constant must not exceed 2G-1.
A literal or label must be 4 bytes and must not exceed 2G-1.
LENGTH/FLENGTH notes:
If either is not a label then...
If INTO is specified, then the length received is the implied length of
INTO. This may raise the LENGERR condition if the data length is
larger.
REQID
Can be specified as a constant, literal or label.
A constant must not exceed 32767.
A literal or label must be 2 bytes and must not exceed 32767.
If omitted, zero is assumed.
KEYLENGTH
Can be specified as a constant or label.
A constant must not exceed 32767.
A label must be 2 bytes and must not exceed 32767.
Keylengths greater than 128 are ignored.
Errors
BAD PARM
BOTH FILE AND DATASET ARE SPECIFIED
BOTH INTO AND SET ARE SPECIFIED
BOTH LENGTH AND FLENGTH ARE SPECIFIED
BOTH RBA AND XRBA ARE SPECIFIED
BOTH RRN AND (X)RBA ARE SPECIFIED
FILE OR DATASET MUST BE SPECIFIED
INTO OR SET MUST BE SPECIFIED
INVALID FILE OR DATASET
RIDFLD IS MANDATORY
THIS TYPE OF INTO REQUIRES LENGTH/FLENGTH
Conditions (RESP/RESP2)
DISABLED/50
ENDFILE/90
FILENOTFOUND/1
ILLOGIC/110
INVREQ/20
INVREQ/25
INVREQ/26
INVREQ/34
INVREQ/42
LENGERR/E1
NOTFND/80
NOTOPEN/60
d) READPREV
LENGTH
Can be specified as a constant, literal or label.
A constant must not exceed 32767.
A literal or label must be 2 bytes and must not exceed 32767.
FLENGTH
Can be specified as a constant, literal or label.
A constant must not exceed 2G-1.
A literal or label must be 4 bytes and must not exceed 2G-1.
LENGTH/FLENGTH notes:
If either is not a label then...
If INTO is specified, then the length received is the implied length of
INTO. This may raise the LENGERR condition if the data length is
larger.
REQID
Can be specified as a constant, literal or label.
A constant must not exceed 32767.
A literal or label must be 2 bytes and must not exceed 32767.
If omitted, zero is assumed.
KEYLENGTH
Can be specified as a constant or label.
A constant must not exceed 32767.
A label must be 2 bytes and must not exceed 32767.
Keylengths greater than 128 are ignored.
Errors
BAD PARM
BOTH FILE AND DATASET ARE SPECIFIED
BOTH INTO AND SET ARE SPECIFIED
BOTH LENGTH AND FLENGTH ARE SPECIFIED
BOTH RBA AND XRBA ARE SPECIFIED
BOTH RRN AND (X)RBA ARE SPECIFIED
FILE OR DATASET MUST BE SPECIFIED
INTO OR SET MUST BE SPECIFIED
INVALID FILE OR DATASET
RIDFLD IS MANDATORY
THIS TYPE OF INTO REQUIRES LENGTH/FLENGTH
Conditions (RESP/RESP2)
DISABLED/50
ENDFILE/90
FILENOTFOUND/1
ILLOGIC/110
INVREQ/20
INVREQ/24
INVREQ/26
INVREQ/41
LENGERR/E1
NOTFND/80
NOTOPEN/60
e) ENDBR
REQID
Can be specified as a constant, literal or label.
A constant must not exceed 32767.
A literal or label must be 2 bytes and must not exceed 32767.
If omitted, zero is assumed.
Note: In real CICS, ENDBR cannot cause a file to open, but it will in zCICS.
The ENDBR command will be invalid, and may result in a transaction
abend.
Errors
BAD PARM
BOTH FILE AND DATASET ARE SPECIFIED
FILE OR DATASET MUST BE SPECIFIED
INVALID FILE OR DATASET
Conditions (RESP/RESP2)
DISABLED/50
FILENOTFOUND/1
ILLOGIC/110
INVREQ/20
INVREQ/35
NOTOPEN/60
f) RESETBR
REQID
Can be specified as a constant, literal or label.
A constant must not exceed 32767.
A literal or label must be 2 bytes and must not exceed 32767.
If omitted, zero is assumed.
KEYLENGTH
Can be specified as a constant or label.
A constant must not exceed 32767.
A label must be 2 bytes and must not exceed 32767.
Keylengths greater than 128 are ignored.
GTEQ/EQUAL
The parameter is ignored for ESDS and RRDS.
GENERIC
KEYLENGTH must be specified.
The parameter is ignored for ESDS and RRDS.
Note: In real CICS, RESETBR cannot cause a file to open, but it will in
zCICS. The RESETBR command will be invalid, and may result in a
transaction abend.
Errors
BAD PARM
BOTH FILE AND DATASET ARE SPECIFIED
BOTH GTEQ AND EQUAL ARE SPECIFIED
BOTH RBA AND XRBA ARE SPECIFIED
BOTH RRN AND (X)RBA ARE SPECIFIED
FILE OR DATASET MUST BE SPECIFIED
GENERIC CANNOT BE SPECIFIED WITH RRN OR (X)RBA
GENERIC REQUIRES KEYLENGTH
INVALID FILE OR DATASET
KEYLENGTH REQUIRES GENERIC
RIDFLD IS MANDATORY
Conditions (RESP/RESP2)
DISABLED/50
FILENOTFOUND/1
ILLOGIC/110
INVREQ/20
INVREQ/25
INVREQ/36
INVREQ/42
NOTFND/80
NOTOPEN/60
a) FREEMAIN
DATA(label)
label may only be an indirect reference to the address.
DATAPOINTER
Must be specified as a permitted general register value.
Errors
BAD PARM
BOTH DATA AND DATAPOINTER ARE SPECIFIED
DATA OR DATAPOINTER MUST BE SPECIFIED
Conditions (RESP/RESP2)
INVREQ/1
b) GETMAIN
SET is mandatory
Must be specified as a permitted general register value.
LENGTH
Can be specified as a constant, literal or label.
A constant must not exceed 32767.
A literal or label must be 2 bytes and must not exceed 32767.
Copyright 2009 Automated Software Tools Corporation.
This is part of z390 distributed under open source GPL License.
27
zCICS Application Programming Guide
FLENGTH
Can be specified as a constant, literal or label.
A constant must not exceed 2G-1.
A literal or label must be 4 bytes and must not exceed 2G-1.
INITIMG is optional
If omitted, the storage contents are not predictable.
Can be specified as a constant, literal or label.
zCOBOL supports all 3 data types, but for mainframe COBOL programs
only label is supported.
Only the first byte generated by the parameter is used.
Errors
BAD PARM
BOTH LENGTH AND FLENGTH ARE SPECIFIED
LENGTH OR FLENGTH MUST BE SPECIFIED
SET IS MANDATORY
Note:
FLENGTH is an extension; do not use this parameter if the source code is
likely to be ported back to a mainframe environment.
a) DELETEQ
Errors
BAD PARM
BOTH QUEUE AND QNAME ARE SPECIFIED
DELETEQ TYPE NOT RECOGNIZED
INVALID QUEUE OR QNAME
QUEUE OR QNAME MUST BE SPECIFIED
Conditions (RESP/RESP2)
INVREQ/0
QIDERR/0
b) READQ
LENGTH
May be specified as LENGTH(value) or LENGTH(label)
LENGTH(value) supports the use of the length attribute.
label must point to a 2-byte hex value.
FLENGTH
Can be specified as a constant, literal or label.
A constant must not exceed 2G-1.
A literal or label must be 4 bytes and must not exceed 2G-1.
Copyright 2009 Automated Software Tools Corporation.
This is part of z390 distributed under open source GPL License.
29
zCICS Application Programming Guide
ITEM
May be specified as ITEM(value) or ITEM(label)
label must point to a 2-byte hex value.
Errors
BAD PARM
BOTH INTO AND SET ARE SPECIFIED
BOTH ITEM AND NEXT ARE SPECIFIED
BOTH LENGTH AND FLENGTH ARE SPECIFIED
BOTH QUEUE AND QNAME ARE SPECIFIED
INTO OR SET MUST BE SPECIFIED
INVALID QUEUE OR QNAME
ITEM OR NEXT MUST BE SPECIFIED
QUEUE OR QNAME MUST BE SPECIFIED
READQ TYPE NOT RECOGNIZED
SET REQUIRES LENGTH
Conditions (RESP/RESP2)
INVREQ/0
LENGERR/0
ITEMERR/0
QIDERR/0
c) WRITEQ
FROM(label) is mandatory.
label may take three forms:
Direct reference
Indirect reference
Adcon literal
LENGTH
May be specified as LENGTH(value) or LENGTH(label)
LENGTH(value) supports the use of the length attribute.
label must point to a 2-byte hex value.
FLENGTH
Can be specified as a constant, literal or label.
A constant must not exceed 2G-1.
A literal or label must be 4 bytes and must not exceed 2G-1.
ITEM
May be specified as ITEM(value) or ITEM(label)
label must point to a 2-byte hex value.
Errors
BAD PARM
BOTH LENGTH AND FLENGTH ARE SPECIFIED
BOTH QUEUE AND QNAME ARE SPECIFIED
FROM IS MANDATORY
IF NUMITEMS IS SPECIFIED, ITEM AND REWRITE ARE INVALID
INVALID QUEUE OR QNAME
LENGTH/FLENGTH IS MANDATORY FOR INDIRECT FROM
LENGTH WITHOUT FROM
NUMITEMS MUST BE A LABEL (MAY HAVE ORIGINATED AS ITEM)
QUEUE OR QNAME MUST BE SPECIFIED
Conditions (RESP/RESP2)
INVREQ/0
LENGERR/0
ITEMERR/0
QIDERR/0
a) ABEND
Errors
ABCODE MUST NOT BEGIN WITH 'A'
ABCODE IS INVALID
BAD PARM
b) HANDLE ABEND
Errors
BAD PARM
HANDLE TYPE NOT RECOGNISED
INVALID PROGRAM
NO PARAMETERS SPECIFIED
PARMS MISSING OR TOO MANY PARMS
c) LINK
PROGRAM is mandatory
Can be specified as PROGRAM('xxxxxxxx') or PROGRAM(label)
label must point to an 8-byte field.
COMMAREA(label) is optional
label may take three forms:
Direct reference
Indirect reference
Adcon literal
LENGTH
Can be specified as LENGTH(value) or LENGTH(label)
LENGTH(value) supports the use of the length attribute.
label must point to a 2-byte hex value.
Errors
BAD PARM
INVALID CHANNEL
INVALID PROGRAM
PROGRAM IS MISSING
LENGTH IS MANDATORY FOR INDIRECT COMMAREA
LENGTH WITHOUT COMMAREA
Warning
CHANNEL and COMMAREA specified
Conditions (RESP/RESP2)
CHANNELERR/1
PGMIDERR/3
d) LOAD
Loads a module.
The intention in the zCICS environment is to load a table or some other data,
not an executable program.
PROGRAM is mandatory
Can be specified as PROGRAM('xxxxxxxx') or PROGRAM(label)
label must point to an 8-byte field.
LENGTH is optional
LENGTH(label) is the only format.
label must point to a 2-byte field.
FLENGTH is optional
FLENGTH(label) is the only format.
label must point to a 4-byte field.
Errors
BAD PARM
INVALID PROGRAM
LENGTH AND FLENGTH SPECIFIED
PROGRAM IS MISSING
Conditions (RESP/RESP2)
PGMIDERR/3
e) RELEASE
PROGRAM is mandatory
Can be specified as PROGRAM('xxxxxxxx') or PROGRAM(label)
label must point to an 8-byte field.
Errors
BAD PARM
INVALID PROGRAM
PROGRAM IS MISSING
Conditions (RESP/RESP2)
INVREQ/5
INVREQ/6
f) RETURN
TRANSID
Optional, but when COMMAREA is specified, TRANSID is mandatory.
Can be specified as TRANSID('xxxx') or TRANSID(label)
label must point to a 4-byte field.
COMMAREA(label) is optional
label may take three forms:
Direct reference
Indirect reference
Adcon literal
LENGTH
Can be specified as LENGTH(value) or LENGTH(label)
LENGTH(value) supports the use of the length attribute.
label must point to a 2-byte hex value.
Errors
BAD PARM
IMMEDIATE REQUIRES TRANSID
INVALID CHANNEL
INVALID TRANSID
TRANSID IS MISSING
LENGTH IS MANDATORY FOR INDIRECT COMMAREA
LENGTH WITHOUT COMMAREA
Warning
CHANNEL and COMMAREA specified
Conditions (RESP/RESP2)
See the section on IGNORE for these conditions. Go here
CHANNELERR/1
INVREQ/1
INVREQ/2
g) XCTL
If COMMAREA is present and both the address and length are the same as
passed to the current program, then address/length are passed to the new
program.
If the address or length differs, then a copy of the COMMAREA is taken and
the new address/length are passed to the new program.
PROGRAM is mandatory
Can be specified as PROGRAM('xxxxxxxx') or PROGRAM(label)
label must point to an 8-byte field.
COMMAREA(label) is optional
label may take three forms:
Direct reference
Indirect reference
Adcon literal
LENGTH
Can be specified as LENGTH(value) or LENGTH(label)
LENGTH(value) supports the use of the length attribute.
label must point to a 2-byte hex value.
Errors
BAD PARM
INVALID CHANNEL
INVALID PROGRAM
PROGRAM IS MISSING
LENGTH IS MANDATORY FOR INDIRECT COMMAREA
LENGTH WITHOUT COMMAREA
Warning
CHANNEL and COMMAREA specified
Conditions (RESP/RESP2)
CHANNELERR/1
PGMIDERR/3
Note:
FLENGTH is an extension; do not use this parameter if the source code is
likely to be ported back to a mainframe environment.
a) ASKTIME
Errors
BAD PARM
b) DELAY
INTERVAL
Can be specified as INTERVAL(s) through to INTERVAL(hhmmss).
i.e. INTERVAL(234) means wait for 2 minutes 34 seconds.
TIME
Can be specified as TIME(s) through to TIME(hhmmss).
i.e. TIME(234) means resume the task at 2 minutes 34 seconds after
midnight. Expiration time rules apply; see the IBM Application
Programming Guide.
Errors
BAD PARM
BOTH FOR AND UNTIL ARE SPECIFIED
BOTH INTERVAL AND TIME ARE SPECIFIED
FOR/UNTIL SPECIFIED, BUT NO TIME PARMS
HOURS/MINUTES/SECONDS ARE INVALID WITH INTERVAL OR TIME
HOURS/MINUTES/SECONDS ARE SPECIFIED WITHOUT FOR/UNTIL
INTERVAL/TIME CANNOT BE SPECIFIED WITH FOR/UNTIL
INTERVAL/TIME MUST BE 1 TO 6 BYTES
INVALID REQID
Conditions (RESP/RESP2)
INVREQ/4
INVREQ/5
INVREQ/6
c) FORMATTIME
Notes:
STRINGFORMAT is discarded as there is only one option.
Errors
ABSTIME IS MANDATORY
BAD PARM
Conditions (RESP/RESP2)
INVREQ/1
d) START
INTERVAL and TIME follow the same syntax and rules as for DELAY.
AFTER and AT follow the same syntax and rules as FOR and UNTIL in
DELAY above.
Errors
AFTER/AT SPECIFIED, BUT NO TIME PARAMETERS
BAD PARM
BOTH AFTER AND AT ARE SPECIFIED
BOTH INTERVAL AND TIME ARE SPECIFIED
BOTH LENGTH AND FLENGTH ARE SPECIFIED
FROM/(F)LENGTH MUST BOTH BE MISSING OR BOTH SPECIFIED
HOURS/MINUTES/SECONDS ARE INVALID WITH INTERVAL OR TIME
HOURS/MINUTES/SECONDS ARE SPECIFIED WITHOUT AFTER/AT
INTERVAL/TIME CANNOT BE SPECIFIED WITH AFTER/AT
INTERVAL/TIME MUST BE 1 TO 6 BYTES
INVALID CHANNEL
INVALID QUEUE
INVALID REQID
INVALID RTERMID
INVALID RTRANSID
INVALID TERMID
INVALID TRANSID
TRANSID IS MANDATORY
Warning
CHANNEL AND OTHER PARMS SPECIFIED BUT ALLOWED
Conditions (RESP/RESP2)
CHANNELERR/1
INVREQ/0
INVREQ/4
INVREQ/5
INVREQ/6
IOERR
LENGERR
TERMIDERR
TRANSIDERR
e) RETRIEVE
Errors
BAD PARM
BOTH INTO AND SET ARE SPECIFIED
BOTH LENGTH AND FLENGTH ARE SPECIFIED
INTO OR SET MUST BE SPECIFIED
INVALID QUEUE
INVALID RTERMID
INVALID RTRANSID
LENGTH OR FLENGTH MUST BE A LABEL
SET REQUIRES LENGTH OR FLENGTH
Conditions (RESP/RESP2)
INVREQ/0
ENDDATA
ENVDEFERR
LENGERR
f) CANCEL
Errors
BAD PARM
INVALID REQID
REQID IS MANDATORY
Conditions (RESP/RESP2)
INVREQ
NOTFND
a) ENQ
LENGTH
Can be specified as LENGTH(value) or LENGTH(label)
LENGTH(value) supports the use of the length attribute.
Errors
BAD PARM
RESOURCE IS MANDATORY
Conditions (RESP/RESP2)
ENQBUSY
LENGERR/1
b) DEQ
LENGTH
Can be specified as LENGTH(value) or LENGTH(label)
LENGTH(value) supports the use of the length attribute.
Errors
BAD PARM
RESOURCE IS MANDATORY
Conditions (RESP/RESP2)
LENGERR/1
9) BMS (18)
a) RECEIVE MAP
Errors
BAD PARM
Copyright 2009 Automated Software Tools Corporation.
This is part of z390 distributed under open source GPL License.
44
zCICS Application Programming Guide
Conditions (RESP/RESP2)
Note: EIBRESP2 is an extension for MAPFAIL; please see the zCICS BMS
Guide for more information.
INVMPSZ/0
INVREQ/0
b) SEND MAP
LENGTH
LENGTH is supported but the value used is always that of the structure
length.
Can be specified as LENGTH(value) or LENGTH(label)
LENGTH(value) supports the use of the length attribute.
label must point to a 2-byte hex value.
Errors
BAD PARM
CONTROL IS NOT COMPATABLE WITH SEND MAP
CURSOR POSITION AND SYMBOLIC CURSOR SPECIFIED
DATAONLY AND MAPONLY SPECIFIED
ERASE AND ERASEAUP SPECIFIED
Conditions (RESP/RESP2)
Note: EIBRESP2 is an extension for MAPFAIL, please see the zCICS BMS
Guide for more information.
INVMPSZ/0
INVREQ/0
Note: Attempt to execute this in a non-terminal attached task.
This is not documented in the Manual.
a) DUMP
TRANSACTION is mandatory.
COMPLETE
If there are no storage area parameters then COMPLETE is the default.
Produces a SNAP dump ID=997,TEXT='DUMP dddd COMPLETE'
FROM() LENGTH()/FLENGTH()
Produces a SNAP dump ID=997,TEXT='DUMP dddd AREA'
LENGTH
Can be specified as a constant or label.
A constant must not exceed 32767.
A label must be 2 bytes and must not exceed 32767.
FLENGTH
Can be specified as a constant or label.
A constant must not exceed 2G-1.
A label must be 4 bytes and must not exceed 2G-1.
SEGMENTLIST/LENGTHLIST/NUMSEGMENTS
Produces multiple SNAP dumps ID=997,TEXT='DUMP dddd SEGMENT
nnn'
NUMSEGMENTS
Can be specified as a constant or label.
A constant must not exceed 2G-1.
A label must be 4 bytes and must not exceed 2G-1.
Errors
BAD PARM
BOTH LENGTH AND FLENGTH ARE SPECIFIED
DUMPCODE IS GREATER THAN 4 BYTES
DUMPCODE MUST BE SPECIFIED
LENGTH OR FLENGTH REQUIRES FROM
LENGTH OR FLENGTH MUST BE SPECIFIED
SEGMENTLIST, LENGTHLIST AND NUMSEGMENTS MUST
ALL BE SPECIFIED OR ALL ABSENT
TRANSACTION MUST BE SPECIFIED
a) INQUIRE FILE
Errors
AT() IS SPECIFIED WITHOUT START
BAD PARM
FILE DOES NOT PRECEDE END
FILE DOES NOT PRECEDE START
FILE() CANNOT BE A STRING WHEN NEXT IS SPECIFIED
FILE() IS MISSING
INQUIRE TYPE NOT RECOGNIZED
INVALID AT()
INVALID FILE()
NEXT AND END ARE SPECIFIED
START AND END ARE SPECIFIED
b) SET FILE
Errors
BAD PARM
BOTH FILE AND DATASET SPECIFIED
FILE OR DATASET MUST BE SPECIFIED
INVALID FILE OR DATASET
MORE THAN ONE ADD PARAMETER
MORE THAN ONE BROWSE PARAMETER
MORE THAN ONE DELETE PARAMETER
MORE THAN ONE ENABLESTATUS PARAMETER
MORE THAN ONE OPEN STATUS PARAMETER
MORE THAN ONE READ PARAMETER
MORE THAN ONE UPDATE PARAMETER
Conditions (RESP/RESP2)
FILENOTFOUND
INVREQ/2
INVREQ/3
INVREQ/4
INVREQ/5
INVREQ/7
INVREQ/12
INVREQ/14
INVREQ/16
INVREQ/17
IOERR
a) GET
Errors
BAD PARM
BOTH INTO AND SET SPECIFIED
CONTAINER IS MANDATORY
INTO AND NODATA SPECIFIED
INTO OR SET OR NODATA IS REQUIRED
INVALID CHANNEL
INVALID CONTAINER
NODATA REQUIRES FLENGTH
SET AND NODATA SPECIFIED
SET OR NODATA REQUIRES FLENGTH AS LABEL
SET REQUIRES FLENGTH
Conditions (RESP/RESP2)
CHANNELERR/2
INVREQ/4
LENGERR/11
b) PUT
Errors
BAD PARM
CONTAINER IS MANDATORY
FLENGTH IS MANDATORY FOR INDIRECT FROM
FLENGTH WITHOUT FROM
FROM IS MANDATORY
INVALID CHANNEL
INVALID CONTAINER
Conditions (RESP/RESP2)
CHANNELERR/1
CONTAINERERR/18
INVREQ/4
LENGERR/1
c) DELETE
Errors
BAD PARM
CONTAINER IS MANDATORY
INVALID CHANNEL
INVALID CONTAINER
Conditions (RESP/RESP2)
CHANNELERR/2
CONTAINERERR/10
d) MOVE
Errors
BAD PARM
CONTAINER AND/OR AS ARE MISSING
INVALID AS
INVALID CHANNEL
INVALID CONTAINER
INVALID TOCHANNEL
Conditions (RESP/RESP2)
CHANNELERR/1
CHANNELERR/2
CONTAINERERR/10
CONTAINERERR/18
INVREQ/4
e) STARTBROWSE
Errors
BAD PARM
INVALID CHANNEL
BROWSETOKEN IS MANDATORY
STARTBROWSE TYPE NOT RECOGNISED
Conditions (RESP/RESP2)
ACTIVITYERR/2
CHANNELERR/2
f) GETNEXT
Errors
BAD PARM
BROWSETOKEN IS MANDATORY
CONTAINER IS MANDATORY
Conditions (RESP/RESP2)
END/2
TOKENERR/3
g) ENDBROWSE
Errors
BAD PARM
BROWSETOKEN IS MANDATORY
ENDBROWSE TYPE NOT RECOGNISED
Condition (RESP/RESP2)
TOKENERR/3
Appendicies
Keypress information
Aid/Function Press
ENTER Enter or Return
CLEAR CTRL+C
PA1-PA3 CTRL+F1 to CTRL+F3
PF1-PF12 F1 to F12
PF13-PF24 CTRL+ALT+F1 to CTRL+ALT+F12
Change Summary
February 1, 2012
Amended SEND MAP LENGTH parameter description and removed error
message
November 1, 2010
Added INVREQ/1 to RETURN
Added NOTALLOC to RECEIVE
Added INVREQ and extra MNOTE to RECEIVE MAP
Added INVREQ to SEND CONTROL
Added INVREQ to SEND
Added INVREQ and MAPFAIL/9 to SEND MAP
August 1, 2009
Added INQUIRE FILE
Added ASSIGN
References
Trademarks
IBM, CICS and VSAM are registered trademarks of International Business Machines
Corporation.
Credits