Only one keyword can be specified each time you issue TESTCB.
The format of the TESTCB macro used to test a field in an access method control block is:
[label] |
TESTCB |
ACB=address |
---|
When specified, LDS must be the only parameter indicated by ATRB. All other parameters are ignored and a binary test performed indicating whether the data set is a linear data set (return code 0) or not (return code 1).
The remaining parameters represent fields in an access method control block that can be compared with the value specified. These fields are the same as those that can be displayed by using the SHOWCB macro and are described in Table 1.
If you omit a routine to handle error conditions, you can examine register 15 following TESTCB by using a branch table, for example, but do not alter the PSW condition code that VSAM set to indicate the result of a test until you have tested it.
Important: If you issue a TESTCB for a non-VSAM and non-VTAM ACB, the results will be unpredictable.