COBOL’s WORKING-STORAGE SECTION is replaced with a DEFINE DATA statement. Because Natural does not have a FILE SECTION, you code READ without an INTO clause and WRITE without a FROM clause. WORK files (as they are called in Natural) are read from and written to disk or tape. They are sequential files, processed essentially the same way as with COBOL
Refer to the following in the statements manual:
READ WORK FILE
WRITE WORK FILE
DEFINE WORK FILE
CLOSE WORK FILE
To access data base files, such as in Adabas, is a little more complicated - for a newbie, that is. The complexities are mostly in the set-up.
On OpenSystems Natural can only deal with “sequential” workfiles and database files.
What “indexed” files are you talking about in relation to an OpenSystems environment ?
That would typically be VSAM files on a mainframe, I suppose, and Natural can deal with
these (requires the Natural for VSAM addon, though), but there is no such thing on
OpenSystems “natively”.