I believe PLISRT* routines deal with input files and afteer sorting writes them back. Is there anything where i don't have to read or write to a file in jcl.
I just have the table as mentioned and i want the sorted records in same table.
Joined: 03 Oct 2009 Posts: 1777 Location: Bloomington, IL
If your sort utility is not suitable for your use, here is a link to Wikipedia's "Sorting algorithm" page, which in turn has links to discussions of many specific algorithms, most of which include pseudocode. Pick one and implement it.
If you want to code something yourself, I'd suggest you use a Shell sort with intervals of 1, 4, 10, 23, 57, 132, 301 and 701, which are proven to be the best, see the dozens of links on Google for Marcin Ciura Shellsort.