DDnames

DD names are specified by prefixing the DD name with "DD:". All the following forms of the prefix are supported:

The DD statement enables you to write C source programs that are independent of the files and input/output devices they will use. You can modify the parameters of a file (such as LRECL, BLKSIZE, and RECFM) or process different files without recompiling your program.

You do not always need to describe the characteristics of the data in files both within the program and outside it. There are, in fact, advantages to describing the characteristics of your data in only one place.

Opening a file by ddname may require the merging of information internal and external to the program. If any conflict is detected that will prevent the opening of a file, fopen() returns a NULL pointer to indicate that the file cannot be opened. See z/OS XL C/C++ Runtime Library Reference for more information on fopen().

If DISP=MOD is specified on a DD statement and if the file is opened in w or wb mode, the DISP=MOD causes the file to be opened in append mode rather than in write mode.
Note: You can open a ddname only with fopen() or freopen(). open() does not interpret ddnames as such.