Programming Interface Information:
This information is NOT intended to be used as Programming Interfaces of z/VM. |
QALBK
Control Block Contents
QALBK DSECT
Cross Reference (Contains links to field and bit definitions)
QALBK Prolog
Name : HCPQALBK Description: Query Alloc Block DSECT : QALBK Function : Reponse buffer and work area for query alloc Located by : Registers in HCPCQA and HCPCQB Created by : HCPCQA for query alloc command Deleted by : HCPCQA Serialized : None required
QALBK Control Block Content
QALBK DSECT
Hex Dec Type/Val Lng Label (dup) Comments ---- ---- --------- ---- -------------- -------- 0000 0 Structure QALBK Query Alloc Block 0000 0 Signed 4 QALORGIN (0) Start of QALBK Fields that start with QALR map the response for the regular Q Alloc reponse. 0000 0 Character 1 QALRHDR (0) Header on regular response 0000 0 Character 4 QALRDASD 'DASD' 0004 4 Character 1 * 0005 5 Character 4 QALRRDEV Real device number 0009 9 Character 1 * 000A 10 Character 6 QALRVOL Volid 0010 16 Character 1 * 0011 17 Character 4 QALRTYPE Device type 0015 21 Character 1 * 0016 22 Character 8 QALRFMT Device format 001E 30 Character 1 * 001F 31 Character 10 * '(UNITS IN ' 0029 41 Character 10 QALRUNIT 'CYLINDERS)' or 'PAGES )' 00000033 QALRHLN *-QALRHDR Regular response header length 0033 51 Character 1 QALRD (0) Data line on regular response 0033 51 Character 5 * 0038 56 Character 5 QALRALLO Type of space allocated (TDISK, page , spool or DRCT) 003D 61 Character 1 * 003E 62 Character 6 * 'Total=' 0044 68 Character 6 QALRTOTL Total number allocated 004A 74 Character 1 * 004B 75 Character 6 * 'Inuse=' 0051 81 Character 6 QALRUSED Number in use 0057 87 Character 1 * 0058 88 Character 6 * 'Avail=' 005E 94 Character 6 QALRAVL Number available 0064 100 Character 8 QALRDRN For DR on TDSK, page, spol lines 00000039 QALRLINL *-QALRD Length of a data line This is 57 chars for now. Hardcoding the following so BLOCKDEF will work. 006C 108 Character 57 QALRPAGE Space for page line 00A5 165 Character 57 QALRSPOL Space for spol line 00DE 222 Character 57 QALRDRCT Space for DRCT line Work areas 0117 279 Bitstring 1 * (5) Reserved for IBM use 011C 284 Character 6 QALACNUC Save the active nucleus volid 0122 290 Bitstring 1 * (2) Reserved for IBM use 0124 292 Signed 4 QALVOLCT Save the count of CP volumes 0128 296 Signed 4 QAL1STVL Save the first CPVOL address 012C 300 Signed 4 QALACDIR Save active directory CPVOL for active directory compare 0130 304 Signed 4 QALCURVL Save current CPVOL address for active directory compare 0134 308 Character 6 QALVOLID (0) Save input volid 0134 308 Character 1 * 1st character of saved volid 0135 309 Character 5 QALVOLI2 Rest of saved volid - For padding with blanks 013A 314 Bitstring 1 QALVOLFF Fence at the end of volid 013B 315 Bitstring 1 QALFRSP Flags used to determine response to be sent 1... .... QALIPLVL X'80' Write the IPL nucleus active on last line of response .1.. .... QALPAGEK X'40' Show pages with 'K' or 'm' ..1. .... QALHDDNE X'20' Header display done ...1 .... QAL1STEX X'10' First extent being processed .... 1... QALSHARE X'08' Volume is shared .... .1.. QALDUMP X'04' Volume is dump only .... ..1. QALDIRAC X'02' Active directory on volume .... ...1 QALPRCVL X'01' Volid has been processed 013C 316 Bitstring 1 QALFWILD Wildcard processing flags 1... .... QALWILDV X'80' Wildcard volid specification was given .1.. .... QALALL X'40' Processing all volumes ..1. .... QAL1FND X'20' At least one volid was found which matched the wildcard spec ...1 .... QALSPFND X'10' Requested type of space was found on at least one volid which matched the wildcard spec 013D 317 Bitstring 1 QALFXTD Extended processing flags 1... .... QALXMP X'80' Extended map processing .1.. .... QALXDR X'40' Extended DRCT processing ..1. .... QALXTD X'20' Extended TDSK processing .... ..1. QALXSP X'02' Extended spool processing .... ...1 QALXPG X'01' Extended page processing 013E 318 Bitstring 1 * (2) Reserved for IBM use The following fields are used as a work area for the regular and extended responses. 0140 320 Signed 4 QALWTOTL Total number of slots/cyls in extent (extended) or on volume (regular) 0144 324 Signed 4 QALWUSED Number of slots/cyls in use in extent (extended) or on volume (regular) 0148 328 Signed 4 QALSUMTC Summary of total cylinders 014C 332 Signed 4 QALSUMUC Summary of in use cylinders 0150 336 Signed 4 QALSUMTS Summary of total slots 0154 340 Signed 4 QALSUMUS Summary of in use slots 0158 344 Signed 4 QALUSMTC Summary of total cylinders (usable) 015C 348 Signed 4 QALUSMUC Summary of in use cylinders (usable) 0160 352 Signed 4 QALUSMTS Summary of total slots (usable) 0164 356 Signed 4 QALUSMUS Summary of in use slots (usable) 0168 360 Signed 4 QALDRATC Summary of total cylinders (DRAINing) 016C 364 Signed 4 QALDRAUC Summary of in use cylinders (DRAINing) 0170 368 Signed 4 QALDRATS Summary of total slots (DRAINing) 0174 372 Signed 4 QALDRAUS Summary of in use slots (DRAINing) 0178 376 Signed 4 QALSVR15 Save R15 for CALLCVT 017C 380 Signed 4 * Reserved 0180 384 Dbl-Word 8 QALCVTBD (0) Convert binary to packed decimal 0180 384 Signed 4 * 0184 388 Signed 4 QALCVTDP Packed decimal portion 0188 392 Dbl-Word 8 QALCVTED Unpack and edit decimal 0190 400 Character 8 QALCVT8 (0) Work area for conversion 0190 400 Character 2 * 0192 402 Character 6 QALCVT6 Converted cylinder/page counts 0198 408 Character 1 QALCVTK 'K' for pages, if needed 0199 409 Character 1 QALWALLO Extent allocation type 019A 410 Character 6 QALWVOL Save volid 01A0 416 Character 4 QALWRDEV Save RDEV 00000035 QALSIZE (*-QALBK+7)/8 Size, in doublewords, of QALBK Start of remaps. 0033 51 Character 57 QALRTDSK Rename TDSK line 0033 51 Character 57 QALRDATA Rename data line The following field is filled in only on the DRCT line of the response. 0064 100 Character 8 QALRACT For active The response buffer is also used to display the active nucleus response line in case the active IPL nucleus is on one of the volumes displayed. 0000 0 Character 29 * Active nucleus MSG text area 001D 29 Character 6 QALRACNV Active nucleus volid 00000023 QALRACNL *-QALBK Length of active nucleus MSG Remap for converted value. 0190 400 Character 5 * 0195 405 Character 3 QALCVT3 Converted in use percentage Extended option response buffer and work area Used for query alloc extended options page, spool, TDISK, DRCT, and map. 0000 0 Character 1 QALXB (0) 0000 0 Character 6 QALXVOL Volid 0006 6 Character 1 * 0007 7 Character 4 QALXRDEV Real device number 000B 11 Character 1 * 0000000C QALXHDRL *-QALXB Length of volid info 0000 0 Character 12 QALXHDR Length of extended header area. Hardcoded for blockdef. The above fields are only filled in for the first response line for a volume, and are left blank on subsequent reponse lines for the same volume, unless the query alloc command was issued using diagnose X'08', and the response is being placed in the user's buffer. In that case, the above fields are filled in on every line. 000C 12 Character 1 QALXD (0) Data area of buffer 000C 12 Character 6 QALXSTR Extent start cylinder or page 0012 18 Character 1 * 0013 19 Character 6 QALXEND Extent end cylinder or page 0019 25 Character 1 * 001A 26 Character 6 QALXTOTL Total number of cylinders/pages in extent 0020 32 Character 1 * 0021 33 Character 6 QALXUSED Number of cylinders/pages in use 0027 39 Character 1 * 0028 40 Character 6 QALXHIGH Highest cylinder/page number in use 00000006 QALXCNT *-QALXHIGH Map a count field for countcvt 002E 46 Character 1 * 002F 47 Character 3 QALXPCTI Percent of cylinders/pages in use 0032 50 Character 1 QALXPCT Percent sign 0033 51 Character 1 * 00000028 QALXDATL *-QALXD Length of data area 000C 12 Character 40 QALXDATA Extended response header area. Hardcoded for blockdef 0034 52 Character 13 QALXTEXT Extended response text area 00000041 QALXLINL *-QALXB Length of extended response line 0000 0 Character 65 QALXLINE Extended response HDR + data. Hardcoded for blockdef Extended response header mapping 0000 0 Character 1 QALX1 (0) 0000 0 Character 12 * 000C 12 Character 6 QALX1ST "Extent" 0012 18 Character 1 * 0013 19 Character 6 QALX1END "Extent" 0019 25 Character 1 * 001A 26 Character 6 QALX1TOT " Total" 0020 32 Character 1 * 0021 33 Character 6 QALX1USE " Pages" 0027 39 Character 1 * 0028 40 Character 6 QALX1HGH " High" 002E 46 Character 1 * 002F 47 Character 4 QALX1PCT " %" 0033 51 Character 1 * 0034 52 Character 13 QALX1TYP "Allocation" 00000041 QALX1HDL *-QALX1 Length of first header line 0000 0 Character 65 QALX1HD Extended response HDR + data 0000 0 Character 1 QALX2 (0) 0000 0 Character 6 QALX2VOL "Volid " 0006 6 Character 1 * 0007 7 Character 4 QALX2RDV "RDEV" 000B 11 Character 1 * 000C 12 Character 6 QALX2ST " Start" 0012 18 Character 1 * 0013 19 Character 6 QALX2END " End" 0019 25 Character 1 * 001A 26 Character 6 QALX2TOT " Pages" or " total" 0020 32 Character 1 * 0021 33 Character 6 QALX2USE "In use" 0027 39 Character 1 * 0028 40 Character 6 QALX2HGH " Page" or " high" 002E 46 Character 1 * 002F 47 Character 4 QALX2PCT "Used" 0033 51 Character 1 * 0034 52 Character 13 QALX2TYP "Type " 00000041 QALX2HDL *-QALX2 Length of 2nd header line 0000 0 Character 65 QALX2HD Extended response HDR + data 0000 0 Character 1 QALX3 (0) 0000 0 Character 6 * Column 1 dashes - Volid 0006 6 Character 1 * 0007 7 Character 4 * Column 2 dashes - RDEV 000B 11 Character 1 * 000C 12 Character 6 * Column 3 dashes - Start 0012 18 Character 1 * 0013 19 Character 6 * Column 4 dashes - End 0019 25 Character 1 * 001A 26 Character 6 * Column 5 dashes - Total 0020 32 Character 1 * 0021 33 Character 6 * Column 6 dashes - In use 0027 39 Character 1 * 0028 40 Character 6 * Column 7 dashes - High 002E 46 Character 1 * 002F 47 Character 4 QALX3PCT Column 8 dashes - Percent 0033 51 Character 1 * 0034 52 Character 13 QALX3DSH And more dashes for map 00000041 QALX3HDL *-QALX3 Length of 2nd header line 0000 0 Character 65 QALX3HD Extended response HDR + data
QALBK Storage Layout
*** QALBK - Query Alloc Block * * +---------------------------+------+--------------------+ * 0 | QALRDASD |//////| QALRRDEV- | * +------+------+-------------+------+--------------------+ * 8 |-(005)|//////| QALRVOL | * +------+------+--------------------+------+-------------+ * 10 |//////| QALRTYPE |//////| (016)- | * +------+---------------------------+------+------+------+ * 18 | -QALRFMT |//////|//////| * +-----------------------------------------+------+//////| * |///////////////////////////////////////////////////////| * |//////+------------------------------------------------+ * 28 |//////| QALRUNIT | * +------+ +----------------------------------+ * 30 | |//////////////////////////////////| * +--------------------+-------------+------+-------------+ * 38 | QALRALLO |//////|/////////////| * +---------------------------+------+------+-------------+ * 40 |///////////////////////////| QALRTOTL- | * +-------------+------+------+---------------------------+ * 48 | -(044) |//////|//////////////////////////////////| * +------+------+------+---------------------------+------+ * 50 |//////| QALRUSED |//////| * +------+----------------------------------+------+------+ * 58 |/////////////////////////////////////////| (05E)- | * +---------------------------+-------------+-------------+ * 60 | -QALRAVL | QALRDRN- | * +---------------------------+---------------------------+ * 68 | -(064) | | * +---------------------------+ | * 70 | | * = QALRPAGE = * | +--------------------+ * | | | * +----------------------------------+ | * A8 | | * = QALRSPOL = * | +-------------+ * | | | * +-----------------------------------------+ | * E0 | | * = QALRDRCT = * | +------+ * | |//////| * +---------------------------+--------------------+------+ * 118 |///////////////////////////| QALACNUC- | * +-------------+-------------+---------------------------+ * 120 | -(11C) |/////////////| QALVOLCT | * +-------------+-------------+---------------------------+ * 128 | QAL1STVL | QALACDIR | * +---------------------------+------+--------------------+ * 130 | QALCURVL |//////| QALVOLI2- | * +-------------+------+------+------+------+-------------+ * 138 | -(135) |:VOLFF|:FRSP |:FWILD|:FXTD |/////////////| * +-------------+------+------+------+------+-------------+ * 140 | QALWTOTL | QALWUSED | * +---------------------------+---------------------------+ * 148 | QALSUMTC | QALSUMUC | * +---------------------------+---------------------------+ * 150 | QALSUMTS | QALSUMUS | * +---------------------------+---------------------------+ * 158 | QALUSMTC | QALUSMUC | * +---------------------------+---------------------------+ * 160 | QALUSMTS | QALUSMUS | * +---------------------------+---------------------------+ * 168 | QALDRATC | QALDRAUC | * +---------------------------+---------------------------+ * 170 | QALDRATS | QALDRAUS | * +---------------------------+---------------------------+ * 178 | QALSVR15 |///////////////////////////| * +---------------------------+---------------------------+ * 180 |///////////////////////////| QALCVTDP | * +---------------------------+---------------------------+ * 188 | QALCVTED | * +-------------+-----------------------------------------+ * 190 |/////////////| QALCVT6 | * +------+------+-----------------------------------------+ * 198 |:CVTK |:WALLO| QALWVOL | * +------+------+-------------+---------------------------+ * 1A0 | QALWRDEV | 1A4 * +---------------------------+ * *** QALBK - Query Alloc Block *** Overlay for QALRD in QALBK * * +----------------------------------+ * ... 33 | | * +--------------------+ | * 38 | | * = QALRTDSK = * | +---------------------------+ * | | 6C * +---------------------------+ * *** Overlay for QALRD in QALBK *** Overlay for QALRD in QALBK * * +----------------------------------+ * ... 33 | | * +--------------------+ | * 38 | | * = QALRDATA = * | +---------------------------+ * | | 6C * +---------------------------+ * *** Overlay for QALRD in QALBK *** Overlay for QALRDRN in QALBK * * +---------------------------+ * ... 64 | QALRACT- | * +---------------------------+---------------------------+ * 68 | -(064) | 6C * +---------------------------+ * *** Overlay for QALRDRN in QALBK *** Overlay for QALORGIN in QALBK * * +-------------------------------------------------------+ * 0 |///////////////////////////////////////////////////////| * =///////////////////////////////////////////////////////= * |//////////////////////////////////+--------------------+ * |//////////////////////////////////| QALRACNV- | * +--------------------+-------------+--------------------+ * 20 | -(01D) | 23 * +--------------------+ * *** Overlay for QALORGIN in QALBK *** Overlay for QALCVT8 in QALBK * * +----------------------------------+--------------------+ * 190 |//////////////////////////////////| QALCVT3 | * +----------------------------------+--------------------+ * 198 * *** Overlay for QALCVT8 in QALBK *** Overlay for QALORGIN in QALBK * * +-----------------------------------------+------+------+ * 0 | QALXVOL |//////|(007)-| * +--------------------+------+-------------+------+------+ * 8 | -QALXRDEV |//////| C * +--------------------+------+ * *** Overlay for QALORGIN in QALBK *** Overlay for QALXB in QALBK * * +-------------------------------------------------------+ * 0 | QALXHDR | * | +---------------------------+ * | | QALXSTR- | * +-------------+------+------+---------------------------+ * 10 | -(00C) |//////| QALXEND- | * +------+------+------+----------------------------------+ * 18 |-(013)|//////| QALXTOTL | * +------+------+----------------------------------+------+ * 20 |//////| QALXUSED |//////| * +------+----------------------------------+------+------+ * 28 | QALXHIGH |//////|(02F)-| * +-------------+------+------+-------------+------+------+ * 30 | -QALXPCTI |:XPCT |//////| 34 * +-------------+------+------+ * *** Overlay for QALXB in QALBK *** Overlay for QALXD in QALBK * * +---------------------------+ * ... C | | * +---------------------------+ | * 10 | | * = QALXDATA = * | +---------------------------+ * 30 | | | * +---------------------------+ | * | QALXTEXT | * | +------------------------------------------------+ * | | 41 * +------+ * *** Overlay for QALXD in QALBK *** Overlay for QALXB in QALBK * * +-------------------------------------------------------+ * 0 | | * = QALXLINE = * | +------------------------------------------------+ * | | 41 * +------+ * *** Overlay for QALXB in QALBK *** Overlay for QALXB in QALBK * * +-------------------------------------------------------+ * 0 |///////////////////////////////////////////////////////| * |///////////////////////////+---------------------------+ * |///////////////////////////| QALX1ST- | * +-------------+------+------+---------------------------+ * 10 | -(00C) |//////| QALX1END- | * +------+------+------+----------------------------------+ * 18 |-(013)|//////| QALX1TOT | * +------+------+----------------------------------+------+ * 20 |//////| QALX1USE |//////| * +------+----------------------------------+------+------+ * 28 | QALX1HGH |//////|(02F)-| * +--------------------+------+-------------+------+------+ * 30 | -QALX1PCT |//////| | * +--------------------+------+ | * | QALX1TYP | * | +------------------------------------------------+ * | | 41 * +------+ * *** Overlay for QALXB in QALBK *** Overlay for QALX1 in QALBK * * +-------------------------------------------------------+ * 0 | | * = QALX1HD = * | +------------------------------------------------+ * | | 41 * +------+ * *** Overlay for QALX1 in QALBK *** Overlay for QALXB in QALBK * * +-----------------------------------------+------+------+ * 0 | QALX2VOL |//////|(007)-| * +--------------------+------+-------------+------+------+ * 8 | -QALX2RDV |//////| QALX2ST- | * +-------------+------+------+---------------------------+ * 10 | -(00C) |//////| QALX2END- | * +------+------+------+----------------------------------+ * 18 |-(013)|//////| QALX2TOT | * +------+------+----------------------------------+------+ * 20 |//////| QALX2USE |//////| * +------+----------------------------------+------+------+ * 28 | QALX2HGH |//////|(02F)-| * +--------------------+------+-------------+------+------+ * 30 | -QALX2PCT |//////| | * +--------------------+------+ | * | QALX2TYP | * | +------------------------------------------------+ * | | 41 * +------+ * *** Overlay for QALXB in QALBK *** Overlay for QALX2 in QALBK * * +-------------------------------------------------------+ * 0 | | * = QALX2HD = * | +------------------------------------------------+ * | | 41 * +------+ * *** Overlay for QALX2 in QALBK *** Overlay for QALXB in QALBK * * +-----------------------------------------+------+------+ * 0 |/////////////////////////////////////////|//////|//////| * +--------------------+------+-------------+------+------+ * 8 |////////////////////|//////|///////////////////////////| * +-------------+------+------+---------------------------+ * 10 |/////////////|//////|//////////////////////////////////| * +------+------+------+----------------------------------+ * 18 |//////|//////|/////////////////////////////////////////| * +------+------+----------------------------------+------+ * 20 |//////|/////////////////////////////////////////|//////| * +------+----------------------------------+------+------+ * 28 |/////////////////////////////////////////|//////|(02F)-| * +--------------------+------+-------------+------+------+ * 30 | -QALX3PCT |//////| | * +--------------------+------+ | * | QALX3DSH | * | +------------------------------------------------+ * | | 41 * +------+ * *** Overlay for QALXB in QALBK *** Overlay for QALX3 in QALBK * * +-------------------------------------------------------+ * 0 | | * = QALX3HD = * | +------------------------------------------------+ * | | 41 * +------+ * *** Overlay for QALX3 in QALBK
QALBK Cross Reference
Symbol Dspl Value -------------- ---- ----- QALACDIR 012C QALACNUC 011C QALALL 013C 40 QALCURVL 0130 QALCVTBD 0180 QALCVTDP 0184 QALCVTED 0188 QALCVTK 0198 QALCVT3 0195 QALCVT6 0192 QALCVT8 0190 QALDIRAC 013B 02 QALDRATC 0168 QALDRATS 0170 QALDRAUC 016C QALDRAUS 0174 QALDUMP 013B 04 QALFRSP 013B QALFWILD 013C QALFXTD 013D QALHDDNE 013B 20 QALIPLVL 013B 80 QALORGIN 0000 QALPAGEK 013B 40 QALPRCVL 013B 01 QALRACNL 001D 00000023 QALRACNV 001D QALRACT 0064 QALRALLO 0038 QALRAVL 005E QALRD 0033 QALRDASD 0000 QALRDATA 0033 QALRDRCT 00DE QALRDRN 0064 QALRFMT 0016 QALRHDR 0000 QALRHLN 0029 00000033 QALRLINL 0064 00000039 QALRPAGE 006C QALRRDEV 0005 QALRSPOL 00A5 QALRTDSK 0033 QALRTOTL 0044 QALRTYPE 0011 QALRUNIT 0029 QALRUSED 0051 QALRVOL 000A QALSHARE 013B 08 QALSIZE 01A0 00000035 QALSPFND 013C 10 QALSUMTC 0148 QALSUMTS 0150 QALSUMUC 014C QALSUMUS 0154 QALSVR15 0178 QALUSMTC 0158 QALUSMTS 0160 QALUSMUC 015C QALUSMUS 0164 QALVOLCT 0124 QALVOLFF 013A QALVOLID 0134 QALVOLI2 0135 QALWALLO 0199 QALWILDV 013C 80 QALWRDEV 01A0 QALWTOTL 0140 QALWUSED 0144 QALWVOL 019A QALXB 0000 QALXCNT 0028 00000006 QALXD 000C QALXDATA 000C QALXDATL 0033 00000028 QALXDR 013D 40 QALXEND 0013 QALXHDR 0000 QALXHDRL 000B 0000000C QALXHIGH 0028 QALXLINE 0000 QALXLINL 0034 00000041 QALXMP 013D 80 QALXPCT 0032 QALXPCTI 002F QALXPG 013D 01 QALXRDEV 0007 QALXSP 013D 02 QALXSTR 000C QALXTD 013D 20 QALXTEXT 0034 QALXTOTL 001A QALXUSED 0021 QALXVOL 0000 QALX1 0000 QALX1END 0013 QALX1HD 0000 QALX1HDL 0034 00000041 QALX1HGH 0028 QALX1PCT 002F QALX1ST 000C QALX1TOT 001A QALX1TYP 0034 QALX1USE 0021 QALX2 0000 QALX2END 0013 QALX2HD 0000 QALX2HDL 0034 00000041 QALX2HGH 0028 QALX2PCT 002F QALX2RDV 0007 QALX2ST 000C QALX2TOT 001A QALX2TYP 0034 QALX2USE 0021 QALX2VOL 0000 QALX3 0000 QALX3DSH 0034 QALX3HD 0000 QALX3HDL 0034 00000041 QALX3PCT 002F QAL1FND 013C 20 QAL1STEX 013B 10 QAL1STVL 0128
Copyright IBM Corporation, 1990, 2001