User label processing

The system uses the USRLBLPGM parameter to specify the name of a program that is used to process user header and trailer labels. This parameter is not valid for save and restore functions.

The system calls the program, which the USRLBLPGM parameter specifies, for open and close processing, to process every label. The system calls the program one additional time to tell the program that there are no more labels.

Figure 1 shows the format of a tape with user labels. At open, the system will call the user-label program three times for processing the labels in the diagram. Those calls are for UHL1, UHL2, and a final time to indicate completion. At close, the system will call the user-label program three more times.

The system passes three variables to the program. The program variables have the following lengths: