Using the ddname in an application
Instead of using data set names or path names in an application,
you can use a ddname; then in the JCL, you associate a specific data
set or file with that ddname.
Note: The parent process's
allocations, for both data sets and files, are not propagated by fork() and are lost on exec(), except for STEPLIB.
You have a choice of two methods for accessing data sets and files
in an application:
- The ANSI C function fopen()
- The OPEN macro