# Allocation of work file in Natural

**URL:** <https://techcommunity.softwareag.com/t/allocation-of-work-file-in-natural/60117>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [August 17, 2005, 7:05pm UTC](https://techcommunity.softwareag.com/t/allocation-of-work-file-in-natural/60117 "2005-08-17T19:05:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saran](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@Saran](https://techcommunity.softwareag.com/u/Saran)\
**Post date:** [August 17, 2005, 7:05pm UTC](https://techcommunity.softwareag.com/t/allocation-of-work-file-in-natural/60117/1 "2005-08-17T19:05:29Z")

</div>

Hello,

I understand that allocation of work files for a Natural program would be defined in JCL with DD names CMWKF01, CMWKF02 etc etc.

Is there any other way to define work files or rather is there an option of creating/allocating work files from natural environmnet.

Thanks in advance,  
Saran

---

<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:** [August 17, 2005, 8:14pm UTC](https://techcommunity.softwareag.com/t/allocation-of-work-file-in-natural/60117/2 "2005-08-17T20:14:29Z")

</div>

USR2021N in Library SYSEXT provides what you are looking for.

---

<div class="post-metadata">

**Author:** ![Vallish](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@Vallish](https://techcommunity.softwareag.com/u/Vallish)\
**Post date:** [November 10, 2005, 4:45am UTC](https://techcommunity.softwareag.com/t/allocation-of-work-file-in-natural/60117/3 "2005-11-10T04:45:14Z")

</div>

Where to I find this library? Is it something that is available in all versions of natural and by default?

---

<div class="post-metadata">

**Author:** ![Venkatesan\_Devaraj1](https://avatars.discourse-cdn.com/v4/letter/v/848f3c/32.png) [@Venkatesan\_Devaraj1](https://techcommunity.softwareag.com/u/Venkatesan_Devaraj1)\
**Post date:** [November 10, 2005, 12:38pm UTC](https://techcommunity.softwareag.com/t/allocation-of-work-file-in-natural/60117/4 "2005-11-10T12:38:52Z")

</div>

> [@vallishar](#):
>
> Where to I find this library? Is it something that is available in all versions of natural and by default?

Check in from main menu:  
\_ User Exit Examples SYSEXT

I think generally developers are not permitted to log in to this library.

---

<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:** [November 10, 2005, 2:47pm UTC](https://techcommunity.softwareag.com/t/allocation-of-work-file-in-natural/60117/5 "2005-11-10T14:47:20Z")

</div>

Right, SYSEXT is available on all platforms on all versions of Natural, but may be protected by NATURAL Security. The 2nd possibility is that SYSEXT isn’t defined to NATURAL Security at all, in which case noone can “see” it.

---

<div class="post-metadata">

**Author:** ![Melo](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Melo](https://techcommunity.softwareag.com/u/Melo)\
**Post date:** [March 2, 2006, 11:54pm UTC](https://techcommunity.softwareag.com/t/allocation-of-work-file-in-natural/60117/6 "2006-03-02T23:54:08Z")

</div>

Hi Wolfgang,

The example USR2021P in SYSEXT resolves any of my problems, but its runs in MVS only.  
Exists a similar solution for VSE?

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 3, 2006, 12:39am UTC](https://techcommunity.softwareag.com/t/allocation-of-work-file-in-natural/60117/7 "2006-03-03T00:39:35Z")

</div>

> [@Melo](#):
>
> The example USR2021P in SYSEXT resolves any of my problems, but its runs in MVS only.  
> Exists a similar solution for VSE?

Unfortunately - no.

The operating system interface used by USR2021N isn’t available on VSE.

---

<div class="post-metadata">

**Author:** ![florian\_gaulier](https://avatars.discourse-cdn.com/v4/letter/f/a8b319/32.png) [@florian\_gaulier](https://techcommunity.softwareag.com/u/florian_gaulier)\
**Post date:** [May 24, 2007, 6:20pm UTC](https://techcommunity.softwareag.com/t/allocation-of-work-file-in-natural/60117/8 "2007-05-24T18:20:07Z")

</div>

Hello,  
do you have some examples of code that use USR2021 to allocate and read a file in TP mode (/batch)

---

<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:40pm UTC](https://techcommunity.softwareag.com/t/allocation-of-work-file-in-natural/60117/9 "2021-04-02T14:40:15Z")

</div>


