# adding another sort container

**URL:** <https://techcommunity.softwareag.com/t/adding-another-sort-container/58031>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Linux, Adabas-Utilities-on-Open-Systems, Adabas-Natural-Cloud\
**Created:** [June 1, 2006, 10:32pm UTC](https://techcommunity.softwareag.com/t/adding-another-sort-container/58031 "2006-06-01T22:32:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Andrea](https://techcommunity.softwareag.com/u/Andrea)\
**Post date:** [June 1, 2006, 10:32pm UTC](https://techcommunity.softwareag.com/t/adding-another-sort-container/58031/1 "2006-06-01T22:32:01Z")

</div>

While using the adamup utility, we received the following error message.

ADAMUP-I-SORTSIZE, Current SORT size 45 Megabytes  
%ADAMUP-I-SORTSIZE, Needed SORT size 74 Megabytes (for incore sort : LWP=40292K)  
%ADAMUP-F-SRTFIL, sortfile too small  
%ADAMUP-I-NOCHNG, nothing changed

%ADAMUP-I-IOCNT, 2 IOs on dataset MUPDTA  
%ADAMUP-I-IOCNT, 3 IOs on dataset ASSO  
%ADAMUP-I-ABORTED, 1-JUN-2006 04:14:53, elapsed time: 00:00:01

I think we need to add another sort container, but I can’t find any directions on how to do this. Can somebody tell me how to add another sort container?

Thank you,  
Andrea

---

<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:** [June 2, 2006, 1:06am UTC](https://techcommunity.softwareag.com/t/adding-another-sort-container/58031/2 "2006-06-02T01:06:18Z")

</div>

No, you don’t need to “add” another SORT container, because SORT (as well as TEMP), in contrast to ASSO / DATA / WORK are “independent” containers, they are not tied to a database, only used by utilities.

So you can just format a bigger SORT1, for example using

```auto
adafrm sortsize = (80M)
```

or you can format multiple containers with

```auto
adafrm sortsize = (40M,40M)
```

---

<div class="post-metadata">

**Author:** ![Andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Andrea](https://techcommunity.softwareag.com/u/Andrea)\
**Post date:** [June 2, 2006, 1:36am UTC](https://techcommunity.softwareag.com/t/adding-another-sort-container/58031/3 "2006-06-02T01:36:26Z")

</div>

Thank you for the quick reply. This is the message we get when we try that command.

adafrm dbid=005 sortsize=(100m)  
sh: Syntax error: `(’ is not expected.

So we tried it without the parenthesis and got this message. Any suggestions.

adafrm dbid=005 sortsize=100m  
%ADAFRM-I-STARTED, 1-JUN-2006 18:55:54, Version 3.2.2.19 (HP-UX 32bit)

%ADAFRM-E-MISSPAR, missing mandatory parameter ASSOSIZE  
%ADAFRM-E-MISSPAR, missing mandatory parameter DATASIZE  
%ADAFRM-E-MISSPAR, missing mandatory parameter WORKSIZE  
%ADAFRM-I-ABORTED, 1-JUN-2006 18:55:54, elapsed time: 00:00:00

Again, thanks,  
Andrea

---

<div class="post-metadata">

**Author:** ![Andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Andrea](https://techcommunity.softwareag.com/u/Andrea)\
**Post date:** [June 2, 2006, 1:36am UTC](https://techcommunity.softwareag.com/t/adding-another-sort-container/58031/4 "2006-06-02T01:36:48Z")

</div>

Thank you for the quick reply. This is the message we get when we try that command.

adafrm dbid=005 sortsize=(100m)  
sh: Syntax error: `(’ is not expected.

So we tried it without the parenthesis and got this message. Any suggestions.

adafrm dbid=005 sortsize=100m  
%ADAFRM-I-STARTED, 1-JUN-2006 18:55:54, Version 3.2.2.19 (HP-UX 32bit)

%ADAFRM-E-MISSPAR, missing mandatory parameter ASSOSIZE  
%ADAFRM-E-MISSPAR, missing mandatory parameter DATASIZE  
%ADAFRM-E-MISSPAR, missing mandatory parameter WORKSIZE  
%ADAFRM-I-ABORTED, 1-JUN-2006 18:55:54, elapsed time: 00:00:00

Again, thanks,  
Andrea

---

<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:** [June 2, 2006, 2:09am UTC](https://techcommunity.softwareag.com/t/adding-another-sort-container/58031/5 "2006-06-02T02:09:21Z")

</div>

A number of things:

- don’t specify a DBID

- if you want to format SORT only, don’t start adafrm, then enter the parameters, specify the entire command at once:

```auto
adafrm sortsize=80m
```

In that case it won’t complain about the parenthesis either,

```auto
adafrm sortsize=(80m)
```

will do just fine as well

---

<div class="post-metadata">

**Author:** ![Andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Andrea](https://techcommunity.softwareag.com/u/Andrea)\
**Post date:** [June 2, 2006, 2:35am UTC](https://techcommunity.softwareag.com/t/adding-another-sort-container/58031/6 "2006-06-02T02:35:01Z")

</div>

When we run the command it adds another SORT file without the extension of the DBID. Is that correct ?

---

<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:** [June 2, 2006, 2:49am UTC](https://techcommunity.softwareag.com/t/adding-another-sort-container/58031/7 "2006-06-02T02:49:27Z")

</div>

Whatever you decide to name it is “correct” 😉

If you don’t export a SORTn environment variable, ADAFRM will create a container named SORTn in the CWD.

---

<div class="post-metadata">

**Author:** ![Andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Andrea](https://techcommunity.softwareag.com/u/Andrea)\
**Post date:** [June 2, 2006, 3:59am UTC](https://techcommunity.softwareag.com/t/adding-another-sort-container/58031/8 "2006-06-02T03:59:15Z")

</div>

Thank you very much that worked !!! Appreciate your quick response !  
😃😃😃

---

<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:39pm UTC](https://techcommunity.softwareag.com/t/adding-another-sort-container/58031/9 "2021-04-02T14:39:00Z")

</div>


