[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mark S Waterbury
Sent: Wednesday, September 25, 2013 2:26 PM
To: Midrange Systems Technical Discussion
Subject: Re: Sort input file by arbitrary position/length
So, then, ust use FMTDTA.
On 9/25/2013 3:17 PM, Zak Metz wrote:
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.