× 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.


  • Subject: Re: Keying Program Described Files
  • From: Hans Boldt <boldt@xxxxxxxxxx>
  • Date: Tue, 21 Apr 1998 12:19:22 -0400

Hi,

Ramesh wrote:
>Is it necessary that parts of Composite Key used to Key a Indexed Program
>Described File should be contigious in the record.
>RPG/400 User manual Topic- 7.2.1.1 says it should be continous.
>But we feel it is not necessary that Parts of Key should be continous in
>record even for Program Described Files.
>

You're right - since the key is totally externally described, you
don't have to worry about keeping the individual fields contiguous
in your RPG program.

In addition, don't worry about the "Key field start location" entry
on the F-Spec.  It doesn't do a thing, but since it's required for
indexed files, just code 1.  In ILE RPG IV, we have keyword KEYLOC.
It's totally optional, and if it's coded, we ignore it anyways!

>Is there any way to Key a Program Described Flat File without creating
>External DDS.

No.  If you have some good reason to avoid ext-desc files, you
can always access the file using relative record number.

Cheers!  Hans

Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-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 thread ...


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.