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
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg27022735