Monday, 28 July 2014

COBOL SORT Procedure.

A file can be sorted internally (i.e. by using COBOL program) or externally (i.e. by using JCL). Most of the time designer prefer exteranl sort becasue it is faster than internal cobol sort. 

The Sort statement controls the processing in a program that uses an internal sort. It specifies the name of the sort file, the sequence that the records are to be sorted into, the input file or input processing, and the output file or output processing.

We will discuss two very important feature which can be used for pre and post processing of file records using SORT clause. Refer below flow: 


 Format : 



Created with Artisteer

No comments:

Post a Comment