Illustration of simple sort verb, COBOL Programming

Illustration of simple sort verb:

Illustration: Suppose that we have a card file with the following records description in the data division.

956_Illustration of simple sort verb.png

The names of the work file and output file are SORT-FILE and OUTPUT-FILE correspondingly. The DATA DIVISION entries for these two files are as shown below.

1715_Illustration of simple sort verb1.png

The statement below will sort the input file and will create the sorted output file.

Posted Date: 10/18/2012 1:11:17 AM | Location : United States







Related Discussions:- Illustration of simple sort verb, Assignment Help, Ask Question on Illustration of simple sort verb, Get Answer, Expert's Help, Illustration of simple sort verb Discussions

Write discussion on Illustration of simple sort verb
Your posts are moderated
Related Questions
Picture Clause: The picture clause explains the general characteristics of an elementary data item. These characteristics are elaborated below: Class: In COBOL the

Comparison of the Numeric Operand with Nonnumeric Operand: The numeric operand can be compared to the nonnumeric operand subject to the restrictions which are as follows.

FILE-CONTROL paragraph for the indexed files: The common format for the SELECT clause for a file is as shown below: SELECT  file-name  ASSIGN   TO  implementor -name

Rules for constructing an Arithmetic Expression: The rules for constructing an arithmetic expression are as shown below: (i) When an arithmetic expression specifies a calcu

FD Entry for variable-length Records: The RECORDS CONTAINS and BLOCK CONTAINS clause are quite dissimilar in the case of files with variable- length records. The syntax of the

Comparison of Numeric Operands: We are well-known with the kind of the relational condition where both the operands are numeric. The comparison in this situation is algebraic

LEVEL NUMBERS: The COBOL makes use of the level number concept to explain the hierarchical data structure. A level number is a 2 digit number. The permitted level numbers a

PROGRAM USING OCCURS CLAUSE: We have to write a simple program to demonstrate Occurs Clause. Get the employee details for 3 persons and compute the total salary. identifica

PROGRAM FOR DIVIDE VERB:   We have to write an easy program to elaborate DIVIDE verb. You can also use edit characters in the program. Identification division. Program-