Paxar TCMPCL2PR manual Option 30 Padding Data, Sample Use for Padding, 30,L/R,character p

Models: TCMPCL2PR

1 217
Download 217 pages 52.55 Kb
Page 82
Image 82

MPCLII Packet Reference Manual

Option 30 (Padding Data) –––––––––––––––––––––––––––––––––––

You can add characters to one side of a field to "pad" the field. Padding allows you to fill in the remaining spaces when the entered data does not fill an entire field.

If a variable length field is not completely filled with batch data, this option fills the remaining positions in the field with the character designated by Option 30.

Syntax

R,30,L/R,"character" p

 

R1.

R

Field Option Header.

 

R2.

30

Option 30.

 

 

R3.

L/R

Indicates type of padding

 

 

 

L

Pad field on left side

 

 

 

R

Pad field on right side

 

R4.

"character"

Pad character must be within the 0 - 255 decimal range

 

 

 

and enclosed inside quotation marks.

NOTE: Do not use on fixed length fields.

Example R,30,L,"X" p

Pads data with an "X" on the left side of the field.

Sample Use for Padding

If you have a variable length bar code that you want to occupy a fixed amount of space on the supply, use pad characters. If the maximum number of characters in the bar code is 15, but the batch record only has 10 characters, the padding option fills the remainder of the field with pad characters.

5-6

Page 82
Image 82
Paxar TCMPCL2PR manual Option 30 Padding Data, Sample Use for Padding, 30,L/R,character p, Example R,30,L,X p