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
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

IF STATEMENT: The easiest form of the IF statement is  IF condition-1 statement-1 where the condition-1 may be any one from the shown below. When the condition-1

FILE STATUS clause: This clause has been involved in the above syntax for completeness. The ORGANIZATION, REVERSE, ACCESS and STATUS clause can be specified in any order.

SEQUENTIAL FILES:   The purpose of the proposed section is to introduce the concepts such as File characteristics, File Description for Fixed-Length Records, File-Control

TO WRITE A QUADRATIC EQN ROOTS ARE COMPLEX IN COBOL PROGRAM

Example of Accept statement: For illustration, ACCEPT FLAG-A can be specified to read the value of the FLAG_A from the console. It may be keep in mind that no file definition

Evaluate is like a case statement & Evaluate  stamenet can be used to replace nested Ifs. The difference b/w EVALUATE and case is that there is no 'break' is required for EVALUATE

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

COMPOUND CONDITION: The two simple conditions can be connected by the logical operators AND or OR to form a compound condition (also termed as combined condition). When two co

Examples - Edit characters for numeric data: The following illustration illustrates the use of Z editing characters. The character b is used to indicate the space character an