Illustration of simple sort verb, COBOL Programming

Illustration of simple sort verb:

Illustration: Suppose that we have a card file with the following records description in the data division.

956_Illustration of simple sort verb.png

The names of the work file and output file are SORT-FILE and OUTPUT-FILE correspondingly. The DATA DIVISION entries for these two files are as shown below.

1715_Illustration of simple sort verb1.png

The statement below will sort the input file and will create the sorted output file.

Posted Date: 10/18/2012 1:11:17 AM | Location : United States







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

Write discussion on Illustration of simple sort verb
Your posts are moderated
Related Questions
PERFORM WITH UNTIL OPTION: The format is as shown below: Illustration:  A) Perform p-3 until i > 5. Here p-3 will be executed whenever i B)  Perform p-2 thru


PROGRAM FOR SCREEN SECTION:  identification division.   program- id.   environment division.   data division.   working-storage section.   01  a pic 9(2) value

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

LABEL RECORD CLAUSE: This clause specifies whether or not the standard header and trailer labels must be present in the magnetic-tape files. VALUE OF CLAUSE: The VAL

File Activity: The file activity is a measure of the proportion of records processed during an update run. Therefore we define the activity ration as shown below. Activi

PROGRAM TO FIND INTEREST ON BANK DEPOSITS: We have to write a program to find interest on deposits. The criteria is given below : identification division. program-

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

PROCEDURE DIVISION statements for the indexed files: All the statements which are available for a relative file are also available for an indexed file. READ STTATEMENT :

Block Size: The normal practice is to group a number of consecutive records to form that is termed as a block or a physical record. The number of records in a block is frequen