IBM (mainframe) and dynamic / static CALLs

From: William M. Klein (wmklein_at_nospam.netcom.com)
Date: 06/15/04


Date: Tue, 15 Jun 2004 19:27:54 GMT

Just because there may be some confusion - from another thread, the following is
true for IBM mainframes (slight variations exist for VSE and VM - so this is
*most* accurate for MVS, OS/390, and z/OS) *and* COBOL (other languages and
products may include additional variations)

1) The older (no longer available in current compilers) RES/NORES compiler
option determined whether internal calls to IBM supplied "run-time routines"
were resolved at link-edit or run-time. (Current compilers require that almost
all IBM supplied run-time support be accessed at run-time)

2) There are internal differences between the (more recent) BINDER and the
Linkage-Editor, but these *normally* have little or no impact on COBOL
programmers.

3) When the NODYNAM compiler option is specified,
   CALL "literal" statements are resolved at linkage/binding time
   CALL identifier statements are resolved at run-time

4) When the DYNAM compiler option is specified, all CALL statements are resolved
at run-time

5) The NCAL linkage editor statement can cause "normally" link-edit resolution
to be "skipped". Although this used to be used "medium-often" - its use (as far
as I know) has diminished in recent years. There may be other
Binder/Linkage-Editor control statements that can impact all of what I am saying
in this note.

6) IBM *clearly* documents that compiling with the NODYNAM compiler option
results in semantics that are NOT ANSI/ISO (any variation) conforming. This is
PRIMARILY due to the fact that CANCEL statements are ignored. OTOH, NODYNAM is
required for some IBM products such as CICS.

   ***

To the extent that these generalizations apply to other environments (IBM or
otherwise) depends entirely on the Operating System facilities, the compiler,
and the run-times.

-- 
Bill Klein
 wmklein <at> ix.netcom.com


Relevant Pages

  • Re: IBM XL Fortran
    ... Is anyone here using XL Fortran? ... It has been a long time since I had an oportunity to work with IBM XL ... 3rd-hand data, is that it was/is a solid, well-maintained compiler. ... loop: 4 0 ...
    (comp.lang.fortran)
  • Linus Torvalds on OO
    ... The following was posted on the IBM mainframe group regarding Linus ... programming services like TCPIP were written in either C or C++. ... What is the language you ... C++ would have allowed us to use certain compiler features ...
    (comp.lang.cobol)
  • Re: IBM XL Fortran
    ... Is anyone here using XL Fortran? ... 3rd-hand data, is that it was/is a solid, well-maintained compiler. ... We do, however, have a cadre of IBM folks and contractors that are involved in that sort of thing. ... loop: 4 0 ...
    (comp.lang.fortran)
  • Re: COMPILER PERFORMANCE
    ... IBM did produce a statement to inform users how to write efficient code ... That was before the compiler was released. ... Fortran to S/360 PL/I. ...
    (comp.lang.pl1)
  • Re: Fw: Copy replacing without pseudo code
    ... Personally, given IBM and other vendor actions, I believe it is a cash ... COBOL compiler simply will not do what it isn't supposed ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)