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.
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
1 reply Latest Post - 2013-01-22T19:16:40Z by SystemAdmin
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 PostsACCEPTED ANSWER
Re: what is the difference between "variable" and "literal" in the Terminator2013-01-22T19:16:40Z in response to SystemAdminA 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.