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



Select / Omit statements are grouped. So, If multiple fields have to be
true, define the first with an S and leave the S off of the other tested
fields.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Shannon ODonnell
Sent: Friday, February 24, 2012 8:59 AM
To: 'RPG programming on the IBM i / System i'
Subject: RE: SST In Logical FIle with Select

OK, for all interested parties...I have an answer, of sorts...

Sorry it took so long to check this but it takes freakin' forever to
build that access path each time! I guess I should have used an
existing path just for testing this but oh well...

Anyway...I got this to work by taking the first Select off of the LF:

A CODEV I SST(DOCODE 1 2)
A K RRAKCN
A K RRAKYR
A K RRAKTY
A K RRAKNO
A*** S STATUS COMP(NE 'X')
A S CODEV COMP(EQ 'EV')


I need that first select on there though so I guess I need to figure
out/read the manual would probably work :-) , how to AND those two
Selects.

Man, this has been a real challenge for me! I barely write any RPG code
any
more and DDS...forget it!

I'd forgotten how much I used to know!




-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Luis Rodriguez
Sent: Friday, February 24, 2012 7:28 AM
To: RPG programming on the IBM i / System i
Subject: Re: SST In Logical FIle with Select

Shannon,

Disregard my previous post. Your LF is keyed and a single file (opposed
to a join file). the DYNSLT keyword would not apply in this case (IIRC).

Regards,

Luis Rodriguez
IBM Certified Systems Expert - eServer i5 iSeries

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.