# Flat File Delimiter Issue

**URL:** <https://techcommunity.softwareag.com/t/flat-file-delimiter-issue/108070>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [February 26, 2003, 4:23am UTC](https://techcommunity.softwareag.com/t/flat-file-delimiter-issue/108070 "2003-02-26T04:23:54Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [July 26, 2007, 9:54pm UTC](https://techcommunity.softwareag.com/t/flat-file-delimiter-issue/108070/21 "2007-07-26T21:54:36Z")

</div>

“how to specify the string I´m looking for?”

What are you looking for?? specfying inString for the tokenize?? you got to do tricky for it. like first replacing linefeed in your file etc…and make as one big string …its a tedious process though…

-RMG

---

<div class="post-metadata">

**Author:** ![Vivian\_Satie1](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Vivian\_Satie1](https://techcommunity.softwareag.com/u/Vivian_Satie1)\
**Post date:** [July 26, 2007, 11:22pm UTC](https://techcommunity.softwareag.com/t/flat-file-delimiter-issue/108070/22 "2007-07-26T23:22:21Z")

</div>

No…

I have already a stringlist, after using the pub.string.tokenize. Now I must search in this results (0,1,2…) util find the word ‘date’ in some of this fields.

---

<div class="post-metadata">

**Author:** ![Percio\_Castro](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@Percio\_Castro](https://techcommunity.softwareag.com/u/Percio_Castro)\
**Post date:** [July 27, 2007, 6:37pm UTC](https://techcommunity.softwareag.com/t/flat-file-delimiter-issue/108070/23 "2007-07-27T18:37:14Z")

</div>

One solution:

1. Set a variable (ex. found) to false
2. Use a LOOP to loop over the string list
3. In the loop, use a BRANCH statement to check if ‘found’ is true
4. If found is ‘true’, then it means that the current string in the list is the value you want. Map the string and EXIT the loop
5. Still in the loop, use another BRANCH statement to see if the current string in the list is the label you want (ex. order). If so, then set ‘found’ to true.

Does this make sense?

- Percio

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/flat-file-delimiter-issue/108070/24 "2021-04-02T15:05:03Z")

</div>

Closed on April 2, 2021, 3:05pm UTC



[Previous page](https://techcommunity.softwareag.com/t/flat-file-delimiter-issue/108070.md?page=1)
