|
Jim, For a program described file use 'I' instead of "K". You will need to specify the the key length and start position also. >From an old RPGIII program my file statement looks like this: FMT F .....FFilenameIPEAF....RlenLK1AIOvKlocEDevice+......KExit++Entry+A....U 0001.00 FFILENAMEIP F 256 99AI 2 DISK HTH Jim Langston wrote: > <<snip>> > > But... when I normally open files I also specify they be opened by Key, > by specifiing the K. I know that if I don't specify the K then the records > will come in arrival sequence. RPG won't let me specify K in a File > described file. > > So, what do I do? How do I get key sequence by a file described file? > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
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.