on 02-11-2009 12:03 PM
Hi there
I would like to know, is it possible with fcc to set the endSeparator's value to the first 2 char of each line, and if it stars with some value it's a new record?
Eg. If I have:
012938489
029786789
029979748
01 would be the header and 02 would be the body of the record. But it can contain multipe 01's and 02's so I have to check if it starts with 02 it must create a new node in die xml..
Hope this makes sence.
Regards,
Jan
Hi Jan
Yes This is possible, to implement a Scenarion like this in the FCC set the following:
Record Set Structure: HEADER,,ITEMS,
Then in the Table
HEADER.fieldNames = ID,REST
HEADER.fieldFixedLengths = 2, 7 (This is the lengt of filed below)
HEADER.keyField=01 (Identifies a new header Line)
ITEMS.fieldNames = ID,REST
ITEMS.fieldFixedLengths = 2, 7 (This is the lengt of filed below)
ITEMS.keyField=02 (Identifies a new header Line)
<RecordSet>
<HEADER>
<ID>1</ID>
<REST>FB01</REST>
</HEADER>
<ITEMS>
<ID>02</ID>
<REST>9786789</REST>
</ITEMS>
<ITEMS>
<ID>02</ID>
<REST>9979748</REST>
</ITEMS>
</LINE_ITEMS>
</RecordSet>
Thanks
Damien
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.