Normal Topic Retrieve Spec - Multiple groups (Read 571 times)
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Retrieve Spec - Multiple groups
Sep 15th, 2016 at 12:39pm
Print Post Print Post  
I'm having trouble complete a record retrieval in my file. 

I know I can select multiple files by using a semi-colon between the retrieve spec parameters, such as 2102AA; 2275AB, etc.

I also know I can select multiple files by using ".." before or after a retrieve spec parameter, such as 21..

I also know I can "not select" groups files, by putting a slash in front of the parameter, such as /obs..

My question is, is there a way to "not select" multiple groups?  I'm trying to avoid selecting any file with the word "obsolete" or "000" at the beginning of an element. I've tried "/obs..;/000.. but that doesn't work.

Any suggestions?

NH User
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1350
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Retrieve Spec - Multiple groups
Reply #1 - Sep 15th, 2016 at 1:41pm
Print Post Print Post  
Try removing the 2nd "/". Everything after the forward slash is supposed to become part of the "not equal to" group.

I think by putting the 2nd one there, you actually might be toggling the "not equal to" to "equal to".
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Retrieve Spec - Multiple groups
Reply #2 - Sep 15th, 2016 at 2:55pm
Print Post Print Post  
If you want to get cars that are not green and also not red, you cannot ask for cars that are not green or not red, because all of the green cars are not red and all of the red cars are not green. You need to ask for all of the cars that are not green and are also not red.

In code:
if((color <> "red") and (color <> "green")) then ...

will get you cars that are not green and are not red.

if((color <> "red") or (color <> "green")) then ..

will get you all of the cars, because the red cars are not green and the green cars are not red.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Retrieve Spec - Multiple groups
Reply #3 - Sep 15th, 2016 at 5:53pm
Print Post Print Post  
Carl,

Thanks, your solution is working!!
  
Back to top
 
IP Logged