# Add new fields to file

**URL:** <https://techcommunity.softwareag.com/t/add-new-fields-to-file/99302>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Mainframes, Adabas-Basics-on-Mainframes\
**Created:** [December 19, 2011, 9:01pm UTC](https://techcommunity.softwareag.com/t/add-new-fields-to-file/99302 "2011-12-19T21:01:44Z")\
**Posts on this page:** 5\
**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 19, 2011, 9:01pm UTC](https://techcommunity.softwareag.com/t/add-new-fields-to-file/99302/1 "2011-12-19T21:01:44Z")

</div>

How to add new fields to the file thru jcl?

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:** [December 19, 2011, 9:42pm UTC](https://techcommunity.softwareag.com/t/add-new-fields-to-file/99302/2 "2011-12-19T21:42:58Z")

</div>

[http://techcommunity.softwareag.com/ecosystem/documentation/adabas/ada824mfr/adamf/util/adadbs-NEWFIELD.htm](http://techcommunity.softwareag.com/ecosystem/documentation/adabas/ada824mfr/adamf/util/adadbs-NEWFIELD.htm)

---

<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 19, 2011, 9:45pm UTC](https://techcommunity.softwareag.com/t/add-new-fields-to-file/99302/3 "2011-12-19T21:45:56Z")

</div>

My goal to add new fields to file 134. (example)

I used the utility is ADADBS. Check step2 (RESTFILM).  
The parameter file is ‘TSSDN.SL9.JOBS(DBS220AD)’.

I submitted RESTFILM but getting error from output as:

A D A S A V: Error occurred during execution:

ERROR-138, File 134 not found on save tape

```
       Supply a correct input dataset containing the specified      
       file, or remove the file number from the parameter list.     

```

Pl. see the attached file.

thanks

[For\_Forum\_AddFileld.rtf](https://techcommunity.softwareag.com/uploads/short-url/qEaFUXEg8q3joB7Ovh07CCgwHO2.rtf) (4.19 KB)

---

<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:** [December 21, 2011, 9:25pm UTC](https://techcommunity.softwareag.com/t/add-new-fields-to-file/99302/4 "2011-12-21T21:25:54Z")

</div>

Your attached JCL doesn’t even reference a file 134. It references file 21, and in the parm dataset it \*\*\*'s out the file number as a sample and should not be run as is.

The JCL you shared saves file 21 from one database, restores it to another (have to assume so with different procs), and unlocks file 21.

Where does file 134 come in here?

I underscore my prior recommendation. I know we all try things we don’t fully understand, and I have run my share of ill-advised jobs, but I think there are some really basic things you need to understand even just at a JCL level let alone a utility level, plus some site-specific things like Adabas utility procs and parms.

I don’t feel confident that you understand this at a basic level with what you’ve shared. We are willing to help, and sorry if I sound mean, but I think I am being helpful to you and the company that hired you by saying this. Please get training first.

---

<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/add-new-fields-to-file/99302/5 "2021-04-02T15:01:21Z")

</div>


