gtpg2m3w | General Macros |
This general macro performs two functions. Given a symbolic file address, this macro will return the characteristics of that file address. Characteristics include:
The second function of this macro is to validate the input MCHR.
Format
|
Entry Requirements
MVC CE1FM1(2),EBX000 MVC CE1FX1+2(5),EBX000+2would properly set up the MCHR for the E parameter.
Return Conditions
Symbol | Bits | Description: |
---|---|---|
SONIC_TYPE_INDICATOR | 00 | Type indicator
|
SONIC_POOL_LONGEVITY | 01 | Pool longevity indicator (refer to (SONICN1))
|
SONIC_ADDRESS_FORMAT | 02-03 | Address format indicator
|
SONIC_FADDR_INVALID | 07 | File Address Validity indicator
|
SONIC_RECORD_UNIQUE | 16 | Record ownership indicator (refer to (SONICN2))
|
SONIC_ALT_REC_SIZE | 17 | Alternate record size indicator
|
SONIC_DUPLICATED | 29 | Duplication indicator
|
SONIC_REC_SIZE | 31 | Record size indicator
|
Notes:
Equate name | Bit | Description |
---|---|---|
SONIC_RTN_GOOD | 0 | Valid MCHR address |
SONIC_RTN_INV_CYL | 4 | Invalid cylinder value |
SONIC_RTN_INV_HEAD | 8 | Invalid head value |
SONIC_RTN_INV_MOD | 12 | Invalid or not mounted module |
SONIC_RTN_INV_BIN | 16 | Invalid bin value. |
The record number is not validated. There is no way to validate the record number except by attempting to read the actual record because the size of the record cannot be determined from its address.
Programming Considerations
This macro can be run on any I-stream.
Examples