# Purpose of iteration in convertToValue

**URL:** <https://techcommunity.softwareag.com/t/purpose-of-iteration-in-converttovalue/110000>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [December 23, 2009, 11:49am UTC](https://techcommunity.softwareag.com/t/purpose-of-iteration-in-converttovalue/110000 "2009-12-23T11:49:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Epicurean](https://avatars.discourse-cdn.com/v4/letter/e/7cd45c/32.png) [@Epicurean](https://techcommunity.softwareag.com/u/Epicurean)\
**Post date:** [December 23, 2009, 11:49am UTC](https://techcommunity.softwareag.com/t/purpose-of-iteration-in-converttovalue/110000/1 "2009-12-23T11:49:01Z")

</div>

Can anyone explain me the purpose of “iterate” in convertToValue ?

---

<div class="post-metadata">

**Author:** ![Martin\_Wroblinski](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/martin_wroblinski/32/613_2.png) [@Martin\_Wroblinski](https://techcommunity.softwareag.com/u/Martin_Wroblinski)\
**Post date:** [December 23, 2009, 1:38pm UTC](https://techcommunity.softwareag.com/t/purpose-of-iteration-in-converttovalue/110000/2 "2009-12-23T13:38:18Z")

</div>

The flat file can iterate over large files processing one chunk (defined by the top level record and all of it’s childs in a hierarchical structure) at a time, so not the whole file is loaded into memory at once (Requires using a stream as input to make sense).  
Details on how to use it can be found in the Flat\_File\_Schema\_Developers\_Guide - Handling Large Flat Files.

---

<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:** [December 23, 2009, 8:23pm UTC](https://techcommunity.softwareag.com/t/purpose-of-iteration-in-converttovalue/110000/3 "2009-12-23T20:23:43Z")

</div>

Apart from above said…you should set [COLOR=#ff3333]“iterator” to true

for example handling large files in case TN largefile config (tspace storage)

wm.b2b.editn:getTspace (edidata- object stream)  
Repeat Step  
–\>convertToValues (iterator=true)

HTH,  
RMg  
 [/COLOR]

---

<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/purpose-of-iteration-in-converttovalue/110000/4 "2021-04-02T15:05:59Z")

</div>


