integer function fdds_datadefn(name, data_dict, data_alias)
If data_alias is specified (i.e. "out_data"), the user is allowed to override the filename (i.e.out_data= name). If an override is not defined, a name is derived automatically. The name is based upon the data_dict name and media. If the dictionary is a regular file, then the data is output to another regular file. The new filename is created using DATA_PATH, DATA_SUFFIX, and the last component of the dictionary name. If the dictionary is NOT a regular file (i.e. pipe, tape, ...), or if data_alias defines a blank name, then binary data is attached to the output dictionary, i.e. they share the same file, pipe stream, or tape media.
The values for DATA_PATH and DATA_SUFFIX are retrieved from the extended dictionaries.
The function returns name. It contains the override defined by the user, or the filename created by fdds_datadefn.
character*1024 name, data_dict data_dict = 'line73' ... ! change alias used to default data path ! default is "DATA_PATH" j = fdds_printf('data_path=', 'CM_DATA_PATH') ! create data filename (suffix is "-") or ! retrieve override "out_data= filename" j = fdds_datadefn(name, data_dict, 'out_data')