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



On 23-Feb-2012 14:03 , Shannon ODonnell wrote:
<<SNIP>>

I have physical file that contains a something like 10 fields in it.
In one field, that is 6 characters long, I need to check the first
two characters of that field and then only include records where the
first two characters contain a specific value.

I thought I could use the SST and then a Select in the logical but
it's not working. Instead I am getting all the records in that file,
not just the ones with the derived field containing a specific
value.

This is my source <<SNIP>>

How do I code the logical so that it only pulls records where the
derived field DRVFLD = 'EV'?


FWiW: With *HEX collation\SRTSEQ, there should be no requirement to use a derived [input only] field in the logical file record format. That is because all values included with selection "SST(C6 1 2)='EV'" should be the same values as those included with the selection against the entire field C6 using either of "(C6>='EV' *AND C6<'EW')" or [using an Omit specification for each field compare test to replace the /not/ logic in] "*NOT (C6<'EV' *OR C6>='EW')".

Regards, Chuck

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.