COBOL面试题(中英文版)Q1) Name the divisions in a COBOL program ?.A1) IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION, PROCEDURE DIVISION. Q:列举COBOL的DEVISION A:标识部,环境部,数据部,过程部 Q2) What are the different data types available in COBOL?A2) Alpha-numeric (X), ...
在IO 模式下打开工作文件,在 INPUT 模式下打开输入文件,在 OUTPUT 模式下打开输出文件。 将输入文件中存在的记录传输到工作文件。 通过rec-key 以升序/降序对 SORT-FILE 进行排序。 将排序的记录从工作文件传输到输出文件。 关闭输入文件和输出文件并删除工作文件。 Example 在以下示例中,INPUT 是需要按升...
在IO模式下打开工作文件,在INPUT模式下打开输入文件,在OUTPUT模式下打开输出文件。 将输入文件中存在的记录传输到工作文件。 通过rec-key按升序/降序对SORT-FILE进行排序。 将已排序的记录从工作文件传输到输出文件。 关闭输入文件和输出文件并删除工作文件。 Example 在以下示例中,INPUT1和INPUT2是要按升序合并的输入...
IDENTIFICATION DIVISION. 18 19 PROGRAM-ID. CBLEX. 20 ENVIRONMENT DIVISION. 21 CONFIGURATION SECTION. 22 SOURCE-COMPUTER. IBM-AS400. 23 OBJECT-COMPUTER. IBM-AS400. 24 INPUT-OUTPUT SECTION. 25 26 FILE-CONTROL. 27 SELECT PRINTFILE ASSIGN TO PRINTER-QPRINT 28 ORGANIZATION IS SEQUENTIAL. 29 30 ...
The COBOL-IT Compiler Suite Enterprise Edition (cobc), native executables created by the COBOL-IT Compiler Suite Enterprise Edition, COBOL-IT Runtime Enterprise Edition (libcobit.so, libcobit_dll.dll), and CitSORT search for a license file in the following manner: Check to see if the COBOL...
In this example, the Arrange code is:MOCK FILE INPUT-FILE ON OPEN STATUS FILE-NOT-FOUND END-MOCK To set up this test case, cobol-check comments the code that opens file INPUT-FILE and moves '35' to the file status item.The Act step consists of this code:...
• Description of the Input Components, Prerequisites • Description of the Configuration Files • Description of Output Files • Detailed Processing Overview of the COBOL ConverterThe role of this tool is to convert COBOL programs running on the source platform (z/OS, IBM COBOL dialect) ...
We can perform the SORT operation in the following conditions:When Input and Output files must remain closed. When Input and Output files have FD entries. When Working file must have a select clause. When Work file should have a short description in File Section....
Remember, however, that under UNIX filenames are case-sensitive (for example, TEST4 and test4 represent different files). Bold type style is also used for emphasis on some types of lists. 3. Text that is displayed in a monospaced font indicates user input or system output (according to ...
22 SORT-MODE-SIZE... 22 SORT-RETURN...