|
Here is an example of a LF (actually a join) in which we created a new
field that is a substring of another field, than made that new field a key
field:
R JOINREC JFILE(F0101 F4205)
J JOIN(F0101 F4205)
JFLD(ABAN8 BIAN8)
ABAN8
BIAN8
ABPA8
ABADDZ SST(ABAN8 1 5)
ABAC01
ABAC02
ABAC07
BICPGP
K ABADDZ
K ABAN8
Scott Lindstrom
Zenith Electronics
booth@martinvt.com
Sent by: To: midrange-l@midrange.com
owner-midrange-l@mi cc:
drange.com Subject: substringed key
field?
10/19/2000 01:19 PM
Please respond to
MIDRANGE-L
The file has the G/L # (a 7 digit numeric field) as a sub-key. I'd like
to order the file by position 7 and 8 of that General/Ledger #. Is there
a way to build a logical file that way?
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@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 mailing list archive is Copyright 1997-2025 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.