Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
SHOWCB—Extract the contents of control block fields z/OS Communications Server: SNA Programming SC27-3674-00 |
|
PurposeSHOWCB extracts the contents of one or more ACB, EXLST, RPL, or NIB fields and places them into an area designated by the application program. UsageThe SHOWCB user specifies the address of a control block and the names of the fields whose contents are to be extracted. In general, the field names are the same as the keywords of the ACB, EXLST, RPL, and NIB macroinstructions. Not all such field names are supported by SHOWCB. All of the fields applicable for SHOWCB are shown in Table 1 at the end of the SHOWCB macroinstruction description. See Summary of operand specifications, for a list and explanation of the valid formats in which the SHOWCB operands can be specified. Control block fields that can be operated on by SHOWCB are not limited, however, to fields that can be set by the application program in the ACB, EXLST, RPL, and NIB macroinstructions. Several additional fields whose contents are set only by VTAM® can also be displayed with SHOWCB. The user of SHOWCB must use the AREA and LENGTH operands to indicate the location and length of the area where the fields are placed. The contents of each field are placed there contiguously, in the order indicated by the FIELDS operand. If the area is too short to hold all of the fields, SHOWCB does not modify the area but returns error codes in register 0 and 15. Table 1 shows the required lengths for all the control block fields that can be displayed with SHOWCB. Note: The
FDBK2 parameter on the SHOWCB macroinstruction represents the RPLFDB2
field.
List, generate, and execute forms of the SHOWCB macroinstruction are available; they are designated by the MF operand. See Optional and required operands for the alternative forms of SHOWCB for more information on this macroinstruction. The
SHOWCB macroinstruction can be issued by an application program running
in either 24- or 31-bit addressing mode. To use 31-bit addressing,
the application program must use the VTAM mapping
macroinstructions as well as GETMAIN and FREEMAIN.
Syntax>>-+------+--SHOWCB--AM--=--VTAM--------------------------------> '-name-' >--+-,--ACB--=--acb_address---------+---------------------------> +-,--EXLST--=--exit_list_address-+ +-,--NIB--=--nib_address---------+ '-,--RPL--=--rpl_address---------' >--,--AREA--=--data_area_address--------------------------------> >--+------------------------------------+-----------------------> '-,--FIELDS--=--+-field_name-------+-' '-(--field_name--)-' >--,--LENGTH--=--data_area_length-------------------------------> >--+----------------------------------------------------------------+->< '-,--MF--=--+-(--E--,--parameter_list_address--)---------------+-' +-(--G--,--parameter_list_address--+----------+--)-+ | '-,--label-' | +-L------------------------------------------------+ '-(--L--,--parameter_list_address--+----------+--)-' '-,--label-' Input parameters
Examples
SHOW1 extracts the
contents of NIB1's NAME field and places it in NAME1.
SHOW2 extracts the contents of RPL1's FDBK, ARG, AREA, and RECLEN fields and places them (in that order) in a storage area. The address of this storage area must be in register 3 when SHOW2 is executed. Note that LENGTH indicates a storage area length great enough to accommodate all four fields. Completion informationAfter SHOWCB processing is completed, VTAM sets register 15 to indicate successful or unsuccessful completion. If the operation is completed successfully, register 15 is set to 0, and register 0 contains the total number of bytes that SHOWCB extracted and placed in the work area. If the operation completes unsuccessfully, register 15 is set to either 04 or 08. If register 15 is set to 04 or 0C, register 0 is also set, indicating the specific nature of the error (see Return codes for manipulative macroinstructions, for additional information). |
Copyright IBM Corporation 1990, 2014
|