COBOL

COBOL

COBOL

COBOL is responsible for the efficient, reliable, secure, and unseen day-to-day operations of the world's economy.

 View Only
Expand all | Collapse all

Relations between the RENT compiler option and REUS linker/binder option

  • 1.  Relations between the RENT compiler option and REUS linker/binder option

    Posted Thu September 29, 2016 05:07 AM

    Hi,

    The Cobol compiler RENT option is mandatory for Cobol CICS programs, and apparently highly recommended for Cobol batch programs (memory allocation above the line).

    However the use of LINKER/BINDER REUS option remains unclear in the various reference materials (even Cobol and CICS).

    Will compile with the Cobol RENT option makes sense if LINKER/BINDER used with REUS=(NONE) ?
    Will compile with the Cobol RENT option requires the LINKER/BINDER REUS=(RENT) option ?

    What are the consequences of each options combinations, for CICS and batch:

    • Cobol RENT, LINKER/BINDER REUS=(NONE) (or NOREUS)
    • Cobol RENT, LINKER/BINDER REUS=(SERIAL) (or REUS)
    • Cobol RENT, LINKER/BINDER REUS=(RENT) (or RENT)

    Thank you in advance for your explanations and clarifications.

    Denis

     

    DenisFALLAI


  • 2.  Re: Relations between the RENT compiler option and REUS linker/binder option

    Posted Mon October 03, 2016 01:59 AM

    I think the documentation needs some woork :-)

     

    Forget the COBOL first, and get to understand what the link-edit/binder does. REUS is used to determine whether an existing module in memory can be used to service a new "call/load" outside of the current run-unit.

    For batch programs, that's not going to mean much directly unless there are multi-threaded batch applications.

    If you use REUS=RENT then COBOL CANCEL won't work. However, if the program is truly re-enterable, that won't matter - and who uses COBOL CANCEL anyway.

     

    The only link between how a COBOL program is compiled and linked/bindered is "manual". In batch programs I can't see that it matters which linkedit/binder option you use. For "online" programs you need to do as you are told, to avoid chaos.

    BillWoodger