Originally posted by: repanzer
"repanzer: i have one very basic question. to be honest i do not know it's answer. What is syntax in Type Tree. how can i explain this.."
Well, I hope you wouldn’t ask a question you knew the answer to….unless this is a tech interview.
The easiest way for me to explain this is if you are familiar with X12 EDI.
In X12 EDI, there are a number of delimiters and terminators that are acceptable per the standard. In order to make the type tree accept any of these values, you set up a “syntax” item/field;
In every single X12 interchange, it’s starts off as:
ISA*
Where ISA is the segment identifier and the next character (4th byte) is the record delimiter...ALWAYS. So, if you know the 4th byte in every interchange is the record delimiter, you set up the 4th character as a field. You call it a syntax item.
Now, if you look at any segment in the X12 type tree and see what the delimiter is, because they are all delimited, it is not a literal, like a comma; it is a syntax item, the field that is set as the 4th character. (see attached)
When the map reads in the “delimiter”, it set that value in the 4th byte as the record delimiter for the entire interchange….NOT FILE, interchange, because there may be many interchanges per file, and each may use a different delimiter or terminator (or composite delimiter), which will be “reset”, every time it’s starts to read a new one.
#IBM-Websphere-Transformation-Extender#DataExchange#IBMSterlingTransformationExtender