Concatenating the Specified Ddnames (Entry Code X’0C’)

Build the DAIR parameter block shown in Table 1 to request that DAIR concatenate data sets. Use the IKJDAP0C mapping macro, which is provided in SYS1.MACLIB, to map this DAIR parameter block.

The ddnames listed in the DAIR parameter block are concatenated in the order in which they appear. All data sets listed by ddname in the DAIR parameter block must be currently allocated.

Table 1. DAIR parameter block for entry code X’0C’
Number of bytes Field name Contents or meaning
2 DA0CCD Entry code X'000C'
2 DA0CDARC This field contains the error code, if any, returned from the dynamic allocation routines. (See Reason Codes from Dynamic Allocation.)
2   Reserved field. Set this field to zero.
2 DA0CNUMB Place in this field the number of data sets to be concatenated.
2   Reserved. Set this field to zero.
8 DA0CDDN Place in this field the ddname of the first data set to be concatenated. This field is repeated for each ddname to be concatenated.

After attempting the requested function, DAIR returns, in register 15, one of the following codes: 0, 4, 12, or 52. See Return Codes from DAIR for return code meanings.