Microsoft KB Archive/38076

PCOBOL “Rejected - NOASML, Error 155-U” Compiled for CodeView

PSS ID Number: Q38076 Article last modified on 04-20-1993

3.00 3.00a | 3.00 3.00a MS-DOS | OS/2

Summary: To compile a Microsoft COBOL version 3.0 or 3.0a program to be run in CodeView, the following directives must be set: ANIM NOFORM NOCONFIRM COPYLIST EANIM SOURCE-EXT(LST) This is described in the Knowledge Base article “Version 3.0 Supports CodeView with EANIM Directive.” The slashes are not required but they may be used. If these directives are specified on the command line when compiling with PCOBOL version 3.0 or 3.0a in OS/2 (protected mode) version 1.0, the following error message may be returned: *Rejected - NOASML **155-U Illegal Command Line (Error 155)

More Information: This error is only covered on Page 4-28 of the “Microsoft COBOL Compiler Version 3.0: Error Messages Manual,” which is in the Run-Time System Error Messages chapter. This appears to happen on some machines only under the following conditions: 1. The source computer is an 80286 machine. 2. The operating system is MS OS/2 version 1.0. 3. The command line for the compile must look EXACTLY as shown below. Microsoft has confirmed this to be a problem in versions 3.0 and 3.0a. This problem was corrected in Microsoft COBOL Professional Development System version 4.0 for MS-DOS and MS OS/2. Putting NOASMLIST in the COBOL.DIR file will correct this problem. The following simple COBOL program, when compiled in the described manner, will return with the 155-U error: PCOBOL TEST.COB,,TEST.LST /ANIM /NOFORM /NOCONFIRM /COPYLIST /EANIM /SOURCE-EXT(LST); The following is a code example: Procedure Division. Display “hello”.

Additional reference words: 3.00 3.00a Copyright Microsoft Corporation 1993.