Micro Focus Run Time Switches

The Micro Focus run time switches are listed here numerically, you may browse them, click on the link to go directly to the error code or you may use the search feature of your browser to search for the information.

  • 0, 1, 2, ... 8 Programmable switches
  • A Choose ANSI file handling and status codes
  • A1 Display trailing spaces
  • B, B1 Skip locked record
  • B2 Choose the sorting algorithm
  • C Enable screens longer than 25 lines
  • C1 Nonstandard size screens
  • C2 Disable COBOL text window
  • C4 Sets screen into 43-line mode
  • C5 Sets screen into 50-line mode
  • D Invoke the ANSI COBOL Debug module
  • D1 Control search method for .dll files
  • D2 Disable DLL-cancel error reporting
  • E Execute code containing S-level errors
  • /E Signal-handling stack size
  • F Validate numeric data in intermediate code
  • /F Change file open limit
  • G Reduce the size of I/O buffers
  • /H Set maximum heap space on OS/2
  • I1 Change program search order
  • I2 Redirect RTS errors to STDERR
  • K1 Use old IBM PC keyboard handling
  • K2 Use extended IBM PC keyboard handling
  • K3 Enable Shift+Ctrl+Break behavior
  • K4 Pause on RTS error
  • L Make I/O errors return to program
  • L1 Enable the exception popup on OS/2
  • L2 Determine record terminator for LS files
  • L5 Handle LEVEL II COBOL files
  • L6 Specify subprogram search order
  • M Free up memory on DOS
  • M2 Disable paging of active programs
  • /M Change default number of heaps on OS/2
  • N Insert nulls in line sequential files
  • O Disable divide-by-zero error
  • P Use high-level printer I/O
  • P1 Sound system bell using the BIOS
  • P2 Enable logical cancels
  • /P Specify address of port for security key
  • R Retry locked record until available
  • S2 Disable video "snow" protection
  • S3 Enable video "snow" protection
  • S5 Use ansi.sys-compatible console I/O
  • S6 Change DISPLAY UPON CRT attribute behavior
  • /S Change default stack size
  • T Insert tabs in line sequential files

  • 0 Programmable Switches

    Sets the corresponding COBOL switch when the program is entered.

    Properties: Default: All off Environment: All

    Remarks: These switches enable the COBOL switches 0-8 that you defined in the Special-Names paragraph of your program (see your Language Reference for details). You can specify these switches in any order, but each individual switch must be preceded by a sign.


    A ANSI File Status Switch

    Implements file handling and status codes according to the particular ANSI standard for which your program was compiled.

    Properties: Default: On Environment: 16-bit run-time systems

    Remarks: If your program was compiled with the ANS85 directive, ANSI'85 file status values are returned. If switch A is off, ANSI'74 status values are returned.


    A1 Display Trailing Spaces Switch

    Disables the display of trailing spaces by causing DISPLAY ... UPON CONSOLE statements to strip off any trailing spaces in the data item being displayed before outputting the data to the screen.

    Properties: Default: On Environment: 16-bit run-time systems

    Remarks: This switch provides compatibility with earlier COBOL systems from Micro Focus. When this switch is off, the trailing spaces are included in the display, as required by the ANSI COBOL Standard.


    B, B1 Skip Locked Record Switches

    Causes the record pointer to be updated past any locked record encountered when using the READ NEXT statement.

    Properties: Default: Off Environment: All

    Remarks: Set the B switch for indexed sequential files open INPUT or I-O. Set the B1 switch for indexed sequential files open INPUT. Setting either of these switches permits a file to be sequentially read, even if another process has records locked in that file.

    A file status of "locked record" is returned when a locked record is read when the B switch is set; a file status of "00" is returned when a locked record is read when the B1 switch is set.

    Note: This switch also affects relative and record sequential files when your program is compiled with the CALLFH directive set.


    B2 Alternative Sorting Mechanism

    Changes the sort algorithm used by the run-time system to one which is more suitable for dealing with huge sorts.

    Properties: Default: Off Environment: 16-bit run-time systems

    Remarks: Normally sorts are optimized to make use of all free memory. This is faster for small sorts. However, when performing a sort on data which is many times the size of free memory, this optimization requires that you have free disk space which is at least twice the size of the data records being sorted.

    Setting the B2 switch on optimizes disk usage during a sort so that you only require free disk space which is roughly equal to the size of the data being sorted. Moreover, because less paging to disk occurs, it speeds up large sorts.


    C Large Screen Switch

    Enables the use of screens longer than the traditional 25 lines.

    Properties: Default: Off Environment: 16-bit run-time systems.

    Remarks: This switch is available for use only with the shared run-time system, which by default treats all screens as 25 lines long. The static linked system always handles screens of any length.

    The screen width cannot be altered; only screens 80 columns wide are supported.


    C1 Nonstandard Screens Switch

    Enables the run-time system to execute with any screen mode or size.

    Properties: Default: Off Environment: 16-bit run-time systems.

    Remarks: Most system software (for example Animator) does not function correctly using screens of more or less than 80 columns. Enhanced accept/display operations function with any screen size.


    C2 COBOL Text Window Switch

    Disables the creation of a COBOL text window for Presentation Manager applications.

    Properties: Default: Off Environment: 16-bit run-time systems

    Remarks: Specifying +C2 disables the creation of a COBOL text window for Presentation Manager applications. However, if a run-time system error occurs with this switch set, a text window displaying the error message text is created. This provides compatibility with previous releases of this COBOL system.

    This switch does not have any effect running under Windows.


    C4 43-line Mode Switch

    Forces the screen in 43-line mode on an EGA or VGA monitor, or with the default window under Windows.

    Properties: Default: Off Environment: 16-bit shared run-time system.

    Remarks: The original screen mode is restored upon return to the operating system.

    If you have set up program items for COBOL components under Windows, setting this switch causes the components to start in 43-line mode.

    You must set the +C switch with the +C4 switch.

    See also: C switch.


    C5 50-line Mode Switch

    Forces the screen in 50-line mode on an EGA or VGA monitor, or with the default window under Windows.

    Properties: Default: Off Environment: 16-bit shared run-time system.

    Remarks: The original screen mode is restored upon return to the operating system.

    If you have set up program items for COBOL components under Windows, setting this switch causes the components to start in 50-line mode.

    You must set the +C switch with the +C5 switch.

    See also: C switch.


    D Standard ANSI COBOL Debug Switch

    Invokes the standard ANSI COBOL Debug module.

    Properties: Default: Off Environment: All

    Remarks: See your Language Reference for a description of the Debug facilities. This switch must be set on the command line.

    Example:
    The command:
    myprog (+D)
    loads the program myprog from drive b: with the standard ANSI COBOL Debug module invoked.


    D1 DLL Search Compatibility Switch

    Provides compatibility with the method of searching for .dll files on OS/2 as used by Micro Focus COBOL systems before V3.1.

    Properties: Default: Off Environment: 16-bit run-time systems on OS/2

    Remarks: When an application causes the run-time system to try to load a .dll program and the file is not specified with a fully qualified path name, OS/2 tries to locate the program from the given base-name by searching directories specified in LIBPATH. Before COBOL V3.1, the RTS also searched for the file in the directories specified in the COBDIR environment variable.

    Specifying +D1 causes the RTS to search for .dll files in the directories specified in the COBDIR environment variable in addition to OS/2 searching in the directories specified in LIBPATH. The effect is exactly the same as in earlier products.


    D2 DLL-Cancel Error Reporting Switch

    Disables run-time system error 177 ("Attempt to cancel program failed") when a cancel of a COBOL DLL fails.

    Properties: Default: Off Environment: 16-bit shared run-time system on OS/2

    Remarks: If the run-time system encounters an error when it tries to cancel a COBOL Dynamic Link library (DLL) on OS/2, it issues error 177. Setting this switch causes the RTS to ignore the error and logically cancel the DLL.


    E Error Switch

    Executes intermediate code which contains S-level syntax-check errors.

    Properties: Default: Off Environment: 16-bit shared run-time system

    Remarks: If you try to run intermediate code programs which contain S-level compiler errors when this switch is set to off, you receive a run-time system error. See your Error Messages for full details of these errors.


    /E Signal-handling Stack Size Switch

    Specifies in bytes the size of the stack to be used to handle signals.

    Properties: Default: /E2560 Environment: 16-bit shared run-time system on OS/2

    Remarks: Under normal circumstances you do not need to change the size of the stack used to handle signals. However, if your application does require more stack space than the default for handling signals you can increase its size using this switch.

    See also: /S switch.


    F Numeric Field Check Switch

    Checks all numeric items for valid numeric data.

    Properties: Default: On Environment: All

    Remarks: If the data is not valid, run-time system error 163 ("Illegal character in numeric field (fatal)") is produced. Setting this switch to off suppresses this checking.

    Checking for valid numeric data can also be enabled in generated code by specifying the CHECKNUM directive. For such programs, setting this switch to off (-F) still disables the run-time system error.

    Invalid data is handled differently by intermediate and native code, and by this COBOL system on other environments and different versions of this COBOL system. So, we recommend that you enable numeric field checking while you are developing your program.

    If you receive run-time error 163, we recommend that you adjust your code so that no invalid data is used. You can locate the invalid numeric data in your code by setting the +F switch on and then animating your program until RTS error 163 is detected. See the chapter "Animator" for details on animating programs.

    If you are not able to correct your code, you might want to use one or more of the following Compiler directives to resolve invalid data in numeric fields:



    If you experience a problem with this page, please send a message to JTate@JaTomes.Com including a description of the problem.

    Last modified: Wednesday Oct-29-1997.