# \#Adabas-Code-Samples

**URL:** https://techcommunity.softwareag.com/tag/adabas-code-samples/100.md

[Latest](https://techcommunity.softwareag.com/latest.md) · [Categories](https://techcommunity.softwareag.com/categories.md) · [Tags](https://techcommunity.softwareag.com/tags.md)

---

## [Adabas and Node.js](https://techcommunity.softwareag.com/t/adabas-and-node-js/206982)

<div class="topic-metadata">

**Author:** [@Matthias\_Gerth](https://techcommunity.softwareag.com/u/Matthias_Gerth)\
**Replies:** 0\
**Last updated:** [January 21, 2020, 11:29am UTC](https://techcommunity.softwareag.com/t/adabas-and-node-js/206982 "2020-01-21T11:29:05Z")

</div>

We have just released the Adabas access package for Node.js called adabas-tcp. adabas-tcp hides the complexity of the Adabas calls and offers the classic CRUD (Create, Read, Update, Delete) operations for databases. It …

---

## [Adapya now available in github and in Python package index](https://techcommunity.softwareag.com/t/adapya-now-available-in-github-and-in-python-package-index/206487)

<div class="topic-metadata">

**Author:** [@Marbod\_Mueller1](https://techcommunity.softwareag.com/u/Marbod_Mueller1)\
**Replies:** 0\
**Last updated:** [December 13, 2019, 2:17pm UTC](https://techcommunity.softwareag.com/t/adapya-now-available-in-github-and-in-python-package-index/206487 "2019-12-13T14:17:10Z")

</div>

adapya, the Adabas database API for Python, was published here some time ago. In the meantime it has evolved. It now supports both Python2 and Python3. The new adapya is split up in different packages, each relating to…

---

## [Adabas Go-based driver on GITHUB](https://techcommunity.softwareag.com/t/adabas-go-based-driver-on-github/202095)

<div class="topic-metadata">

**Author:** [@anon98178625](https://techcommunity.softwareag.com/u/anon98178625)\
**Replies:** 0\
**Last updated:** [December 13, 2018, 11:06am UTC](https://techcommunity.softwareag.com/t/adabas-go-based-driver-on-github/202095 "2018-12-13T11:06:47Z")

</div>

Hello, on GITHUB in the Software AG tech community page, the Adabas driver for the Go programming language is available now. See: GitHub - SoftwareAG/adabas-go-api: This module provides direct access to Adabas databas…

---

## [Accessing ADABAS file using OBTAIN](https://techcommunity.softwareag.com/t/accessing-adabas-file-using-obtain/201645)

<div class="topic-metadata">

**Author:** [@Prakash\_Parandhaman](https://techcommunity.softwareag.com/u/Prakash_Parandhaman)\
**Replies:** 3\
**Last updated:** [November 8, 2018, 10:03pm UTC](https://techcommunity.softwareag.com/t/accessing-adabas-file-using-obtain/201645 "2018-11-08T22:03:14Z")

</div>

I could see some nat programs using the OBTAIN to access the ADABAS files. Is it good practice to access the ADABAS files using OBTAIN in the Reporting mode ? Please advice

---

## [Linking ADABAS 6.6 with Java using  libadalnkx.s or libadalnk.s shared Library](https://techcommunity.softwareag.com/t/linking-adabas-6-6-with-java-using-libadalnkx-s-or-libadalnk-s-shared-library/201332)

<div class="topic-metadata">

**Author:** [@VINOTH\_SIVAKUMAR](https://techcommunity.softwareag.com/u/VINOTH_SIVAKUMAR)\
**Replies:** 1\
**Last updated:** [October 19, 2018, 5:15am UTC](https://techcommunity.softwareag.com/t/linking-adabas-6-6-with-java-using-libadalnkx-s-or-libadalnk-s-shared-library/201332 "2018-10-19T05:15:31Z")

</div>

Can anyone provide code samples to invoke ADABAS from Java using the Shared Libraries libadalnkx.s or libadalnk.s . I am working on POC to migrate COBOL to Java where existing COBOL program interacts with ADABAS. I am u…

---

## [adapya: Adabas API for Python with LOB Demo Center Example](https://techcommunity.softwareag.com/t/adapya-adabas-api-for-python-with-lob-demo-center-example/78909)

<div class="topic-metadata">

**Author:** [@Marbod\_Mueller1](https://techcommunity.softwareag.com/u/Marbod_Mueller1)\
**Replies:** 15\
**Last updated:** [October 18, 2018, 8:37am UTC](https://techcommunity.softwareag.com/t/adapya-adabas-api-for-python-with-lob-demo-center-example/78909 "2018-10-18T08:37:35Z")

</div>

What is adapya? With adapya you can access Adabas databases from Python programs using the Adabas API. It comes with sample programs to show its use and demonstrates new Adabas features like reading and storing of larg…

---

## [Regarding ISN Buffer limit  (Adabas Vista Error : +0249).](https://techcommunity.softwareag.com/t/regarding-isn-buffer-limit-adabas-vista-error-0249/200120)

<div class="topic-metadata">

**Author:** [@Megha\_CF](https://techcommunity.softwareag.com/u/Megha_CF)\
**Replies:** 4\
**Last updated:** [July 19, 2018, 5:44pm UTC](https://techcommunity.softwareag.com/t/regarding-isn-buffer-limit-adabas-vista-error-0249/200120 "2018-07-19T17:44:44Z")

</div>

Hi All, I have loaded one record in adabas file which has ISN value greater than 2,147,483,647. I am receiving adabas response +0249 (Adabas Vista Error). 02 ADA-CTRL-ADDITIONS-2 X(4) .. …

---

## [COBOL Accessing ADABAS](https://techcommunity.softwareag.com/t/cobol-accessing-adabas/76270)

<div class="topic-metadata">

**Author:** [@Andreina](https://techcommunity.softwareag.com/u/Andreina)\
**Replies:** 19\
**Last updated:** [July 18, 2018, 7:20pm UTC](https://techcommunity.softwareag.com/t/cobol-accessing-adabas/76270 "2018-07-18T19:20:32Z")

</div>

Can any of you send me a sample program on how a COBOL program accesses an ADABAS file.

---

## [Adabas file number access](https://techcommunity.softwareag.com/t/adabas-file-number-access/199917)

<div class="topic-metadata">

**Author:** [@Anushka\_Pathak](https://techcommunity.softwareag.com/u/Anushka_Pathak)\
**Replies:** 0\
**Last updated:** [July 2, 2018, 2:11pm UTC](https://techcommunity.softwareag.com/t/adabas-file-number-access/199917 "2018-07-02T14:11:49Z")

</div>

Hi, Can someone share the code sample to access all the file number through Adabas native sql in cobol program. Regards, Anushka

---

## [Java Direct Call interface](https://techcommunity.softwareag.com/t/java-direct-call-interface/79718)

<div class="topic-metadata">

**Author:** [@anon98178625](https://techcommunity.softwareag.com/u/anon98178625)\
**Replies:** 9\
**Last updated:** [May 3, 2018, 8:42am UTC](https://techcommunity.softwareag.com/t/java-direct-call-interface/79718 "2018-05-03T08:42:04Z")

</div>

Hello community, the Java Direct Call (JDC) interface is a set of Java classes and methods. It allows you to develop Adabas direct calls in Java. The set of Java classes and modules provides the same functionality as th…

---

## [Safe way to implement an auto-incremented ID Generation](https://techcommunity.softwareag.com/t/safe-way-to-implement-an-auto-incremented-id-generation/194942)

<div class="topic-metadata">

**Author:** [@Rok\_Purkeljc](https://techcommunity.softwareag.com/u/Rok_Purkeljc)\
**Replies:** 6\
**Last updated:** [June 6, 2017, 2:17pm UTC](https://techcommunity.softwareag.com/t/safe-way-to-implement-an-auto-incremented-id-generation/194942 "2017-06-06T14:17:01Z")

</div>

Hello, I’m writing a natural Programm which generates a unique ID for each record and writes this record into an Adabas Table. I’m using a rather simple mechanism to determine the next ID: READ (1) TABLE DESC BY ID ADD…

---

## [how to count record in natural on adabas file](https://techcommunity.softwareag.com/t/how-to-count-record-in-natural-on-adabas-file/186609)

<div class="topic-metadata">

**Author:** [@Mister\_Ramon](https://techcommunity.softwareag.com/u/Mister_Ramon)\
**Replies:** 4\
**Last updated:** [February 3, 2016, 12:59am UTC](https://techcommunity.softwareag.com/t/how-to-count-record-in-natural-on-adabas-file/186609 "2016-02-03T00:59:38Z")

</div>

is it possible? in sql I use select count(1) from sql\_table, but in natural , how can I do? I’ ve a file adabas with 400.000 records. if i do read adabas\_file add 1 to #numrec end-read write #numrec or rd. re…

---

## [variable definitions](https://techcommunity.softwareag.com/t/variable-definitions/184640)

<div class="topic-metadata">

**Author:** [@Joseba\_Albizua](https://techcommunity.softwareag.com/u/Joseba_Albizua)\
**Replies:** 1\
**Last updated:** [October 24, 2015, 8:34am UTC](https://techcommunity.softwareag.com/t/variable-definitions/184640 "2015-10-24T08:34:23Z")

</div>

Hi, I’m new at natural enviroment and i’m reading Programming Guide (Version 8.2.5 May 2015) manual. At this manual it’s said in one example that 1 #INT1 (I1) /\* Integer, 1 byte. 1 #INT2 (I2) /\* Integer, 2 bytes. …

---

## [ACBX :](https://techcommunity.softwareag.com/t/acbx/180880)

<div class="topic-metadata">

**Author:** [@Trevor\_Martin](https://techcommunity.softwareag.com/u/Trevor_Martin)\
**Replies:** 1\
**Last updated:** [March 4, 2015, 7:41pm UTC](https://techcommunity.softwareag.com/t/acbx/180880 "2015-03-04T19:41:04Z")

</div>

Hi guys, can anyone please point me to any samples of natural code that will make acbx calls. My research thus far has only found a simple example from SAG in Lib SYSEXT called USR1043P and it only issues a close. I tho…

---

## [Printing map](https://techcommunity.softwareag.com/t/printing-map/176810)

<div class="topic-metadata">

**Author:** [@Eda\_Bilgin](https://techcommunity.softwareag.com/u/Eda_Bilgin)\
**Replies:** 4\
**Last updated:** [June 13, 2014, 3:45pm UTC](https://techcommunity.softwareag.com/t/printing-map/176810 "2014-06-13T15:45:49Z")

</div>

Hi all, I would like to print data displayed by a map. Is there a way to code printing with input using map and PF key together ? You can see on the picture, I used pf1 for returning menu and pf4 for store data. If I w…

---

## [Data Extraction from ADABAS](https://techcommunity.softwareag.com/t/data-extraction-from-adabas/173438)

<div class="topic-metadata">

**Author:** [@Ananya\_Agrawal](https://techcommunity.softwareag.com/u/Ananya_Agrawal)\
**Replies:** 3\
**Last updated:** [November 22, 2013, 2:51pm UTC](https://techcommunity.softwareag.com/t/data-extraction-from-adabas/173438 "2013-11-22T14:51:33Z")

</div>

Hi, I am new to the ADABAS Natural, need a help on how to extract the data from ADABAS. What are the possible ways and how PE and MUs will be extracted? Thanks

---

## [how would u write a programo achieve the following  in Adabas Natural](https://techcommunity.softwareag.com/t/how-would-u-write-a-programo-achieve-the-following-in-adabas-natural/172551)

<div class="topic-metadata">

**Author:** [@josepnass](https://techcommunity.softwareag.com/u/josepnass)\
**Replies:** 2\
**Last updated:** [September 10, 2013, 12:55pm UTC](https://techcommunity.softwareag.com/t/how-would-u-write-a-programo-achieve-the-following-in-adabas-natural/172551 "2013-09-10T12:55:31Z")

</div>

please read the following specs: Program Spec; Please write a Natural program geared to run as a batch process. The program is to generate two reports, update the database Status file and generate an extract file. Pr…

---

## [.NET C# front end to access Adabas data using SQL Gateway (Connx)](https://techcommunity.softwareag.com/t/net-c-front-end-to-access-adabas-data-using-sql-gateway-connx/172362)

<div class="topic-metadata">

**Author:** [@Randy\_Haefka](https://techcommunity.softwareag.com/u/Randy_Haefka)\
**Replies:** 0\
**Last updated:** [August 21, 2013, 11:24pm UTC](https://techcommunity.softwareag.com/t/net-c-front-end-to-access-adabas-data-using-sql-gateway-connx/172362 "2013-08-21T23:24:30Z")

</div>

Hello, Does anyone have any examples of how to access adabas data using a .NET C# front end and SQL Gateway? Thank you, Randy

---

## [Adabas V7 x V8 differences](https://techcommunity.softwareag.com/t/adabas-v7-x-v8-differences/94446)

<div class="topic-metadata">

**Author:** [@J-R](https://techcommunity.softwareag.com/u/J-R)\
**Replies:** 1\
**Last updated:** [August 20, 2013, 2:03am UTC](https://techcommunity.softwareag.com/t/adabas-v7-x-v8-differences/94446 "2013-08-20T02:03:20Z")

</div>

Where can I find Assembler DSECTS for the new V8 layouts of GCB, FCB, FDT, WORK, PLOG and ADASAV output file? TIA João

---

## [View adabse records](https://techcommunity.softwareag.com/t/view-adabse-records/93842)

<div class="topic-metadata">

**Author:** [@Fasi](https://techcommunity.softwareag.com/u/Fasi)\
**Replies:** 5\
**Last updated:** [May 3, 2013, 1:38pm UTC](https://techcommunity.softwareag.com/t/view-adabse-records/93842 "2013-05-03T13:38:44Z")

</div>

I am new in adabas world, anyone tell me that how can I view employee database records using adabase DBA Workbanch on windows XP?

---

## [programm](https://techcommunity.softwareag.com/t/programm/95039)

<div class="topic-metadata">

**Author:** [@swan](https://techcommunity.softwareag.com/u/swan)\
**Replies:** 12\
**Last updated:** [January 10, 2013, 6:44am UTC](https://techcommunity.softwareag.com/t/programm/95039 "2013-01-10T06:44:12Z")

</div>

can any one tell me recursion in natural with example of factorial … please give me sourc code…\[/b\]

---

## [Rexx Adabas Program](https://techcommunity.softwareag.com/t/rexx-adabas-program/99853)

<div class="topic-metadata">

**Author:** [@Michael\_Schmitz](https://techcommunity.softwareag.com/u/Michael_Schmitz)\
**Replies:** 0\
**Last updated:** [March 10, 2012, 12:47pm UTC](https://techcommunity.softwareag.com/t/rexx-adabas-program/99853 "2012-03-10T12:47:55Z")

</div>

Hello everybody, I would like to know if somebody could provide me a code sample of a z/VM Rexx program that calls adabas. Best regards, Michael

---

## [ADABAS COBOL sample under UNIX](https://techcommunity.softwareag.com/t/adabas-cobol-sample-under-unix/93722)

<div class="topic-metadata">

**Author:** [@Osman\_Sanchez](https://techcommunity.softwareag.com/u/Osman_Sanchez)\
**Replies:** 3\
**Last updated:** [October 18, 2011, 8:57pm UTC](https://techcommunity.softwareag.com/t/adabas-cobol-sample-under-unix/93722 "2011-10-18T20:57:54Z")

</div>

Hello!!! I would like to know if someone of you have any idea about how access ADABAS with Cobol program on UNIX platform. May be all of you think about Natural so the problem is that the customer will migrate a Cobol/A…

---

## [Add a file](https://techcommunity.softwareag.com/t/add-a-file/93892)

<div class="topic-metadata">

**Author:** [@Fasi](https://techcommunity.softwareag.com/u/Fasi)\
**Replies:** 4\
**Last updated:** [October 24, 2010, 9:36am UTC](https://techcommunity.softwareag.com/t/add-a-file/93892 "2010-10-24T09:36:49Z")

</div>

Can anybody tell me that how can I add file in adabas with the following fields, EmpID, EMPName, JobTitle, JobDescription, Dept. And how can I use this file in natural for insert, view, delete, update records?

---

## [nat1108 caused by fetch return](https://techcommunity.softwareag.com/t/nat1108-caused-by-fetch-return/94767)

<div class="topic-metadata">

**Author:** [@khathutshelo](https://techcommunity.softwareag.com/u/khathutshelo)\
**Replies:** 2\
**Last updated:** [October 24, 2010, 9:29am UTC](https://techcommunity.softwareag.com/t/nat1108-caused-by-fetch-return/94767 "2010-10-24T09:29:30Z")

</div>

define data local 1 #name (a25/10) 1 #choice (a1/10) 1 #error (l) end-define \* repeat input using map ‘map1’ #choice() #name() perform check-mark if #error-found= true reinput #message mark #choice(#j) / …

---

## [nat1108 caused by fetch return](https://techcommunity.softwareag.com/t/nat1108-caused-by-fetch-return/94769)

<div class="topic-metadata">

**Author:** [@khathutshelo](https://techcommunity.softwareag.com/u/khathutshelo)\
**Replies:** 1\
**Last updated:** [September 21, 2010, 8:40pm UTC](https://techcommunity.softwareag.com/t/nat1108-caused-by-fetch-return/94769 "2010-09-21T20:40:11Z")

</div>

define data local 1 #name (a25/10) 1 #choice (a1/10) 1 #error (l) end-define \* repeat input using map ‘map1’ #choice() #name() perform check-mark if #error-found= true reinput #message mark #choice(#j) / …

---

## [Calling Adabas from C programs on z/OS](https://techcommunity.softwareag.com/t/calling-adabas-from-c-programs-on-z-os/93828)

<div class="topic-metadata">

**Author:** [@Marbod\_Mueller1](https://techcommunity.softwareag.com/u/Marbod_Mueller1)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 5:02pm UTC](https://techcommunity.softwareag.com/t/calling-adabas-from-c-programs-on-z-os/93828 "2010-06-11T17:02:17Z")

</div>

One frequent question of Adabas users is how to issue Adabas calls from C programs on mainframe. The document in the attached zip file tries to answer the question illustrating it with 2 sample programs which are includ…

---

## [Files for processing ADAREP XML output (ADA822)](https://techcommunity.softwareag.com/t/files-for-processing-adarep-xml-output-ada822/92450)

<div class="topic-metadata">

**Author:** [@Marbod\_Mueller1](https://techcommunity.softwareag.com/u/Marbod_Mueller1)\
**Replies:** 0\
**Last updated:** [December 29, 2009, 8:29pm UTC](https://techcommunity.softwareag.com/t/files-for-processing-adarep-xml-output-ada822/92450 "2009-12-29T20:29:07Z")

</div>

With Adabas V8.2 the ADAREP utility can output the database report and checkpoint information as XML files. Attached to this post is a zip file containing further information and cascading style sheet, XML schema and XS…

---

## [I want a Cobol sample to Write a C5 record in PLOG](https://techcommunity.softwareag.com/t/i-want-a-cobol-sample-to-write-a-c5-record-in-plog/79235)

<div class="topic-metadata">

**Author:** [@PacoH](https://techcommunity.softwareag.com/u/PacoH)\
**Replies:** 1\
**Last updated:** [October 14, 2008, 10:04pm UTC](https://techcommunity.softwareag.com/t/i-want-a-cobol-sample-to-write-a-c5-record-in-plog/79235 "2008-10-14T22:04:57Z")

</div>

Hi : Could you provide me a Cobol (or Natural) sample program that writes a C5 record in PLOG ? Thanks in advance Francisco
