# Unload Periodic Group

**URL:** <https://techcommunity.softwareag.com/t/unload-periodic-group/191495>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Linux, Adabas-Utilities-on-Open-Systems\
**Created:** [November 11, 2016, 10:08am UTC](https://techcommunity.softwareag.com/t/unload-periodic-group/191495 "2016-11-11T10:08:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Scarceriaux1](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@Paul\_Scarceriaux1](https://techcommunity.softwareag.com/u/Paul_Scarceriaux1)\
**Post date:** [November 11, 2016, 10:08am UTC](https://techcommunity.softwareag.com/t/unload-periodic-group/191495/1 "2016-11-11T10:08:11Z")

</div>

What is the most appropriate way to extract an ADABAS file with data fields like periodic group in a text file before reloading it in an ORACLE database ?

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [November 12, 2016, 6:23am UTC](https://techcommunity.softwareag.com/t/unload-periodic-group/191495/2 "2016-11-12T06:23:55Z")

</div>

You have to decide what the resulting RDBMS tables will look like. Typically a PE maps to a new child table with a many to one relationship to the parent table. The key of the resulting PE table is the key of the parent table plus a sequence number corresponding to the index of the PE. So your extract to text files will likely need to write out a text file for the parent record plus a text file for each PE on the parent record as each will be a distinct table in the RDBMS.

MU’s and PE’s with few fields and few (fixed) occurrences are sometimes “flattened out”. That is, given primary record with Account, Year, PE(Amount, Desc), you could map it to a table with Account, Year, Amount01, Desc01, Amount02, Desc02,…Amount12, Desc12. Assuming you have 12 PE occurrences corresponding to months of the year on a Gregorian calendar, of course.

---

<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:37pm UTC](https://techcommunity.softwareag.com/t/unload-periodic-group/191495/3 "2021-04-02T15:37:19Z")

</div>


