cobol2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
PARAMCOUNTCHECK Details (↑ Choosing Run-time Behavior)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     You must use this directive if either:
 
     o  the program will be called with a variable number of parameters, or
 
     o  the program contains a Linkage Section, and will be used both as
        a main program run from the command line and as a subprogram
        called from another program.
 
     o  the program will call any program compiled with STICKY-LINKAGE "2"
        specified
 
     Otherwise the program can be compiled with NOPARAMCOUNTCHECK for
     efficiency. A program to be called from a language other than
     COBOL must be compiled with NOPARAMCOUNTCHECK.
 
     Unless you specify the LINKCHECK directive, attempting to reference
     a Linkage Section item that does not exist may result in a system
     hang on DOS, or a protection violation on OS/2.
 
     See also LINKCHECK
              STICKY-LINKAGE
                                    -♦-