|
Exactly. This is my understanding as well. I AAAAAAA is characterm, how can you make KEYO1 numeric? Debbie > -----Original Message----- > From: owner-midrange-l@midrange.com > [mailto:owner-midrange-l@midrange.com]On Behalf Of SHISHIRKSINGH > Sent: Thursday, March 23, 2000 11:01 PM > To: 'MIDRANGE-L@midrange.com' > Subject: RE: Logical File with Field being substringed as a Key > Importance: High > > > ******************************************************************* > > Suppose your PF (FILEPF) is like this, > > REF(FIELDCROSSREF)) > R FILEREC > ------------------------------------------- > AAAAAAA R REFFLD(A) > BBBBBBB R REFFLD(B) > > > Then your Logical (FILELF) will be > > > R FILEREC PFILE(FILEPF) > ------------------------------------------- > AAAAAAA R REFFLD(A) > BBBBBBB R REFFLD(B) > KEY01 I SST(AAAAAAA startpos length) > K KEY01 > > > Note, field AAAAAAA has to be of type character field in order > that you can > do a substring over it. > > Shishir > > -----Original Message----- > From: dbryant@banpharm.com [mailto:dbryant@banpharm.com] > Sent: Friday, March 24, 2000 1:10 AM > To: midrange-l@midrange.com > Subject: Logical File with Field being substringed as a Key > > > > > I need to create a logical file and substring one of the fields > and use the > substringed portion as a key. Possible? If so, any examples? > > Thanking you in advance! > > > +--- > | 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 > +--- > +--- > | 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 > +--- > +--- | 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-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.