Work files

Hi All,

I am new to Natural adabas. I wrote one simple program to read and write work files:

There are 2 datasets : EMPLOYEE and DATA. First i am reading these 2 files and i am getting correct results but while writing work file 3, jcl is showing some error.

Error message says that :IGD17101I DATA SET TMC.EMPL.LMN
NOT DEFINED BECAUSE DUPLICATE NAME EXISTS IN CATALOG and NAT1500 Open for WORK file 3 failed S013.

It is the DISP=(NEW,KEEP,OWN) for CMWKF03. Use DISP=SHR if the dataset already exist.