# VSAM File in NATURAL Program

**URL:** <https://techcommunity.softwareag.com/t/vsam-file-in-natural-program/99420>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [January 8, 2012, 6:21am UTC](https://techcommunity.softwareag.com/t/vsam-file-in-natural-program/99420 "2012-01-08T06:21:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shashank\_Gite1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/shashank_gite1/32/351_2.png) [@Shashank\_Gite1](https://techcommunity.softwareag.com/u/Shashank_Gite1)\
**Post date:** [January 8, 2012, 6:21am UTC](https://techcommunity.softwareag.com/t/vsam-file-in-natural-program/99420/1 "2012-01-08T06:21:50Z")

</div>

Hi… How can we use VSAM (KSDS, ESDS, RRDS) files in NATURAL module? Is it the same as Sequential file using WORK FILE?

Thanks  
Shashank

---

<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:** [January 8, 2012, 10:50am UTC](https://techcommunity.softwareag.com/t/vsam-file-in-natural-program/99420/2 "2012-01-08T10:50:57Z")

</div>

No, you need the&nbsp;&nbsp;&nbsp;[Natural for VSAM](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat427mf/dbms/nvs-over.htm)&nbsp;&nbsp;&nbsp;interface.

---

<div class="post-metadata">

**Author:** ![Shashank\_Gite1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/shashank_gite1/32/351_2.png) [@Shashank\_Gite1](https://techcommunity.softwareag.com/u/Shashank_Gite1)\
**Post date:** [March 20, 2012, 3:04am UTC](https://techcommunity.softwareag.com/t/vsam-file-in-natural-program/99420/3 "2012-03-20T03:04:59Z")

</div>

Thanks Wolf. I think the link you provided is for online mode. I need to write a Natural program for batch which will be reading many input work files. some of these work files will be sequential files and some files will be VSAM. Can I treat all files same?

Thanks  
Shan

---

<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:** [March 20, 2012, 3:25am UTC](https://techcommunity.softwareag.com/t/vsam-file-in-natural-program/99420/4 "2012-03-20T03:25:46Z")

</div>

No. You still need the Natural for VSAM add-on to access VSAM files directly from Natural no matter if it’s in batch or under a TP monitor.

---

<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/vsam-file-in-natural-program/99420/5 "2021-04-02T15:01:24Z")

</div>


