home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / bit / listserv / ibmmain / 2601 < prev    next >
Encoding:
Text File  |  1992-11-09  |  2.1 KB  |  46 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!stanford.edu!unixhub!fnnews.fnal.gov!overload.lbl.gov!zeus.ieee.org!europa.asd.contel.com!gatech!paladin.american.edu!auvm!GMUVAX.BITNET!JURASCHEK
  3. Original_To:  JNET%"Ibm-main@ricevm1"
  4. Original_cc:  JURASCHEK
  5. Message-ID: <IBM-MAIN%92110915341937@RICEVM1.RICE.EDU>
  6. Newsgroups: bit.listserv.ibm-main
  7. Date:         Mon, 9 Nov 1992 16:25:00 EST
  8. Sender:       IBM Mainframe Discussion list <IBM-MAIN@RICEVM1.BITNET>
  9. From:         "David F. Juraschek" <JURASCHEK@GMUVAX.BITNET>
  10. Subject:      Re: Forcing page boundaries in high level code
  11. Lines: 33
  12.  
  13. Oops!  So sorry.
  14. I was not asking how to cause the output to EJECT to the top of a form.
  15. (I can understand the confusion.)
  16.  
  17. I want to know if there is a COBOL and perhaps a PL/I trick - in the code
  18. that is generated by the compiler - to force portions of the object code
  19. to begin on page boundaries.
  20.  
  21. For example, is there some way to make various groups of paragraphs to be
  22. aligned at an even 2K or 4K (or whatever) page.  The object here is to
  23. allow portions of a COBOL program, for example to be loaded into the same
  24. physical page of memory - or at least to begin at the same page.   (And,
  25. this should be for a potentially gigantic COBOL program.)  The academic
  26. reason for this is to potentially reduce paging by a large COBOL (or PL/I)
  27. program because at various points it's only referencing other code which
  28. is within the same Page or group of pages in memory.
  29.  
  30. Alignment is no problem in Assembler and it can be accomplished in the
  31. WORKING STORAGE portion of COBOL without too much hassle.  But how do you
  32. control this kind of alignment in the PROCEDURE DIVISION? (Or similar parts
  33. of a PL/I program?)
  34.  
  35. Again, this is purely an academic question - so please - no debates about
  36. the viability of COBOL or PL/I (or lack thereof) over some other language.
  37.  
  38. And, again, I'm not asking about aligning the compiler print out at the
  39. top of form with EJECT or some other printout command.  These are memory
  40. pages - not paper pages.
  41.  
  42. Thanks.
  43.  
  44. -Dave Juraschek
  45.  IBM Systems - George Mason University
  46.