Microsoft KB Archive/69765

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:58, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to Change COBOL’s PWB to Default to .CBL for List Boxes

PSS ID Number: Q69765 Article last modified on 04-25-1991

4.00 MS-DOS

Summary: You can use PWB’s “deflang” switch to change the default filename extension to .CBL for PWB list boxes. This information applies to the Programmer’s WorkBench (PWB) version 1.10 provided with Microsoft COBOL Professional Development System (PDS) version 4.00 for MS-DOS and MS OS/2.

More Information: By default, deflang is not set. By default, an Open from PWB’s File menu gives a list of . files from the specified directory. (All of the files are listed in alphabetic order.) If you want to have only the COBOL source listed, you can set the deflang switch in the [PWB] tagged section of the TOOLS.INI file. For example: deflang:CBL This changes the default filename extension in the PWB’s dialog boxes (such as Open in the File menu) from . to *.CBL, so that only files with the .CBL extension show up by default. Other languages can be specified as well, as shown below:

Switch Setting Extension
no value .*
C .c
Asm .ASM
BASIC .BAS
FORTRAN .FOR
Pascal .PAS
COBOL .CBL
LISP .LSP

Note that PWB’s online documentation incorrectly specifies “Assembler” as the switch to use for .ASM files. “Asm” is the correct switch to use to make Assembler the default language.

Copyright Microsoft Corporation 1991.