Use Binary Data Segments for ANSI X12 maps

About this task

When you load the ANSI X12 275 transaction set into your map, you will notice that it contains a binary data segment with two elements—one for the length of the binary data and one for binary data. The default data type for the length element is “Number” and the maximum length is set to “15.” The default data type for the binary data element is “String” and the default length is “760.”

To generate an EDI segment containing binary data, you must create a binary data segment on the Output side of your map. Then, you must create two elements in the binary segment for these data types:

  • Bin Len, which is for the length (in characters) of the binary segment
  • Bin Data, which is for the binary data

To use BIN segments for ANSI X12 maps:

Procedure

  1. Right-click the BIN segment and select Activate from the submenu to activate the segment.
  2. Right-click the BIN segment and select Properties from the submenu (the EDI Segment Properties dialog box is displayed).
  3. Click the Special tab.
  4. Select the Binary check box and click OK.
    Note: If you select “Binary,” you must define an element of data-type “Bin Length” and another element of data-type “Bin Data.” The “Bin Length” element must precede the “Bin Data” element.
  5. Double-click the BIN01 element (the Element Properties dialog box is displayed).
  6. Select the Validation tab.
  7. From the data-type list, select Bin Len to designate this element as binary length and click OK.
  8. Double-click the BIN02 element (the Element Properties dialog box is displayed).
  9. Select the Validation tab.
  10. From the data-type list, select Bin Data to designate this element as binary data and click OK.