Previous Topic: Modify LabelsNext Topic: Input, Output and Label Examples


User Data Access

User data is a free-form text that can be passed to your CA Earl label formatter. Real-time Auxiliary Disposition provides this capability when the user data option is specified. See Real-time Auxiliary Disposition. Up to 51 characters of free-form text may be passed for each volume. The length of the user data is provided in the field LABEL_USERDATA_LEN, and the actual text is provided in the field LABEL_USERDATA.

The following is an example on modifying TMEBLS to move this user data to the output label.

Add the following line to the section titled 'WORK LINES FOR LABEL CART IMAGE - 80 COLUMNS WIDE' after 'DEF CARTO1_DSN ...'

DEF CART02_USR = WORK_LINE     001-051 X

Add the following lines to the SETUP LABELS section for CARTs:

SET WORK_LINE = ' '
SET CART02_USR='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
SET LINE(/2/) = WORK_LINE

In the format for line 2 for cartridges, code the following:

!!!!!!!!!!!!!!!!!
! FORMAT LINE-2 !
!!!!!!!!!!!!!!!!!

SET WORK_LINE     = ' '
SET CART02_USR    = LABEL_USERDATA
SET LINE(/2/)     = WORK_LINE