Simple sort verb, COBOL Programming

THE SIMPLE SORT VERB:

The process of sequencing the records in some preferred manner is termed as sorting. The Sorting is done upon some key data item in the record. For illustration, consider the case of a pay roll file where each record consist all the essential information of an employee, like his name, identification number, address, department number, allowances, basic pay, deductions, etc.

Whenever a sequential file is to be sorted, its record exists on the file medium and can be accessed serially. In COBOL, there is no specific feature for the sorting of a table.

Though, its gives a sort verb which can be used to SORT a sequential file. In addition to sort verb, the MERGE verb can be used to merge various sorted files to create a new file containing the records of these files in the sorting order.

The sort verb such as many other COBOL verbs, then have various forms. This form is to be used when it is needed to sort a given input file. The simple sort verb needs the naming of three files - the unsorted input file, sorted output file and the work file. The format of the common SORT verb is as shown below:

 

Posted Date: 10/18/2012 1:07:37 AM | Location : United States







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

Write discussion on Simple sort verb
Your posts are moderated
Related Questions
PROGRAM FOR MULTIPLY VERB: We have to write a simple program to elaborate MULTIPLY verb. You can also use the edit characters in the program. Identification division. Pr

Direct Organization: Besides the relative or indexed organization, also a direct access file can be designed to have what is termed as direct organization.  In this organizati

, (Comma) : A comma, whenever used in a picture, is considered as an insertion character and inserted wherever it become visible. There can be more than one comma in the pictu

Program for Sequential File Creation & Rewriting  We have to write a program to create a Length file with just two fields: l (Length) and l-c (Length-Code). Add a few records.

FILLER CLAUSE: Consider the statements as shown below: 1)  01    f    pic     x(80)  value    all "-". This statement origins a line of 80 characters filled with "-"

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

CONDITION - COBOL Programming: The condition is an entity which at one point of time can have only one of the two values - true or false. As we already know that, the IF verb

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION (RANDOM MODE): We have to write a program to create an Indexed Sequential File in random mode for Student particulars. Suppose jus

PROGRAM FOR PERFORM ...UNTIL We have to write a program to find the sum of "n" natural numbers. Identification division. Program- id. PerfUntil. Environment division.

NONSTANDARD CLAUSES: The various clauses explained above are as per the ANSI standard. Also, most compilers provide for additional nonstandard clauses to meet the specific nec