# Get Mainframe Dataset Name (DSN) in program

**URL:** <https://techcommunity.softwareag.com/t/get-mainframe-dataset-name-dsn-in-program/61873>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [January 25, 2007, 12:12am UTC](https://techcommunity.softwareag.com/t/get-mainframe-dataset-name-dsn-in-program/61873 "2007-01-25T00:12:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thespin](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@thespin](https://techcommunity.softwareag.com/u/thespin)\
**Post date:** [January 25, 2007, 12:12am UTC](https://techcommunity.softwareag.com/t/get-mainframe-dataset-name-dsn-in-program/61873/1 "2007-01-25T00:12:59Z")

</div>

Hello, amigos.

I know one can write an assembler program, and I assume call it from within Natural batch, to get DSN, Procname, Stepname and other batch JCL information.

However, I am hoping that Natural already has a module or function(s) to accomplish this task.

Please advise.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Daniel\_Wilson](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@Daniel\_Wilson](https://techcommunity.softwareag.com/u/Daniel_Wilson)\
**Post date:** [January 25, 2007, 12:18am UTC](https://techcommunity.softwareag.com/t/get-mainframe-dataset-name-dsn-in-program/61873/2 "2007-01-25T00:18:41Z")

</div>

They have an add-on product called Entire System Server that gives you that capability in Natural. It does all sorts of system level stuff like that. It is also comes with Natural ISPF which gives you an ISPF-like editor inside of Natural.

---

<div class="post-metadata">

**Author:** ![thespin](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@thespin](https://techcommunity.softwareag.com/u/thespin)\
**Post date:** [January 25, 2007, 12:34am UTC](https://techcommunity.softwareag.com/t/get-mainframe-dataset-name-dsn-in-program/61873/3 "2007-01-25T00:34:50Z")

</div>

Thanks, Daniel, for your kind response. I don’t believe we have that add-on product.

Does anyone know if there is a module or function included in the standard installation?

---

<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:** [January 25, 2007, 2:33am UTC](https://techcommunity.softwareag.com/t/get-mainframe-dataset-name-dsn-in-program/61873/4 "2007-01-25T02:33:35Z")

</div>

Alas, there is no such functionality.

---

<div class="post-metadata">

**Author:** ![thespin](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@thespin](https://techcommunity.softwareag.com/u/thespin)\
**Post date:** [January 25, 2007, 2:57am UTC](https://techcommunity.softwareag.com/t/get-mainframe-dataset-name-dsn-in-program/61873/5 "2007-01-25T02:57:01Z")

</div>

Alas and alas …

🙂

But you never know the miracle some clever guy (Oooh! Was that sexist? Mea Culpa!) has wrought. I am still hoping …

Anyone ?

---

<div class="post-metadata">

**Author:** ![wkk](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wkk](https://techcommunity.softwareag.com/u/wkk)\
**Post date:** [January 25, 2007, 10:26pm UTC](https://techcommunity.softwareag.com/t/get-mainframe-dataset-name-dsn-in-program/61873/6 "2007-01-25T22:26:09Z")

</div>

you should convince your IT boss, that you need Entire System Server.

Using this tool, you can read/write Datasets or PDS members, you can submit JCL, and read Jobs from JES queue into NATURAL.

And there are many other functions with it, which are operating system related like IEBCOPY or IDCAMS interface to NATURAL.

---

<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:41pm UTC](https://techcommunity.softwareag.com/t/get-mainframe-dataset-name-dsn-in-program/61873/7 "2021-04-02T14:41:01Z")

</div>


