# From a Natural program, I want to get a list of datasets

**URL:** <https://techcommunity.softwareag.com/t/from-a-natural-program-i-want-to-get-a-list-of-datasets/255465>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [February 23, 2022, 2:07pm UTC](https://techcommunity.softwareag.com/t/from-a-natural-program-i-want-to-get-a-list-of-datasets/255465 "2022-02-23T14:07:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dion\_Kejlberg](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dion_kejlberg/32/525_2.png) [@Dion\_Kejlberg](https://techcommunity.softwareag.com/u/Dion_Kejlberg)\
**Post date:** [February 23, 2022, 2:07pm UTC](https://techcommunity.softwareag.com/t/from-a-natural-program-i-want-to-get-a-list-of-datasets/255465/1 "2022-02-23T14:07:30Z")

</div>

From an online (not batch) session, I would like something like ‘DIR datasetname\*’ to get a list of existing datasets.  
I can Create, delete and write to datasets, but only as long as I have a name.

![image](https://global.discourse-cdn.com/techcommunity/original/3X/5/c/5c0fb4c264636b13f92f4194716b975907f13dc4.png)

---

<div class="post-metadata">

**Author:** ![david.gahring](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@david.gahring](https://techcommunity.softwareag.com/u/david.gahring)\
**Post date:** [February 23, 2022, 2:27pm UTC](https://techcommunity.softwareag.com/t/from-a-natural-program-i-want-to-get-a-list-of-datasets/255465/2 "2022-02-23T14:27:12Z")

</div>

Can you provide more info about your environment? Do you have Natural Process (i.e. Entire System Server)? I’m assuming so, but that would make a huge difference in any suggestions. 😉

Regards,

---

<div class="post-metadata">

**Author:** ![Dion\_Kejlberg](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dion_kejlberg/32/525_2.png) [@Dion\_Kejlberg](https://techcommunity.softwareag.com/u/Dion_Kejlberg)\
**Post date:** [February 24, 2022, 7:20am UTC](https://techcommunity.softwareag.com/t/from-a-natural-program-i-want-to-get-a-list-of-datasets/255465/3 "2022-02-24T07:20:42Z")

</div>

We do have Entire System Server. 3.7.1.0

Natural 8.2.8.2

---

<div class="post-metadata">

**Author:** ![david.gahring](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@david.gahring](https://techcommunity.softwareag.com/u/david.gahring)\
**Post date:** [February 24, 2022, 2:32pm UTC](https://techcommunity.softwareag.com/t/from-a-natural-program-i-want-to-get-a-list-of-datasets/255465/4 "2022-02-24T14:32:17Z")

</div>

Have a look at member MCATLG in library SYSNPE for an example. I think that’s what you’re looking for.

---

<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:** [May 25, 2022, 2:32pm UTC](https://techcommunity.softwareag.com/t/from-a-natural-program-i-want-to-get-a-list-of-datasets/255465/5 "2022-05-25T14:32:50Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
