IMHO defining two FD's wins the simplicity and clarity medal. However I used 
the subroutine method in the (distant!) past to change the DDNAME on the fly:
CLOSE FD-FILE-NAME.
MOVE IN-REGION TO DDNAME-SUFFIX.
CALL 'FDFIXUP' USING FD-FILE-NAME, DDNAME.
OPEN OUTPUT FD-FILE-NAME.
e.g. to write / output each region's report (-section) to its own DD-statement 
(RJE remote printing / routing, microfiche). I don't know but expect it to 
still work in the current COBOL releases.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to