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
SIMPLE MERGE VERB: Like sorting, the merging of files is often required in different commercial application. It is likely to merge two or more files with the help of one MERGE

PROGRAM FOR ADD CORRESPONDING: We have to write a simple program to demonstrate Add Corresponding.   identification division.   program- id.   environment division.

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

Comparison of Nonnumeric Operands: A nonnumeric operand can be compared to the other nonnumeric operand according to the rules as shown below: (i) Fields of Equal Sizes:

We have input file, record layout is EMP ID (6 char) , EMP NAME (20 char), Designation (3 char),Salary (5 digit) Base Branch (10char) Grade (3 Alphanumeric). This is the input f

GIVING    file-name-5. The input files to be merged through the MERGE statements which are specified in the USING phrase. These files should be sequential files and should be

NEGATED SIMPLE CONDITION: Any of the easy condition explained can be preceded by the logical operator NOT. The consequence of placing the operator NOT before an easy condition

Illustration of Divide verb: (a) DIVIDE 5 INTO A. If the value of A is 20, then after execution of this statement the value of A will be 4. The older value of A will be los

Plus Sign - edit characters for numeric data: + (Plus Sign) : A plus sign is alike to minus sign except that when the item is positive, +sign will be inserted rather th

Size: The number of characters or digits needed to store the data item in the memory in termed as the Size of the data item. All the 4 general characteristics explained can