Skip to main content

Problem:

Example of the COBOL sort using two ways: a sort with Using and Giving and a sort with an Input Procedure and an Output Procedure

Resolution:

INTRODUCTION

==========

This program shows an example of SORTing a file using two  methodolgies, a SORT with USING & GIVING and a SORT with an INPUT PROCEDURE & OUTPUT PROCEDURE.  SORT examples making use of combinations of these methodologies (i.e.SORT with INPUT PROCEDURE & GIVING) are not shown, but can be easily created using the examples given in this program.*

                                                                      

SOURCE FILES:

==========

Program Files     Description

----------------     -----------------------------------------------------------

Sort.cbl

REQUIREMENTS:

==========

Program uses input.dat

OPERATION:

========

Create project. Add sort.cbl, Compile and test. Sorts input.dat and creates output.dat. WORK AREA IS ASSIGNED TO DISK ALLOWING SYSTEM TO CREATE DEFAULT TEMP SPACE  

==========================================================

Keywords: demonstration, sample, example, demo, sortdemo.zip

demo.ex

demo.me

demo.ne

demo.se

Attachments:

sortdemo.zip

Old KB# 4024