Command Reference 5-85
VALIDATE
Purpose Validates a check digit based on check digit scheme.
Syntax VALIDATE
source, type
[
,
[
invalid label
] [
, valid label
] ]
Process The VALIDATE command validates the check digit in
source
, based on the check
digit scheme specified by
type
.
Source
and
Type
can be one of the following:
Source and Type
Description
INPUT Input Buffer
Logical Field Name (TEMP1) Temporary Buffer Field
Logical Field Name (LU1) Lookup Buffer Field
Logical Field Name (PR1) Printer Buffer Field
Number Number prefixed by a number sign (#)
Source
only:
String
An ASCII string delimited with double quotes.
Logical Field Name (Field1)
[Index]
Array Buffer Field
Type must be prefixed with a # sign and can have one of the following values:
ID Scheme ID Scheme ID Scheme
#1 Reserved #9 Custom Check
Digit 5
#17 EAN8 Check Digit
#2 Sum of Digits #10 Custom Check
Digit 6
#18 EAN13 Check
Digit
#3 Sum of Products #11 Custom Check
Digit 7
#19 LAC Check Digit
#4 Reserved #12 Custom Check
Digit 8
#20 Code 39 Check
Digit
#5 Custom Check
Digit 1
#13 Custom Check
Digit 9
#21 MSI Check Digit
#6 Custom Check
Digit 2
#14 Custom Check
Digit 10
#22 Postnet
#7 Custom Check
Digit 3
#15 UPCA Check Digit #23 UPC+Price CD
#8 Custom Check
Digit 4
#16 UPCE Check Digit #24 EAN+Price CD
Optional Fields
Invalid
and
valid labels
are discussed in "Script Flow" earlier in this chapter.
Example
In this example, the printer validates the check digit in the Input Buffer by using the
Sum of Digits check digit scheme.
VALIDATE INPUT #2
See Also
LOWER