# ADADBS utility

**URL:** <https://techcommunity.softwareag.com/t/adadbs-utility/100041>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Mainframes, Adabas-Utilities-on-Mainframes\
**Created:** [March 29, 2012, 12:33am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041 "2012-03-29T00:33:25Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![DN1](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DN1](https://techcommunity.softwareag.com/u/DN1)\
**Post date:** [March 30, 2012, 12:40am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/21 "2012-03-30T00:40:37Z")

</div>

ADADBS ALLOCATE FILE= 55  
ACSIZE = 11B  
DEVICE= 8390

is it 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:** [March 30, 2012, 12:48am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/22 "2012-03-30T00:48:04Z")

</div>

It won’t like the spaces, so that will have to be

```auto
ADADBS ALLOCATE FILE=55 
ACSIZE=11B 
DEVICE=8390
```

and DEVICE is optional, it is only required when you have multiple ASSOs with  
different device types and you want to force ADADBS to allocate that new  
extent on a particular device (=block size), if you have just one ASSO it will  
make no difference, and it will make no difference when you have multiple  
ASSOs of the same device type.

---

<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:** [March 30, 2012, 12:50am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/23 "2012-03-30T00:50:58Z")

</div>

I fact that will have to be either

```auto
ADADBS ALLOCATE FILE=55,ACSIZE=11B,DEVICE=8390
```

or

```auto
ADADBS ALLOCATE FILE=55 
ADADBS ACSIZE=11B 
ADADBS DEVICE=8390
```

---

<div class="post-metadata">

**Author:** ![DN1](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DN1](https://techcommunity.softwareag.com/u/DN1)\
**Post date:** [March 30, 2012, 12:57am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/24 "2012-03-30T00:57:57Z")

</div>

Please note: my assignment was as below:

Device: 8390–Trks/Cyl: 15–ASSO: 3440:14–DATA: 6518:8–Work:10706:5–PLOG/RLOG:10706:5—CLOG: 8904:6–  
TEMP/SORT/DSIM:8904:6–Notes: 1

Setup a job to increase the number of ISN by 12000.  
The utility to be used is ADADBS. Read the manual to find out which utility function to use.  
Use the information provided to calculate how many RABN will be required to increase number of ISN by 12000. Each ISN takes 3 byte.

Previously we had calculate for asso

3440/3 = 1146  
12000/1146=10.47

So I need 11 RABNs for 12000 ISN

Do I need to do same with Data too? Or do not need it.  
This is probably very silly question.

thanks

---

<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:** [March 30, 2012, 1:17am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/25 "2012-03-30T01:17:02Z")

</div>

As Mogens tried to explain, there is absolutely no need to do that manually  
at all, when extents (no matter if ASSO or DATA) for a file run full Adabas will  
automatically create a new one, based on a defined formula, when you  
want to override that automatism and create additional extents of a certain  
size before the current last one runs full you are free to do so.

When what you are doing is all about training yourself on how to use ADADBS ALLOCATE  
than just go ahead and try whatever you like, but there’s no magic, what you do for  
ACSIZE will work just the same way for DSSIZE et al, but if you want to see what it  
does and where you find the new extents in your ADAREP just go ahead 😉

---

<div class="post-metadata">

**Author:** ![DN1](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DN1](https://techcommunity.softwareag.com/u/DN1)\
**Post date:** [March 30, 2012, 1:58am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/26 "2012-03-30T01:58:27Z")

</div>

Here is a JOB

//STEP01 EXEC PGM=ADARUN,REGION=4096K  
//STEPLIB DD DSN=ADABAST.COMMON.LOADLIB,DISP=SHR  
//SYSUDUMP DD SYSOUT=\*  
//DDPRINT DD SYSOUT=\*  
//DDDRUCK DD SYSOUT=\*  
//DDASSOR1 DD DSN=ADABASDB.ADA225.ASSO,DISP=SHR  
//DDDATAR1 DD DSN=ADABASDB.ADA225.DATA,DISP=SHR  
//DDCARD DD DSN=ADABAST.COMMON.CNTRL(DBS225S),DISP=SHR  
—Adabas common cntrl library member DBS225S…  
(ADARUN PROG=ADADBS,PLOGRQ=NO,MODE=SINGLE,DEVICE=8390,SVC=233,DBID=225 ADARUN UEX3=USEREX3 USER EXIT 3 PHONETIC EXIT)  
//DDKARTE DD \*  
ADADBS ALLOCATE FILE=55,ACSIZE=11B,DEVICE=8390  
/\*  
//DDWORKR1 DD DSN=ADABASDB.ADA225.WORK,DISP=OLD  
//\*  
//STEP02 EXEC PGM=IEFBR14  
//D1 DD DSN=ADABASDB.ADA225.ASSO,  
// DISP=(OLD,UNCATLG,UNCATLG)  
//\*

is it ok?

---

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [March 30, 2012, 2:49am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/27 "2012-03-30T02:49:21Z")

</div>

Dawar said:

```auto

Please note: my assignment was as below: 
```

I feel like it’s unfair you are asking us to spoon-feed you the answers, some of which is more like force-feeding because you don’t accept the help easily. I am sure there are points to be had for being resourceful and tapping the community for information as that is a key to success on the job. That said, I believe if L.A. County has given you these assignments as a training course and to test your knowledge and capacity to do the job, if you are successful because we told you what to do and not because you understand it, it’s not fair to anyone and doesn’t prove a thing.

---

<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:** [March 30, 2012, 7:13am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/28 "2012-03-30T07:13:48Z")

</div>

> [@DN](#):
>
> is it ok?

Why don’t you just try it, if it abends it wasn’t then go back and investigate the cause.

---

<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:** [March 30, 2012, 7:29am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/29 "2012-03-30T07:29:39Z")

</div>

This is what I would call a “boolean job”, it will either give you a “yes, works” or “no, does not work”,  
if it were potentially dangerous like INCREASE I would have told you.

The worst thing that can happen is that you may have to get rid of an utility DIB entry,  
but I guess you’ve been down that road before.

The only thing I question is - why do you run this in mode=single ?

---

<div class="post-metadata">

**Author:** ![DN1](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DN1](https://techcommunity.softwareag.com/u/DN1)\
**Post date:** [April 5, 2012, 1:25am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/30 "2012-04-05T01:25:02Z")

</div>

I had done JCL Scan as

//STEP01 EXEC PGM=ADARUN,REGION=4096K  
//STEPLIB DD DSN=ADABAST.COMMON.LOADLIB,DISP=SHR  
//SYSUDUMP DD SYSOUT=\*  
//DDPRINT DD SYSOUT=\*  
//DDDRUCK DD SYSOUT=\*  
//DDASSOR1 DD DSN=ADABASDB.ADA225.ASSO,DISP=SHR  
//DDDATAR1 DD DSN=ADABASDB.ADA225.DATA,DISP=SHR  
//DDCARD DD DSN=ADABAST.COMMON.CNTRL(DBS225S),DISP=SHR  
//DDKARTE DD \*  
ADADBS ALLOCATE FILE=55,ACSIZE=11B,DEVICE=8390  
/\*  
//DDWORKR1 DD DSN=ADABASDB.ADA225.WORK,DISP=OLD  
//\*  
//STEP02 EXEC PGM=IEFBR14  
//D1 DD DSN=ADABASDB.ADA225.ASSO,  
// DISP=(OLD,UNCATLG,UNCATLG)  
//\*

!JCK on above JCL

NO JCL error

I am confused on DISP=(OLD,UNCATLG,UNCATLG)

---

<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 5, 2012, 9:35am UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/31 "2012-04-05T09:35:48Z")

</div>

> [@DN](#):
>
> I am confused on DISP=(OLD,UNCATLG,UNCATLG)

It does not make sense to me either, but again, we here can not guess  
what whoever wrote this had in mind, so it might be a better idea asking  
your technical leads if there is a reason we just don’t see.

---

<div class="post-metadata">

**Author:** ![DN1](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DN1](https://techcommunity.softwareag.com/u/DN1)\
**Post date:** [April 5, 2012, 9:38pm UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/32 "2012-04-05T21:38:24Z")

</div>

We do not need step 2.

I have run job as:

//STEP01 EXEC PGM=ADARUN,REGION=4096K  
//STEPLIB DD DSN=ADABAST.COMMON.LOADLIB,DISP=SHR  
//SYSUDUMP DD SYSOUT=\*  
//DDPRINT DD SYSOUT=\*  
//DDDRUCK DD SYSOUT=\*  
//DDASSOR1 DD DSN=ADABASDB.ADA225.ASSO,DISP=SHR  
//DDDATAR1 DD DSN=ADABASDB.ADA225.DATA,DISP=SHR  
//DDCARD DD DSN=ADABAST.COMMON.CNTRL(DBS225S),DISP=SHR  
//DDKARTE DD \*  
ADADBS ALLOCATE FILE=55,ACSIZE=11B,DEVICE=8390  
//DDWORKR1 DD DSN=ADABASDB.ADA225.WORK,DISP=OLD

//\*

But from 2 hour job is running and I can see following message in log

JOB15746 IEF861I FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO INCS  
JOB15746 IEF863I DSN = ADABASDB.ADA225.WORK INCSIZE RC = 04  
JOB15746 \*IEF099I JOB INCSIZE WAITING FOR DATA SETS

thanks

---

<div class="post-metadata">

**Author:** ![DN1](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DN1](https://techcommunity.softwareag.com/u/DN1)\
**Post date:** [April 5, 2012, 9:39pm UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/33 "2012-04-05T21:39:08Z")

</div>

is it ok to stop job while is running?

---

<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 5, 2012, 10:43pm UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/34 "2012-04-05T22:43:15Z")

</div>

> [@DN](#):
>
> is it ok to stop job while is running?

Of course, the job is not even running, as the message says it is WAITING,  
which is to be expected when DISP=OLD is specified while the nucleus is active.

---

<div class="post-metadata">

**Author:** ![DN1](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DN1](https://techcommunity.softwareag.com/u/DN1)\
**Post date:** [April 5, 2012, 11:01pm UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/35 "2012-04-05T23:01:00Z")

</div>

I cancel the job.  
I check as

n.sd.st

prefix ADA\*

and see that DB is running.  
I ran job again. But not succesful few times. I had made soem changes like I remove //DDWORKR1 DD DSN=ADABASDB.ADA225.WORK,DISP=OLD from the job.

I stop the server and restart get the message is done. I did not catch the time.  
It was in single mode, what is different btw single and multiple mode?  
I think one of mode requires DB down.

---

<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 5, 2012, 11:04pm UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/36 "2012-04-05T23:04:49Z")

</div>

MODE=SINGLE requires the db to be down

---

<div class="post-metadata">

**Author:** ![DN1](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DN1](https://techcommunity.softwareag.com/u/DN1)\
**Post date:** [April 5, 2012, 11:16pm UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/37 "2012-04-05T23:16:22Z")

</div>

that was the reason of hanging job.

Many thanks  
😉

---

<div class="post-metadata">

**Author:** ![DN1](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DN1](https://techcommunity.softwareag.com/u/DN1)\
**Post date:** [April 5, 2012, 11:19pm UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/38 "2012-04-05T23:19:30Z")

</div>

hang on I am running same job with multi mode. DB is up

Job is not done yet but getting similar message in log  
IEF861I FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO INCS  
IEF863I DSN = ADABASDB.ADA225.WORK INCSIZE RC = 04  
\*IEF099I JOB INCSIZE WAITING FOR DATA SETS

---

<div class="post-metadata">

**Author:** ![DN1](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DN1](https://techcommunity.softwareag.com/u/DN1)\
**Post date:** [April 5, 2012, 11:27pm UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/39 "2012-04-05T23:27:43Z")

</div>

do you think DISP=old causing the issue

---

<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 5, 2012, 11:31pm UTC](https://techcommunity.softwareag.com/t/adadbs-utility/100041/40 "2012-04-05T23:31:55Z")

</div>

I know it is, that’s why I pointed you to it 😉

[Previous page](https://techcommunity.softwareag.com/t/adadbs-utility/100041.md?page=1)

[Next page](https://techcommunity.softwareag.com/t/adadbs-utility/100041.md?page=3)
