MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » September 2011

RE: QLGSORT and CPF3BD6 - Key field 01 is not valid for key number 1



fixed

I also need to exclude sub directories. That's part of the reason I was looking at FMTDTA. Would the Unix sort allow for record selection?

I've given up on QLGSORT and replaced it with an SQL statement.


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-
bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Wednesday, September 14, 2011 2:39 PM
To: Midrange Systems Technical Discussion
Subject: Re: QLGSORT and CPF3BD6 - Key field 01 is not valid for key number
1

Hi Rick,

I do not recommend the QLGSORT API, I hate that thing.

Is there any reason not to use the Unix sort utility? You could just include it
in the pipeline that's creating your listing in the first place.

(If I knew what your Unix command was, I could provide more specifics)



On 9/13/2011 2:18 PM, Rick.Chevalier@xxxxxxxxxxxxxxx wrote:
I have been banging my head against this message for a couple of hours
now without any success.

I am trying to sort a flat file based on positions in the record and defined
lengths. Specifically, the output of a Unix list directory command piped to an
output file. I found several examples of sorting subfiles but none sorting flat
files. I did make some discoveries and have made tweaks based on what I
found but I still keep coming up with this error.

This is the relevant code (I think)
http://code.midrange.com/84149fae5e.html
Rick Chevalier
Sr. Programmer/Analyst | Software Solutions - Loan Servicing
[cid:image001.gif@01CC721F.21A1B460]
817-525-7178 (w)


________________________________
Privileged and Confidential. This e-mail, and any attachments there to, is
intended only for use by the addressee(s) named herein and may contain
privileged or confidential information. If you have received this e-mail in
error, please notify me immediately by a return e-mail and delete this e-mail.
You are hereby notified that any dissemination, distribution or copying of this
e-mail and/or any attachments thereto, is strictly prohibited.





--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at http://archive.midrange.com/midrange-
l.



Privileged and Confidential. This e-mail, and any attachments there to, is intended only for use by the addressee(s) named herein and may contain privileged or confidential information. If you have received this e-mail in error, please notify me immediately by a return e-mail and delete this e-mail. You are hereby notified that any dissemination, distribution or copying of this e-mail and/or any attachments thereto, is strictly prohibited.





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 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