Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
MODCB—Modify the contents of control block fields z/OS Communications Server: SNA Programming SC27-3674-00 |
|
PurposeMODCB modifies the contents of one or more fields in an ACB, EXLST, RPL, or NIB control block. MODCB works with control blocks created either with declarative macroinstructions or with the GENCB macroinstruction. UsageThe user of the MODCB macroinstruction indicates the location of the control block, the fields within the control block to be modified, and the new values that are to be placed or represented in those fields. Most fields whose contents can be set with the ACB, EXLST, or NIB macroinstruction can also be modified by the MODCB macroinstruction. The operands used to do this are the same as those used when the control block is created. The
following restrictions apply to the use of MODCB:
List, generate, and execute forms of the MODCB macroinstruction are available; they are designated by the MF operand. (See Forms of the manipulative macroinstruction, for more information.) Because the various MODCB operand values can be specified in a large variety of formats, the operand format specifications have been tabulated in Summary of operand specifications, and do not appear here. Note: Not
all control block fields can be modified by using MODCB. Refer to Summary of operand specifications, to determine fields that are modifiable.
Other fields can be modified at execution time by use of the appropriate
control block DSECTs as described in Control block formats and DSECTs.
An application program running in either 24- or 31-bit addressing mode can issue the MODCB macroinstruction. To use 31-bit addressing, the application program must use the VTAM® mapping macroinstructions as well as GETMAIN and FREEMAIN. Refer to 31-bit addressing for information about 31-bit addressing. Syntax>>-+------+--MODCB--AM--=--VTAM---------------------------------> '-name-' >--+-,--ACB--=--acb_address---------+---------------------------> +-,--EXLST--=--exit_list_address-+ +-,--NIB--=--nib_address---------+ '-,--RPL--=--rpl_address---------' >--+-----------------------------+------------------------------> '-,--field_name--=--new_value-' >--+----------------------------------------------------------------+->< '-,--MF--=--+-(--E--,--parameter_list_address--)---------------+-' +-(--G--,--parameter_list_address--+----------+--)-+ | '-,--label-' | +-L------------------------------------------------+ '-(--L--,--parameter_list_address--+----------+--)-' '-,--label-' Input parameters
Examples
MOD1 activates the ASY, SPEC, and CS option codes in an RPL. The settings for the other option codes are not affected. The address of this RPL must be in register 5 when MOD1 is executed. Completion informationAfter MODCB processing is completed, register 15 indicates whether the operation completed successfully. If the operation completed successfully, register 15 is set to 0; if it completed unsuccessfully, register 15 is set to either X'04', X'08', or X'0C'. If register 15 is set to X'04' or X'0C', register 0 is also set indicating the specific nature of the error (see Return codes for manipulative macroinstructions, for more information). |
Copyright IBM Corporation 1990, 2014
|