Rules for simple sort verb, COBOL Programming

Rules for Simple sort verb:

The work file is to be defined by a sort elaboration entry (SD entry).The format of SD entry is as shown below.

The rules below should be taken into considerations while specifying this sort verb

(i) The input, output and the work file are open by the sort statement before the starting begins and are closed by the sort statement itself after the sorting is over.

(ii) There can be any number of the SORT statement in a program.

(iii) The sorting can be completed on any number of keys.

(iv) All the keys on which the sorting is completed should appear with their elaboration in the record explanation of file name1.

(v) The Keys in sort statement do not need any qualification.

(vi) When two or more records in the input file have similar keys.

(vii) The SELECT clauses for the work file file- name-1 is SELECT file-name-1 ASSIGN TO hardware-name. 

 

Posted Date: 10/18/2012 1:09:16 AM | Location : United States







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

Write discussion on Rules for simple sort verb
Your posts are moderated
Related Questions
Literals: The actual values can too appear in a program. These values are termed as literals. For illustration, the statement MOVE 0 TO TOTAL indicates that the value zero wil

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 FOR MASTER FILE MAINTENANCE: We have to write a program to keep the stu-file for which a record has just 2 fields,viz., rno(Roll Number) and name(Student Name). Give t

TO WRITE A QUADRATIC EQN ROOTS ARE COMPLEX IN COBOL PROGRAM

Minus sign - edit characters for numeric data: The minus sign can appear either at the leftmost or rightmost location of the picture. If an item is negative, a minus sign will

Format for COBOL Programs: The COBOL is a high-level language. Therefore, a COBOL program can be executed on a computer for which a COBOL compiler exists. The compiler transla

FILE-CONTROL paragraph for the relative files: The normal format for the SELECT clause for a relative file is as shown below. SELECT  file-name  ASSIGN  TO  implementor-nam

Illustration of simple sort verb: Illustration: Suppose that we have a card file with the following records description in the data division. The names of the work fil

Sign - Picture clause: The numeric data item can be signed or unsigned. If a numeric data is regarded as unsigned then during the execution these unsigned data items are treat

Picture Clause: The picture clause explains the general characteristics of an elementary data item. These characteristics are elaborated below: Class: In COBOL the