Interview Questions   Tutorials   Discussions   Programs   Discussion   

VSAM - How to sort records in VSAM file?

asked mar September 4, 2014 12:23 PM  

How to sort records in VSAM file?


1 Answers

answered By Mswami   0  

In KSDS, the records are sorted based on the key field.

when we load a records through the REPRO command in the VSAM file so the input file must be sorted on the primary key using SORT utility.

//sysin dd *

sort fileds = (1,5,ch,a)

You can use DFSORT to rearrange the records in your data sets. Sorting is arranging records in either ascending or descending order within a file. You can sort data in many different formats.

   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!