Datamax-O'Neil DPL Programmer’s Manual User Manual
Page 34

System-Level Command Functions
26
STX U
Label Format String Replacement Field
This command places new label data into format fields to build a label. Two options are
available: Exact Length and Truncated Length.
To easily keep track of fields, place all of the fields to be updated with the command at
the beginning of the label format. A maximum of 99 format fields can be updated. Fields
are numbered consecutively 01 to 99 in the order received.
Exact Length Replacement Field Functions – The new data string must equal the
original string length and contain valid data. When the dynamic data is shorter than the
length of the originally defined data field, then field will be padded with blanks (or zero
when the Format Record header specifies a numeric bar code).
Syntax:
Where:
nn
- Is the format field number, 2 digits.
ss…s
- Is the new string data, followed by a
Exact Length
Sample:
1A1100001000100data field 1
161100001100110data field 2
161100001200120data field 3
Q0001
E
The sample above produces three labels. The first is formatted
with the commands between
print with the replacement data contained in the
commands (see
length: 3 digits and nine spaces.
Truncated Length Replacement Field Functions – A variant of the
includes the truncate option “T”, where dynamic data shorter than the originally defined
field length will not be padded and the original maximum field length is maintained for
subsequent replacements.
Syntax:
Where:
nn
- Is the format field number, 2 digits.
T
- Truncate option
ss…s
- Is the new string data, followed by a