Microsoft KB Archive/32946

ORGANIZATION IS Clause Overrides SEQUENTIAL“type” Directive

PSS ID Number: Q32946 Article last modified on 04-21-1993

3.00 | 3.00 MS-DOS | OS/2

Summary: The ORGANIZATION IS clause in the source code of a COBOL Version 3.0 program takes precedence over the SEQUENTIAL“type” directive (where “type” can be “LINE” or “RECORD”) that is specified at compile time. Some examples are provided in this article.

More Information: 1. Example 1 is a program that contains the following line: SELECT file-1 ASSIGN TO “filename.DAT” compiled with the following command line: C:> COBOL myprog.cob SEQUENTIAL“LINE” will result in a COBOL program that will produce a Line Sequential file. 2. Example 2 is a program that contains the following line: SELECT file-2 ASSIGN TO “filename.DAT” ORGANIZATION IS SEQUENTIAL compiled with the following command line: C:> COBOL myprog.cob SEQUENTIAL“LINE” will result in a COBOL program that will produce a Line Sequential file. 3. Example 3 is a program that contains the following line: SELECT file-3 ASSIGN TO “filename.DAT” ORGANIZATION IS RECORD SEQUENTIAL. compiled with the following command line: C:> COBOL myprog.cob SEQUENTIAL“LINE” will result in a COBOL program that will produce a Record Sequential file.

Additional reference words: 3.00 Copyright Microsoft Corporation 1993.