× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Booth Martin escribió:
This may be a brain flat.

I have a Sys/36 environment program described file (QS36F) with no index. I want to order the file for processing by field 1, field 3, and field 2 (not contiguous, not in order). Until now it has been done with a #gsort in OCL, and works fine.

I would like to not use OCL. Any ideas?

#GSORT allows for creation of an "addrout file" ("record address file"...) over the original (physical) file, "kind of" like an index...
Then, in the program, you describe BOTH files, the physical and the addrout (one as IP, the other as IR, don't recall which one is either one). The (physical) file is then processed in the order you want, without you having to change anything else in the program, but just the F specs as I mentioned.
HTH, and Merry Xmas!


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.