<
From version < 6.5 >
edited by Outhman Moustaghfir
on 2024/08/09 17:26
To version < 10.1
edited by Outhman Moustaghfir
on 2024/08/09 17:37
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,3 +1,5 @@
1 += =
2 +
1 1  = SplitFile Connector Documentation =
2 2  
3 3  == Overview ==
... ... @@ -21,7 +21,7 @@
21 21   xmlns:ix="localFunction"
22 22   xmlns:fn="http://www.w3.org/2005/xpath-functions">
23 23  
24 - <Split400 mode="" headers="" footers="" excluded="" included="" endLine="" position ="" size="" optionChar="" ></Split400>
26 + <SplitBy mode="" headers="" footers="" excluded="" included="" endLine="" position ="" size="" optionChar="" ></SplitBy>
25 25  </ixDOC>
26 26  
27 27  {{/code}}
... ... @@ -36,11 +36,11 @@
36 36  * (((
37 37  **optionChar : **Define the character used to separate lines in output file, default value is newLine char.
38 38  )))
39 -* **included : :** Include specific lines from the output by defining them in the include attribute.
41 +* **included :** Include specific lines from the output by defining them in the include attribute.
40 40  * **excluded:** Exclude specific lines from the output by defining them in the exclude attribute.
41 41  * **Position and Size:** Used to locate and define the include in the input file.
42 42  
43 -=== 1. Mode: per_identifier ===
45 +=== 1. Mode: line ===
44 44  
45 45  
46 46  === Input File Example : ===
... ... @@ -275,9 +275,9 @@
275 275  {{/code}}
276 276  
277 277  
278 -==== Example 1: without specifying identifiers ====
280 +==== Example 1: without specifying include attribute ====
279 279  
280 -when we don't use identifiers . it means for each output file we are going to have headers and footers and also for the identifiers we will defined them by position and size so for each line at a specific position and with a size this is the identifier .
282 +when we don't use include attribute. it means for each output file we are going to have headers and footers and also for the include we will defined them by position and size so for each line at a specific position and with a size this is the include .
281 281  
282 282  {{{
283 283   }}}
... ... @@ -289,7 +289,7 @@
289 289   xmlns:ix="localFunction"
290 290   xmlns:fn="http://www.w3.org/2005/xpath-functions">
291 291  
292 - <Split400 mode="per_identifier" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="" lineseparator="'" position ="25" size="9"></Split400>
294 + <SplitBy mode="line" headers="UNA;UNB" footers="UNZ1;UNZ" excluded="QTY" include ="" endLine="'" position ="25" size="9"></SplitBy>
293 293  </ixDOC>
294 294  
295 295  {{/code}}
... ... @@ -315,13 +315,13 @@
315 315  
316 316  {{/code}}
317 317  
318 -== Example 2: with specifiying identifiers ==
320 +== Example 2: with specifiying include attribute ==
319 319  
320 320  we don't need to use position and size.
321 321  
322 -== 2. Mode: per_bloc: ==
324 +== 2. Mode: message: ==
323 323  
324 -In **per_bloc** mode, the file is split into sections based on a specified identifier. Each output file begins with the start of an identifier and ends when another identifier is encountered.
326 +In **message** mode, the file is split into sections based on a specified include . Each output file begins with the start of an include and ends when another include is encountered.
325 325  
326 326  
327 327  ==== Example ====
... ... @@ -334,7 +334,7 @@
334 334   xmlns:ix="localFunction"
335 335   xmlns:fn="http://www.w3.org/2005/xpath-functions">
336 336  
337 - <Split400 mode="Per_bloc" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="UNH" lineseparator="'"></Split400>
339 + <SplitBy mode="message" headers="UNA;UNB" footers="UNZ1;UNZ" excluded="QTY" include ="UNH" endLine="'"></SplitBy>
338 338  </ixDOC>
339 339  
340 340  {{/code}}
... ... @@ -341,6 +341,7 @@
341 341  
342 342  === an example of an output file ===
343 343  
346 +
344 344  {{code language="xml"}}
345 345  UNA +.? '
346 346  UNB+UNOD 3+5907613200009 14+5907808850002 14+240509 1553+11480134402++DESADV'
... ... @@ -383,4 +383,18 @@
383 383  
384 384  {{/code}}
385 385  
389 +==== Other Examples : ====
390 +
391 +
392 +{{code language="xml"}}
393 +<!-- Write a file for each type of segment -->
394 +<SplitBy mode="line" headers="UNA;UNB" footers="UNZ" excluded="UNA;UNB;UNZ" included="" size="3" position="1" endLine="'" optionChar="\r\n" ></SplitBy>
395 +
396 +<!-- Write a file for each type of record where the line identifier (Position 1 to 8) is different -->
397 +<SplitBy mode="line" size="8" position="1" ></SplitBy> <!-- The default endLine is the carriage return -->
398 +
399 +<!-- Write a file for each message starting with UNH with repeated envelope for each -->
400 +<SplitBy mode="message" headers="UNA;UNB" footers="UNZ" excluded="" included="" size="3" position="1" endLine="'" optionChar="\r\n" ></SplitBy>
401 +{{/code}}
402 +
386 386  === ===
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian