Ulrich Krueger wrote:
My COBOL is getting a little rusty from disuse ... but, (1) shouldn't the FD clause in the sample program below contain DATA RECORDS ARE x, y, z (where x, y, z refer to the 01-level record layout descriptions?
Whoa! That's way out of date! The compiler figures out what the records are simply by the presence of the 01 level(s) below the FD.
(2) what about the clause RECORD VARYING FROM 59 TO 1500 CHARACTERS Shouldn't the values inlcude the 4 bytes RDW, in other words, shouldn't it read RECORD VARYING FROM 63 TO 1504 CHARACTERS ???
No. The programmer [theoretically] has no access to the RDW; the compiler makes the necessary adjustments.
I'd appreciate some refresher on that and I'd also appreciate if the OP would be so good and post a fragment of the code that works for him, after all the bugs have been worked out, just so we can all learn from it.
Hmmm. Interested in a class? Just two days of your time and we can get you up to date with the changes to COBOL since COBOL II was introduced through the latest Enterprise COBOL compiler. Details at: http://www.trainersfriend.com/COBOL_Courses/d704descr.htm Kind regards, -Steve Comstock
Regards, Ulrich Krueger Mainframe Systems Services National Semiconductor Corp. Santa Clara, CA 95051 Tel: (408) 721-8071 Email: [EMAIL PROTECTED]
---------------------------------------------------------------------- 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

