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
Example of Level numbers - cobol programming: To explain the hierarchical structure introduced above, the concept of the level number is employed in COBOL. The most broad

ON SIZE ERROR OPTION: Whenever a size error occurs, the contents of the result field after the operation is unpredictable.  Though, the processing is not-terminated and the co

Numeric -   Literals : The numeric literal can be created with the help of digits only. It can have a sign (+ or -) and can also have a decimal point. If no sign is specifi

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


WRITE Statement:      The WRITE statement for a relative file has the format which is as shown below.          WRITE  record-name   [ FORM   identifier ]

Figurative Constants: The Figurative constants have several fixed names and the compiler recognizes these names and it sets up the equivalent values in the object program.

OCCURS CLAUSE - PROGRAM: We have to write a program to elaborate occurs clause. Get names and marks of the students and show them on the screen.   identification division.

PROGRAM FOR SIZE ERROR:   We have to write an easy program to elaborate the size error option. Identification division. Program- id. sizeerr. Environment division.

RULES OF MOVE VERB:  The Data movement is managed by the rules which are as shown below: (a) The contents of the identifier - 1 or the value of the literal - 1 is moved to