Ensemble EDIFACT Development Guide
Settings for EDIFACT Business Operations
Provides reference information for settings of EDIFACT business operations.
EDIFACT business operations provide the following settings:
The remaining settings are either common to all business operations or are determined by the type of adapter. For information, see:
(File and FTP only) If set to True, when writing a message that has a batch parent, output the batch headers first, and follow up with the batch trailers when triggered by the final batch parent header message or by a file name change. All child messages of a batch parent message are written out unless already written previously while Auto Batch Parent Segs
(File and FTP only) The target file name. The File Path
adapter setting determines the path for this file; File Name
determines the name. File Name
can include Ensemble time stamp specifiers. If you leave File Name
blank, the default uses the time stamp specifier %f_%Q
is the name of the data source, in this case the input filename
is the literal underscore character, which will appear in the output filename
indicates ODBC format date and time
In substituting a value for the format code %f
, Ensemble strips out any of the characters |,?,\,/,:,[,],<,>,&,,,;,NUL,BEL,TAB,CR,LF
, replacing spaces with underscores (_
) and slashes (/
) with hyphens (-
). When the output file is being saved on an OpenVMS system, Ensemble replaces colons (:
) with hyphens (-
). Otherwise, colons (:
) become dots (.
No Fail While Disconnected
A string specifying characters to be used as separators for encoding outbound EDIFACT documents.
||Data Element Separator
||+ (plus sign)
||? (question mark)
||appendix to Segment Terminator
||\r\n (new line)
If the Separators
string is empty, the separator values supplied within each EDIFACT document will be used.
Any characters in positions 6 and 7 will be appended to the Segment Terminator
. By default \r\n
occupy these positions where \r
(ASCII 13) represents a carriage return and \n
(ASCI 10) represents a line feed. These characters resolve to a new line such that each segment is represented on its own line in output.
A question mark (?
) also acts as an escape for characters reserved as separators. Ensemble will automatically escape any reserved characters in an EDIFACT message that were not previously separators. Conversely, Ensemble will un-escape any characters that were previously reserved but are no longer. For example, if ^
was the default Component Separator
in a document and you set :
to override it then any :
characters will be escaped as ?:
, any ^
separators will be converted to :
, and any escaped ?^
characters will be converted to ^