I'm new for WTX.
I don't know what is the difference between "variable" and "literal" in the Terminator syntax object.
Both of them can define more than one value in default property.
Can anyone give me some samples to make it clear?
There are no samples in the IBM document.
Pinned topic what is the difference between "variable" and "literal" in the Terminator
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-22T19:16:40Z at 2013-01-22T19:16:40Z by SystemAdmin
SystemAdmin 110000D4XK6184 Posts
Re: what is the difference between "variable" and "literal" in the Terminator2013-01-22T19:16:40ZThis is the accepted answer. This is the accepted answer.A literal terminator is a terminator that doesn't vary, e.g., it's alway CR-LF or LF. A variable terminator may be any of a limited list of values. Variable terminators are common in EDI data where a record terminator might be a LF, CR-LF, tilde, pipe, etc. The WTX validator reads the data and determines the terminator by matching it to the list of possible terminators. I've rarely, if ever, defined a type tree with variable terminators in 15 years and several dozen WTX clients. IN my experience they don't occur very often except with EDI data and those type trees have always been provided in the EDI add-on packages.
I assume you found the documentation:
Variable Sometimes you do not know what delimiter is used in the data source, especially if you receive that data from an outside source. However, you know all of the possible values that the delimiter could be. You can create an item to represent this delimiter and specify all of the possible values as restrictions of that item. The value of the delimiter in the data is found. To specify an item as a Variable Delimiter: 1. In the Properties view for the delimited group, click in the Delimiter > Item value field. 2. Press Alt and drag the item from the type tree editor into the Item field.