DFsort + dynamic allocation
Joerg,
You could always write the "facts" that you want Sort to know into both
data sets. Then, whichever Sort program is in use will read its
preferred input options file.
Or, you could use SELECT OPTIONAL with a file status clause defined and
open the two data sets for input, i-o, or extend. File Status will be
'00' if the file can be opened successfully, and '05' if the file is
missing. (For i-o or extend, the file will have been created if you use
the CBLQDA run time option.)
|