General
Application areas: | Requesting and accessing lists and tables; see "Requesting and accessing lists and tables"Input/output; see "Input/output" |
Macro type: | Type O; see "O-type macros" |
The description applies to TIAM V13.2A.
The CUPAB macro may be used only in 24-bit addressing mode.
In 31-bit addressing mode, the form MF=F/D of the appropriate input/output macro (RDATA, WROUT, WRTRD) must be used.
Macro description
The CUPAB macro (Communication User PArameter Block) macro allows the user to address symbolically the fields and flags in the operand lists for the RDATA, WROUT and WRTRD macros. For this purpose, CUPAB generates a dummy section (DSECT) for the operand list with 24-bit addresses.
Macro format and description of operands
|
|
name
When this entry is specified, it is used as the DSECT name. When it is omitted, CUPAB is automatically generated as the DSECT name.
D
D generates a dummy section (DSECT) for the operand list. When this operand is omitted, an MNOTE message is issued.
DSECT generation is not affected.
The field names generated by the macro and their characteristics are as follows:
RDATA operand table:
Field Name
Byte
Meaning
CURAREAW0 - 3
Input edit option byte 1.
CUREDIT10
Input edit option byte 1.
CURAREA1 - 3
Address of user input area (in CURAREAW).
CURFTB4
Flag
CUREDIT25
Input edit option byte 2.
CURALEN6 - 7
Length of user input area.
CURERRW8 - 11
Full word containing CURACI and CURERROR.
CURACI8
Assignment change indicator for SYSDTA
CURERROR9 - 11
Error address (in CURERRW).
L@RDATABLength of RDATA operand table.
WROUT operand table:
Field Name
Byte
Meaning
CUWMSGW0 - 3
Full word containing CUWEDIT1 and CUWMSG.
CUWEDIT10
Output edit option byte 1.
CUWMSG1 - 3
Address of the message in the user program.
CUWERRW4 - 7
Full word containing CUWEDIT2 and CUWERROR.
CUWEDIT24
Output edit option byte 2.
CUWERROR5 - 7
Error address.
L@WROUTBLength of the WROUT operand table.
WRTRD operand table:
Field Name
Byte
Meaning
CUBMSGW0 - 3
Full word containing CUBOEDT1 and CUBMSG.
CUBOEDT10
Output edit option byte 1.
CUBMSG1 - 3
Address of message output area.
CUBAREAW4 - 7
Full word containing CUBIEDT1 and CUBAREA.
CUBIEDT14
Input edit option byte 1.
CUBAREA5 - 7
Input area address.
CUBOEDT28
Output edit option byte 2.
CUBIEDT29
Input edit option byte 2.
CUBALEN10 - 11
Length of user input area.
CUBERRW12 - 15
Full word containing CUBERROR.
reserviert12
-
CUBERROR13 - 15
Error address.
L@WRTRDBLength of the WRTRD operand table.
Symbolic constants for edit bytes 1 and 2
As well as defining field names for the RDATA, WROUT and WRTRD operand tables, CUPAB also defines symbolic constants for the values of the edit, edit1 and edit2 operands.
The following tables provide an overview of the names of the symbolic constants defined by CUPAB, their current values and equivalent symbolic edit operands when MODE is specified, and also indicate whether or not they are valid in the various modes.
Output edit option byte 1
CUPAB name
Bit
Corresponding
MODE operandvalid (X) or mandatory (1)
for MODE=COMP
LINE
FORM
PHYS
CWR1CODE20
OTRSUP=X
0
0
0
CWR1LNET21
OLINEND=X
0
1
1
22
reserved for MODE=0
1
0
1
CWR1RSET23
OMANUAL=X
0
0
0
CWR1HOM24
OHOM=0
X
0
0
CWR1PTPE25
OPTAPE=X
0
0
0
26
reserved for MODE=0
0
1
1
CWR1HARD27
OHCOPY=X
X
0
X
Output edit option byte 2
CUPAB name
Bit
Corresponding
MODE operandvalid (X) or mandatory (1)
for MODE=COMP
LINE
FORM
PHYS
CWR2HDR20
OHDR=X
0
1
X
CWR2NOLC21
ONOLOGC=0
X
0
0
CWR2EXT22
EXTEND=0
X
0
0
CWR2INFO23
OINFO=0
X
0
0
24
reserved0
0
0
0
CWR2POSN25
ONOPOSN=0
X
0
0
CWR2TRAN25
OTRANS=0
0
0
X
CWR2BEL26
OBELL=0
X
0
0
CWR2ETB27
OETB=0
0
0
X
Input edit option byte 1
CUPAB name
Bit
Corresponding
MODE operandvalid (X) or mandatory (1)
for MODE=COMP
LINE
FORM
PHYS
CRD1CODE20
ITRSUP=X
0
0
X
CRD1LNET21
ILINEND=X
0
1
1
CRD1BACK22
IGETBS=X
X
X
X
CRD1RSET23
IMANUAL=X
0
0
0
CRD1LCT24
ILCASE=X
X
X
X
25
reserved for MODE=0
1
0
1
26
reserved for MODE=0
0
1
1
CRD1HDR27
IHDR=X
0
1
X
Input edit option byte 2
CUPAB name
Bit
Corresponding
MODE operandvalid (X) or mandatory (1)
for MODE=COMP
LINE
FORM
PHYS
CRD2GFC20
IGETFC=0
X
0
0
21
reserved0
0
0
0
CRD2CFD22
ICFD=0
X
0
0
CRD2GIC23
IGETIC=0
X
0
0
24
reserved0
0
0
0
CRD2EXT25
EXTEND=0
X
0
1
26
reserved0
0
0
0
27
reserved0
0
0
0
The following applies to operands where bits are not reserved:
MODE operand | Associated bit |
| set (1) |
| reset (0) |
For the meaning of the MODE operands (and the associated bits of the input and output edit option bytes) refer to the operand descriptions for the RDATA, WROUT and WRTRD macros.