On Fri, 13 Mar 2009 09:50:52 -0500, Elardus Engelbrecht <[email protected]> wrote:
<SNIP> >2. Other solution is to write a COBOL/REXX program with dynamic allocation >and using a loop of 100000 open/read/write/close. Read up the service >BPXWDYN. > >You can use BPXWDYN in COBOL or REXX. This will give you an opportunity to >read your input ONCE and finish off all your dynamic alloc/write/close of >output datasets with one run with no headache of empty outputs. > > >HTH! > >Groete / Greetings >Elardus Engelbrecht In current Enterprise COBOL, it is not necessary to use BPXWDYN to do dynamic allocation. Using "environment variables", it is possible to specify dynamic allocation information in the program itself. http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR40/4.2.3 http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR40/4.2.3.1 http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/igy3pg40/3.4.2.3 Note that I've done the above in normal batch COBOL (not just UNIX COBOL programs). -- John ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

