Search and Replace Group Separator

Article ID: 37469155

Issue / Question

Customer would like to search and replace the group separator <GS> with a printable character. Example asterisk (*)

Applicable To

DataWedge for Windows v3.x and later. Example devices included MC3xxx; MC9xxx, WT4xxx series

Resolution / Answer

Overview:

In some cases, a customer would like to replace or remove the Group Separator <GS> embedded in their barcodes. A <GS> is a non-printable character to separate parts of a barcode which do not have a fixed length.

In the below GS1-128 sample bar code, the Application Identifier (AI240 indicates that the GS1 AI data field contains additional item identification which is variable in length up to 30 characters.

As per the GS1 General Specifications, all Element Strings of variable length must be delimited when followed by another Element String in a single bar code. The delimiter shall be a Function 1 Symbol Character (FNC1) which is transmitted in the decoded data string as <GS> (ASCII character 29, seven-bit character set ISO 646).

Example:



In DataWedge with log level set to Data, you can save to a text file, DWLog.txt, the data read from the input scanner or imager. Scanning the above sample barcode shows the <GS> = ^]



Solution:

In DataWedge, enable Advanced Data Formatting (ADF) and create a Rule to find the string \x1d and replace it with an asterisk.




Steps:


1. Open DataWedge.
2. Tap Advanced Configuration> Profiles>.
3. Select target profile. In this example, will use Profile0.
4. Tap Routes> Route0> Process> Advanced (ADF).
5. Tap Enabled to enable ADF. (you should see a check mark just before the number 1.).
6. Tap Rules> Rule0> Actions> Add new.
7. Select Replace string.
8. Open Replace string.
9. Tap Find string.
10. Type \x1d then tap Save.
11.Tap Replace with.
12. Enter asterisk * then tap Save.
13. Tap Move...
14. Select Up (make sure the action Send remaining is placed last).




15. Tap Back until 'saving changes, please wait...' is displayed.
16. Tap Home> Exit.
17. Tap OK on 'Are you sure you want to exit?' pop-up window.
18. Make sure DataWedge status is Ready. If not, tap Running to start DataWedge).


At this point, the <GS> will be replaced with an asterisk.




 

+ Applicable Products

  • DataWedge
  • MC3000 Mobile Device
  • MC3100 Mobile Computer
  • MC3200 Mobile Computer
  • MC55A0
  • MC55N0
  • MC65 Mobile Computer
  • MC67 NA Mobile Computer
  • MC67NA Base Model Mobile Computer
  • MC67ND Mobile Computer
  • MC70 Mobile Computer
  • MC9090 CE Mobile Computer
  • MC9090 WM Mobile Computer
  • MC9190-G Mobile Computer
  • MC9200 Mobile Computer
  • WT4000 Wearable Mobile Computer
  • WT4090
  • WT41N0
  • WT41N0 VOW
  • Workabout Pro 4 Mobile Computer