# Unload file Definition

**URL:** <https://techcommunity.softwareag.com/t/unload-file-definition/99260>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Mainframes, Adabas-Basics-on-Mainframes\
**Created:** [December 14, 2011, 8:12pm UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260 "2011-12-14T20:12:12Z")\
**Posts on this page:** 14\
**Page:** 1

<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:** [December 14, 2011, 8:12pm UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/1 "2011-12-14T20:12:12Z")

</div>

Hello,

How we unload the file definition from Predict which we used as input for ADACMP on previously created file?

I have attached the JCL for new file creation we used previously.

Thank You  
[ForForum.rtf](https://techcommunity.softwareag.com/uploads/short-url/r6uZ7Yww2aUOWXpsfGQBShR6lk3.rtf) (3.02 KB)

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [December 14, 2011, 8:45pm UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/2 "2011-12-14T20:45:33Z")

</div>

The compress cards (CMP) are created in Predict with the GEN AC command (we used to call them WAN cards). They are stored in a Natural library and can be exported to a sequential file or PDS via Predict’s PUNCH command. Run a batch Natural step; the cards will be punched to CMWKF01.

```auto
PUNCH member library
```

Rather than use Predict to punch cards for a batch COMPRESS, you can have Predict create the Adabas file definition with GEN AF. There is really little need to punch WAN cards these days.

---

<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:** [December 14, 2011, 10:58pm UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/3 "2011-12-14T22:58:43Z")

</div>

Thanks

Do we need to create member first?

Please see the attached file, our ex DBA used this JCL.

I have also find following member in the Data Set.

I also put member description in the file. My question how he got or from where he got the structure/dictionary of the file.  
[ForForum\_2.rtf](https://techcommunity.softwareag.com/uploads/short-url/8jHdGf75jYMA9yY92mcHNYR54rn.rtf) (3.6 KB)

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [December 14, 2011, 11:36pm UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/4 "2011-12-14T23:36:41Z")

</div>

If Predict is installed, the maintenance of Adabas file and field definitions should be performed there. Call this “meta-data” rather than a “member”. These definitions are Predict object type FI.

Changes may be implemented in Adabas directly from within Predict (with GEN AF, as mentioned before), or in a batch job using ADACMP cards, which can be created by Predict (GEN AC). The ADACMP card deck can be considered a “member”.

The procedure at your shop would be

1 - make file/field changes in Predict  
2 - GEN AC to create the ADACMP cards  
3 - run JCL to punch the ADACMP cards (ie DICPUNCH)  
4 - run JCL to COMPRESS/load the file

---

<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:** [December 14, 2011, 11:50pm UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/5 "2011-12-14T23:50:59Z")

</div>

1. 
  - make file/field changes in Predict

how do we accomplish? Can you give an example?

2 - GEN AC to create the ADACMP cards

What is AC for?

3 - run JCL to punch the ADACMP cards (ie DICPUNCH)  
4 - run JCL to COMPRESS/load the file

Does my first file (newfile) compress and load?  
I have attched the file again. I think its need some changes. So far I am new in JCL.  
Can u help some?

Thanks  
[ForForum\_1.rtf](https://techcommunity.softwareag.com/uploads/short-url/jYe8PUhMEW2rV9JIzS1eHKLfWkE.rtf) (3.6 KB)

---

<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:** [December 15, 2011, 12:00am UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/6 "2011-12-15T00:00:43Z")

</div>

> [@Dawar Naqvi](#):
>
> 1. 
> - make file/field changes in Predict
> 
> how do we accomplish? Can you give an example?
> 
> 2 - GEN AC to create the ADACMP cards
> 
> What is AC for?

[http://techcommunity.softwareag.com/ecosystem/documentation/natural/prd461/overview.htm](http://techcommunity.softwareag.com/ecosystem/documentation/natural/prd461/overview.htm)

I would STRONGLY encourage you to ask your employer to get you  
at least basic training for your job.

---

<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:** [December 15, 2011, 12:03am UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/7 "2011-12-15T00:03:49Z")

</div>

You are correct, I has asked them but due to the bad economic every training in hold from last three years here in US.

But there are some senior people I can get some assist but like to ask correct question. So I will get right help. 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:** [December 15, 2011, 1:07am UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/8 "2011-12-15T01:07:27Z")

</div>

Will it work?  
I like to load an empty file.

//\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
//PROCS JCLLIB ORDER=(NATURALT.PDS.PROCLIB)  
//\*  
//STEP1 EXEC NATURALT,SYS=N2OCLASS,  
// NPARM=‘INTENS=1,AUTO=OFF,DATSIZE=128’  
//CMWKF01 DD DSN=SYSDBAA.TEMP.PREDICT,DISP=OLD  
//SYSIN DD \*  
%\*  
SYSDICBE,TSSCC,NOTELL  
MENU  
LOAD OBJECTTYPE ALL REPLACE=Y  
FIN  
/\*  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Bottom of Data \*\*\*\*\*\*\*\*\*\*\*\*\*\*

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [December 15, 2011, 2:07am UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/9 "2011-12-15T02:07:34Z")

</div>

No, this will not load (create) an Adabas file. SYSDICBE is a utility used to copy meta-data between instances of Predict - for example from Test to Production.

---

<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:** [December 15, 2011, 3:46am UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/10 "2011-12-15T03:46:46Z")

</div>

I modified my first file as below to upload the file.

My JCL is as below:

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Top of Data \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
//TSSDNREP JOB (H1345011000,110,NAURALADABA),ICSDBS.BN58,  
// CLASS=A,MSGCLASS=T,REGION=0M,  
// NOTIFY=TSSDN  
//\*  
/_ROUTE PRINT TEMPSAR  
//_  
//PROCS JCLLIB ORDER=(ADABAST.TEMP.PROCLIB)  
//\*  
//STEP01 EXEC ADAUTILT,UTIL=LOD,DBID=220,MODE=S,ADADBID=ADA220  
//DDEBAND DD DUMMY  
//\*_DDEBAND DD DSN=&&AUS,DISP=(OLD,DELETE)  
//DDKARTE DD \*  
ADALOD LOAD FILE=134  
ADALOD NAME=‘DAWAR\_TST’  
ADALOD MAXISN=500  
ADALOD UISIZE=1B  
ADALOD NISIZE=2B  
ADALOD DSSIZE=1  
ADALOD ASSOPFAC=5  
ADALOD DATAPFAC=10  
ADALOD ISNREUSE=YES  
ADALOD TEMPSIZE=2  
ADALOD SORTSIZE=4  
//_  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Bottom of Data \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

ERROR-081, Error occurred during Opening/Closing of input file  
DDEBAND :  
04 - SEQ: No DD-Statement; DUMMY; UA, IGN(DOS)

Probably misspelling of the DDNAME, incorrect JCL, etc.

Investigate the cause of the error.  
Correct it and rerun the job.

A D A L O D Terminated 2011-12-14 16:43:20

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [December 15, 2011, 4:10am UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/11 "2011-12-15T04:10:09Z")

</div>

DDEBAND cannot be an empty dataset (ie DUMMY). As explained in the documentation, it must contain the output of an ADACMP COMPRESS ([http://techcommunity.softwareag.com/ecosystem/documentation/adabas/ada824mfr/adamf/util/adalod-ReqEx.htm#d0e36097](http://techcommunity.softwareag.com/ecosystem/documentation/adabas/ada824mfr/adamf/util/adalod-ReqEx.htm#d0e36097)).

Go back to your original example, where the first job step was a compress of ADACMP cards.

---

<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:** [December 15, 2011, 5:50am UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/12 "2011-12-15T05:50:05Z")

</div>

can i do without DDEBAND? Actaully I tried but it did not work.

I am at home now.  
I will try following values tomorrow morning after

//DDEBAND DD DSN=&&AUS,DISP=(OLD,DELETE)

//DDAUSBA DD DSN=&&AUS,DISP=(,PASS),UNIT=SYSDA,SPACE=(TRK,(1,1)),  
// DCB=(LRECL=9996,BLKSIZE=10000,RECFM=VB)

---

<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:** [December 15, 2011, 3:56pm UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/13 "2011-12-15T15:56:19Z")

</div>

I added in the above JCL as below but still getting JCL error:

//DDAUSBA DD DSN=&&AUS,DISP=(,PASS),UNIT=SYSDA,SPACE=(TRK,(1,1)),  
// DCB=(LRECL=9996,BLKSIZE=10000,RECFM=VB)

//DDEBAND DD DSN=&&AUS,DISP=(OLD,DELETE)

* * *

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:** [April 2, 2021, 3:01pm UTC](https://techcommunity.softwareag.com/t/unload-file-definition/99260/14 "2021-04-02T15:01:20Z")

</div>

Closed on April 2, 2021, 3:01pm UTC


