| 1 |
<pcml version="1.0"> |
| 2 |
|
| 3 |
<!-- PCML source for calling "Open List of ASPs (QYASPOL) API" (QYASPOL) API --> |
| 4 |
<!-- http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fapis%2Fqyaspol.htm --> |
| 5 |
|
| 6 |
0 0 BINARY(4) ASP number |
| 7 |
4 4 CHAR(4) Disk type |
| 8 |
8 8 CHAR(4) Disk model |
| 9 |
12 C CHAR(10) Disk serial number |
| 10 |
22 16 CHAR(10) Resource name |
| 11 |
32 20 BINARY(4) Disk unit number |
| 12 |
36 24 BINARY(4) Disk capacity |
| 13 |
40 28 BINARY(4) Disk storage available |
| 14 |
44 2C BINARY(4) Disk storage reserved for system |
| 15 |
48 30 CHAR(1) Mirrored unit protected |
| 16 |
49 31 CHAR(1) Mirrored unit reported |
| 17 |
50 32 CHAR(1) Mirrored unit status |
| 18 |
51 33 CHAR(1) Reserved |
| 19 |
52 34 BINARY(4) Unit control |
| 20 |
56 38 BINARY(4) Blocks transferred to main storage |
| 21 |
60 3C BINARY(4) Blocks transferred from main storage |
| 22 |
64 40 BINARY(4) Requests for data transfer to main storage |
| 23 |
68 44 BINARY(4) Requests for data transfer from main storage |
| 24 |
72 48 BINARY(4) Permanent blocks transferred from main storage |
| 25 |
76 4C BINARY(4) Requests for permanent data transfer from main storage |
| 26 |
80 50 BINARY(4) Sample count |
| 27 |
84 64 BINARY(4) Not busy count |
| 28 |
88 68 CHAR(1) Compression status |
| 29 |
89 69 CHAR(1) Disk protection type |
| 30 |
90 6A CHAR(1) Compressed unit |
| 31 |
91 6B CHAR(1) Storage allocation restricted unit |
| 32 |
92 6C CHAR(1) Availability parity set unit |
| 33 |
93 6D CHAR(1) Multiple connection unit |
| 34 |
|
| 35 |
<!-- YASP0300 --> |
| 36 |
<struct name="yasp0300"> |
| 37 |
<data name="aspNumber" type="int" length="4" /> |
| 38 |
<data name="diskType" type="char" length="4" /> |
| 39 |
<data name="diskModel" type="char" length="4" /> |
| 40 |
<data name="diskSerialNumber" type="char" length="10" /> |
| 41 |
<data name="resourceName" type="char" length="10" /> |
| 42 |
<data name="diskUnitNumber" type="int" length="4" /> |
| 43 |
<data name="diskCapacity" type="int" length="4" /> |
| 44 |
<data name="diskStorageAvailable" type="int" length="4" /> |
| 45 |
<data name="diskStorageReservedForSystem" type="int" length="4" /> |
| 46 |
<data name="mirroredUnitProtected" type="char" length="1" /> |
| 47 |
<data name="mirroredUnitReported" type="char" length="1" /> |
| 48 |
<data name="mirroredUnitStatus" type="char" length="1" /> |
| 49 |
<data name="reserved" type="char" length="1" /> |
| 50 |
<data name="unitControl" type="int" length="4" /> |
| 51 |
<data name="blockTransferredToMainStorage" type="int" length="4" /> |
| 52 |
<data name="blockTransferredFromMainStorage" type="int" length="4" /> |
| 53 |
<data name="requestForDataToMainStorage" type="int" length="4" /> |
| 54 |
<data name="requestForDataForMainStorage" type="int" length="4" /> |
| 55 |
<data name="requestForPermanentFromMainStorage" type="int" length="4" /> |
| 56 |
<data name="sampleCount" type="int" length="4" /> |
| 57 |
<data name="notBusyCount" type="int" length="4" /> |
| 58 |
<data name="compressionStatus" type="char" length="1" /> |
| 59 |
<data name="diskProtectionType" type="char" length="1" /> |
| 60 |
<data name="compressedUnit" type="char" length="1" /> |
| 61 |
<data name="storageAllocationRestrictedUnit" type="char" length="1" /> |
| 62 |
<data name="availabilityParitySetUnit" type="char" length="1" /> |
| 63 |
<data name="multipleConnectionUnit" type="char" length="1" /> |
| 64 |
</struct> |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
0 0 BINARY(4) Total records |
| 69 |
4 4 BINARY(4) Records returned |
| 70 |
8 8 CHAR(4) Request handle |
| 71 |
12 C BINARY(4) Record length |
| 72 |
16 10 CHAR(1) Information complete indicator |
| 73 |
17 11 CHAR(13) Date and time created |
| 74 |
30 1E CHAR(1) List status indicator |
| 75 |
31 1F CHAR(1) Reserved |
| 76 |
32 20 BINARY(4) Length of information returned |
| 77 |
36 24 BINARY(4) First record in receiver variable |
| 78 |
40 28 CHAR(40) Reserved |
| 79 |
|
| 80 |
<!-- List information structure (common for "Open List" type APIs) --> |
| 81 |
<struct name="listInfo"> |
| 82 |
<data name="totalRcds" type="int" length="4" /> |
| 83 |
<data name="rcdsReturned" type="int" length="4" /> |
| 84 |
<data name="rqsHandle" type="byte" length="4" /> |
| 85 |
<data name="rcdLength" type="int" length="4" /> |
| 86 |
<data name="infoComplete" type="char" length="1" /> |
| 87 |
<data name="dateCreated" type="char" length="7" /> |
| 88 |
<data name="timeCreated" type="char" length="6" /> |
| 89 |
<data name="listStatus" type="char" length="1" /> |
| 90 |
<data type="byte" length="1" /> |
| 91 |
<data name="lengthOfInfo" type="int" length="4" /> |
| 92 |
<data name="firstRecord" type="int" length="4" /> |
| 93 |
<data type="byte" length="40" /> |
| 94 |
</struct> |
| 95 |
|
| 96 |
<struct name="filterInformation" usage="input"> |
| 97 |
<data name="sizeOfFileEntry" type="int" length="4" init="16"/> |
| 98 |
<data name="filterKey" type="int" length="4" init="1"/> |
| 99 |
<data name="sizeOfFilterData" type="int" length="4" init="4"/> |
| 100 |
<data name="filterData" type="int" length="4" init="1"/> |
| 101 |
</struct> |
| 102 |
|
| 103 |
<!-- Program QYASPOL and its parameter list--> |
| 104 |
<program name="qyaspol" path="/QSYS.lib/QGY.lib/QYASPOL.pgm" parseorder="listInfo receiver"> |
| 105 |
<!-- 1 Receiver variable Output Char(*) --> |
| 106 |
<data name="receiver" type="struct" struct="yasp0300" usage="output" count="listInfo.rcdsReturned" outputsize="receiverLength" /> |
| 107 |
<!-- 2 Length of receiver variable Input Binary(4) --> |
| 108 |
<data name="receiverLength" type="int" length="4" usage="input" init="94" /> |
| 109 |
<!-- 3 List information Output Char(80) --> |
| 110 |
<data name="listInfo" type="struct" struct="listInfo" usage="output" /> |
| 111 |
<!-- 4 Number of records to return Input Binary(4) --> |
| 112 |
<data name="rcdsToReturn" type="int" length="4" usage="input" init="264" /> |
| 113 |
<!-- 5 Number of filters Input Binary(4) --> |
| 114 |
<data name="numberOfFilters" type="int" length="4" usage="input" init="1" /> |
| 115 |
<!-- 6 Filter information Input Char(*) --> |
| 116 |
<data name="filterInfo" type="struct" struct="filterInformation" usage="input" /> |
| 117 |
|
| 118 |
<!-- 7 Format name Input Char(8) --> |
| 119 |
<data name="format" type="char" length="8" usage="input" init="YASP0300" /> |
| 120 |
<!-- 8 Error Code I/O Char(*) --> |
| 121 |
<data name="errorCode" type="int" length="4" usage="input" init="0" /> |
| 122 |
|
| 123 |
</program> |
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
1 Receiver variable Output Char(*) |
| 129 |
2 Length of receiver variable Input Binary(4) |
| 130 |
3 Request handle Input Char(4) |
| 131 |
4 List information Output Char(80) |
| 132 |
5 Number of records to return Input Binary(4) |
| 133 |
6 Starting record Input Binary(4) |
| 134 |
7 Error code I/O Char(*) |
| 135 |
<!-- Program QGYGTLE returned additional "records" from the list created by QYASPOL. --> |
| 136 |
<program name="qgygtle" path="/QSYS.lib/QGY.lib/QGYGTLE.pgm" parseorder="listInfo receiver"> |
| 137 |
<data name="receiver" type="struct" struct="yasp0300" usage="output" count="listInfo.rcdsReturned" outputsize="receiverLength" /> |
| 138 |
<data name="receiverLength" type="int" length="4" usage="input" init="94" /> |
| 139 |
<data name="requestHandle" type="byte" length="4" usage="input" /> |
| 140 |
<data name="listInfo" type="struct" struct="listInfo" usage="output" /> |
| 141 |
<data name="rcdsToReturn" type="int" length="4" usage="input" init="264" /> |
| 142 |
<data name="startingRcd" type="int" length="4" usage="input" /> |
| 143 |
<data name="errorCode" type="int" length="4" usage="input" init="0" /> |
| 144 |
</program> |
| 145 |
|
| 146 |
<!-- Program QGYCLST closes the list, freeing resources on the server --> |
| 147 |
<program name="qgyclst" path="/QSYS.lib/QGY.lib/QGYCLST.pgm" > |
| 148 |
<data name="requestHandle" type="byte" length="4" usage="input" /> |
| 149 |
<data name="errorCode" type="int" length="4" usage="input" init="0" /> |
| 150 |
</program> |
| 151 |
</pcml> |