IBM Support

Using ReadBlock and WriteBlock with XML data - Sterling Gentran:Server for Microsoft Windows

White Papers


Abstract

This White Paper describes how to process XML data using ReadBlock and WriteBlock with Sterling Gentran:Server for Microsoft Windows.

Content

When the translator processes XML data, before any translation is done, the translator will internally convert the XML data to UNICODE. A single byte non-Unicode character when converted to Unicode will be a double-byte character. When using the extended rule functions ReadBlock and WriteBlock, this must be taken into consideration.

The ReadBlock function reads a block of data (segment or record) from the input file and places it into the argument of a string variable. The WriteBlock function writes the data contained in the argument of a string variable to the output file. The ReadBlock and WriteBlock functions are used in conjunction with each other to pass a block of data from the input file to the output file without compliance checking or testing for proper syntax. Together these functions provide a more efficient alternative of using “wild card” segments, which are typically implemented in build and break maps.

Original Publication Date

28 September 2015

[{"Product":{"code":"SS6V3G","label":"Sterling Gentran:Server for Microsoft Windows"},"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Component":"Not Applicable","Platform":[{"code":"PF033","label":"Windows"}],"Version":"5.3.1;5.3;5.2","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg27022735