I can confirm that the OPNQRYF as I presented it does work. The Cobol reads the file by the key I specified. My problem remains, that if the input file is externally defined with multiple fields, I have no way to determine within which field my desired sort position/length exists, so I can't simple use a position/length as in my example. Again, that works fine if the file has a single, long field. Also to reiterate, the file itself is not keyed. Perhaps we should not be using the term keyed, but rather emphasizing that I want to read the file, in Cobol, sorted by an arbitrary position/length known only at run time.
This mailing list archive is Copyright 1997-2013 by MIDRANGE dot 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 here. If you have questions about this, please contact