psbData

The dliLib.psbData system variable contains both the name of the runtime PSB and an address with which that PSB is accessed.

The variable is based on the predefined record part PSBDataRecord, which has the following structure:
  Record PSBDataRecord
    psbName CHAR(8);
    psbRef INT;
  end

If your program switches from one PSB to another, you can set and test the dliLib.psbData.psbName field directly. Do not update the dliLib.psbData.psbRef field yourself; it contains an address.

The initial value of dliLib.psbData.psbName is the value in the predefined defaultPSBName field. That predefined field is in the PSB record variable that is assigned to the psb program property. If you do not set that field, its value is the name in the PSBRecord definition on which the PSB record variable is based.

Compatibility

Table 1. Compatibility considerations for psbData
Platform Issue
CICS® A program cannot change PSBs on CICS, so you cannot use the variable for that purpose.

Feedback