Not being a COBOL person, I could not resist trying the prime number COBOL program previously listed. Working on a zPDT system (based on a rather large laptop) I tried the NA-LINE OCCURS 26214 version and this took .14 seconds CPU, producing about 2800 lines of output. I then tried the NA-LINE OCCURS 3355440 version and this took 4.97 seconds CPU and exceeded my output line count by about 228,000 lines. In both cases the "printed" prime numbers looked like real prime numbers although I did not try to factor any of them. (I did not try the NA-LINE OCCURS 50000000 version!) The CPU times are the emulated IBM Z times for the compiled program execution under z/OS 2.4.
Being very definitely not a COBOL person, I needed to review what goes in "section A" vs "section B" of a COBOL source program. Very interesting. Bill ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN