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
File- Section &Working-Storage Section: a) FILE SECTION: The FILE SECTION includes the explanation of all data items that must be read from or written onto some external

SIGN CONDITION:   The sign condition establishes whether or not the algebraic value of an operand is negative, positive or zero. The operand can be either the numeric identif

WRITE statement: The WRITE statement for tape and sequential-disk files has the syntax shown below. WRITE            record-name      [  FROM    identifier   ] As a resu

B (Blank Insertion) : The occurrence of a B anyplace in the picture will insert a space character in the edited data. There can be more than one B in the picture. Examples:

DATA RECORD CLAUSE: The DATA RECORD clause, documents the record names defined for the file. For illustration, DATA RECORDS ARE REC-1, REC-2, REC-3 that means there are 3diffe

calculate simple interest

PROGRAM FOR SIMPLE PERFORM: We have to write a program to elaborate simple PERFORM statement Identification division. Program- id.  Perf1. Environment division. Da

How do i write a simple cobol programming that works

B (Blank Insertion) : The occurrence of a B anyplace in the picture will insert a space character in the edited data. There can be more than one B in the picture. Examples:

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