Changes for page SplitFile
Last modified by Outhman Moustaghfir on 2024/08/09 17:37
<
>
edited by Outhman Moustaghfir
on 2024/08/09 17:37
on 2024/08/09 17:37
edited by Outhman Moustaghfir
on 2024/08/09 17:26
on 2024/08/09 17:26
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,5 +3,3 @@ 1 -= = 2 - 3 3 = SplitFile Connector Documentation = 4 4 5 5 == Overview == ... ... @@ -23,7 +23,7 @@ 23 23 xmlns:ix="localFunction" 24 24 xmlns:fn="http://www.w3.org/2005/xpath-functions"> 25 25 26 - <Split Bymode="" headers="" footers="" excluded="" included="" endLine="" position ="" size="" optionChar="" ></SplitBy>24 + <Split400 mode="" headers="" footers="" excluded="" included="" endLine="" position ="" size="" optionChar="" ></Split400> 27 27 </ixDOC> 28 28 29 29 {{/code}} ... ... @@ -38,11 +38,11 @@ 38 38 * ((( 39 39 **optionChar : **Define the character used to separate lines in output file, default value is newLine char. 40 40 ))) 41 -* **included :** Include specific lines from the output by defining them in the include attribute. 39 +* **included : :** Include specific lines from the output by defining them in the include attribute. 42 42 * **excluded:** Exclude specific lines from the output by defining them in the exclude attribute. 43 43 * **Position and Size:** Used to locate and define the include in the input file. 44 44 45 -=== 1. Mode: line ===43 +=== 1. Mode: per_identifier === 46 46 47 47 48 48 === Input File Example : === ... ... @@ -277,9 +277,9 @@ 277 277 {{/code}} 278 278 279 279 280 -==== Example 1: without specifying i ncludeattribute ====278 +==== Example 1: without specifying identifiers ==== 281 281 282 -when we don't use i ncludeattribute. 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 .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 . 283 283 284 284 {{{ 285 285 }}} ... ... @@ -291,7 +291,7 @@ 291 291 xmlns:ix="localFunction" 292 292 xmlns:fn="http://www.w3.org/2005/xpath-functions"> 293 293 294 - <Split Bymode="line" headers="UNA;UNB" footers="UNZ1;UNZ" excluded="QTY" includeendLine="'" position ="25" size="9"></SplitBy>292 + <Split400 mode="per_identifier" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="" lineseparator="'" position ="25" size="9"></Split400> 295 295 </ixDOC> 296 296 297 297 {{/code}} ... ... @@ -317,13 +317,13 @@ 317 317 318 318 {{/code}} 319 319 320 -== Example 2: with specifiying i ncludeattribute ==318 +== Example 2: with specifiying identifiers == 321 321 322 322 we don't need to use position and size. 323 323 324 -== 2. Mode: message: ==322 +== 2. Mode: per_bloc: == 325 325 326 -In ** message**ncludenclude and ends when another include is encountered.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. 327 327 328 328 329 329 ==== Example ==== ... ... @@ -336,7 +336,7 @@ 336 336 xmlns:ix="localFunction" 337 337 xmlns:fn="http://www.w3.org/2005/xpath-functions"> 338 338 339 - <Split Bymode="message" headers="UNA;UNB" footers="UNZ1;UNZ" excluded="QTY" includeendLine="'"></SplitBy>337 + <Split400 mode="Per_bloc" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="UNH" lineseparator="'"></Split400> 340 340 </ixDOC> 341 341 342 342 {{/code}} ... ... @@ -343,7 +343,6 @@ 343 343 344 344 === an example of an output file === 345 345 346 - 347 347 {{code language="xml"}} 348 348 UNA +.? ' 349 349 UNB+UNOD 3+5907613200009 14+5907808850002 14+240509 1553+11480134402++DESADV' ... ... @@ -386,18 +386,4 @@ 386 386 387 387 {{/code}} 388 388 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" /> 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" /> <!-- 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" identifier="UNH" headers="UNA;UNB" footers="UNZ" excluded="" included="" size="3" position="1" endLine="'" optionChar="\r\n" /> 401 -{{/code}} 402 - 403 403 === ===