Welcome to the new Com-plete forum!
To get it started, let me share with you one of Natural-4’s best-kept secrets when running in Com-plete:
:idea: You can now read and write sequential files and PDS/PDSE members as well as VSE sublib members, simply by defining them as Natural workfiles:
:arrow: Start Natural with parameter WORK=((2),AM=SMARTS)
:arrow: The dataset/member name must be specified in path notation like this:
DEFINE WORK FILE 2 ‘/MY/PDS/MEMBER’ :!: The PDS or VSE sublib must exist.
For a sequential file:
DEFINE WORK FILE 2 ‘/MY/SEQ/FILE/’
If it doesn’t work for you, check these pitfalls:
:!: Make sure module NCF42APS (or NCF82APS) from the NCF load library is available in the COMPLIB library chain.
:!: If you get a S0C1, then probably an INCLUDE for module PAEAINT is missing from your Natural frontend link job.