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



Try this:
If    PARTTYPE eq '1'
And    partcost GT 999
OR    parttype eq '2'   
And    partcost LT  50 
OR    parttype eq '2'   
And    partcost GT  1000 


 Thanks,

Jeff Young
Sr. Programmer Analyst
IBM -e(logo) server Certified Systems Exper - iSeries Technical Solutions V5R2 
IBM  Certified Specialist- e(logo) server i5Series Technical Solutions
Designer V5R3
IBM  Certified Specialist- e(logo)server i5Series Technical
Solutions Implementer V5R3

  
 






________________________________
From: "Ruthirapathi, Arulanandham X" <arulanandham.x.ruthirapathi@xxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Sent: Wed, March 9, 2011 12:59:11 PM
Subject: RE: WRKQRY ques

Thanks, I guess this is equivalent to following condition.

(PARTTYPE = '1' AND PART COST > 999) OR (PARTTYPE = '2' AND PARTCOST < 50)

I have req like below, How to put this cond in WRKQRY?  Thanks in advance

(PARTTYPE = '1' AND PART COST > 999) OR (PARTTYPE = '2' AND (PARTCOST < 50 OR
PARTQTY >1000))

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx]
On Behalf Of Don Cavaiani
Sent: Wednesday, March 09, 2011 11:38 AM
To: Midrange Systems Technical Discussion
Subject: RE: WRKQRY ques

If    PARTTYPE eq '1'
And    partcost GT 999
OR    parttype eq '2'   
And    partcost LT  50

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mark Walter
Sent: Wednesday, March 09, 2011 11:32 AM
To: Midrange Systems Technical Discussion
Subject: RE: WRKQRY ques

Use OR in the AND/OR

Mark D. Walter
Business to Business Data Integration Specialist Certified IBM System I
Specialist Paragon Consulting Services, Inc.
mwalter@xxxxxxxxxxxxxxx
717-764-7909 Ext. (1)26

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Ruthirapathi,
Arulanandham X
Sent: Wednesday, March 09, 2011 12:04 PM
To: midrange-l@xxxxxxxxxxxx
Subject: WRKQRY ques

Hello all,

I would like to create condition with logical operator OR in WRKQRY,
could you give me an example please?

Regards
Arul


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of securities,
accuracy and completeness of information, viruses, confidentiality,
legal privilege, and legal entity disclaimers, available at
http://www.jpmorgan.com/pages/disclosures/email. ;
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.


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.