# diference between REPEAT and FOR

**URL:** <https://techcommunity.softwareag.com/t/diference-between-repeat-and-for/76702>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [May 13, 2008, 1:51pm UTC](https://techcommunity.softwareag.com/t/diference-between-repeat-and-for/76702 "2008-05-13T13:51:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Breeze](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@Breeze](https://techcommunity.softwareag.com/u/Breeze)\
**Post date:** [May 13, 2008, 1:51pm UTC](https://techcommunity.softwareag.com/t/diference-between-repeat-and-for/76702/1 "2008-05-13T13:51:06Z")

</div>

Hi,  
Please give some main differences between FOR loop and REPEAT…UNTIL  
Thanks,  
Breeze

---

<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:** [May 13, 2008, 2:01pm UTC](https://techcommunity.softwareag.com/t/diference-between-repeat-and-for/76702/2 "2008-05-13T14:01:31Z")

</div>

FOR automatically increments the “loop variable” (which must be a numeric data type) by the gioven amount, REPEAT doesn’t, plus you can spacify any logical condition in the “UNTIL” clause.

---

<div class="post-metadata">

**Author:** ![Breeze](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@Breeze](https://techcommunity.softwareag.com/u/Breeze)\
**Post date:** [May 13, 2008, 2:57pm UTC](https://techcommunity.softwareag.com/t/diference-between-repeat-and-for/76702/3 "2008-05-13T14:57:57Z")

</div>

Thanks for your replay:D

Thanks,  
Breeze

---

<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, 2:49pm UTC](https://techcommunity.softwareag.com/t/diference-between-repeat-and-for/76702/4 "2021-04-02T14:49:26Z")

</div>


