View previous topic :: View next topic
|
Author |
Message |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi,
The following condition is
INCLUDE COND=(558,02,CH,NE,C'PD,PF,X,G')
eqiuvalent to
(558,02,CH,NE,C'PD', OR
558,02,CH,NE,C'PF', OR
558,02,CH,NE,C' X', OR
558,02,CH,NE,C' G',) OR
Is there any single line statement to acheive
(558,02,CH,NE,C'PD', AND
558,02,CH,NE,C'PF', AND
558,02,CH,NE,C' X', AND
558,02,CH,NE,C' G',) AND
Regards
R KARTHIK |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
it's not possible for the same field to have more than 1 value, it can only be an or.
Gerry |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
my apologies, I read it as EQ and not NE
Gerry |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
INCLUDE COND=(558,02,CH,NE,C'PD,PF,X,G') resolves to AND
ie. NE to PD and NE to PF etc.
Gerry |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi gcicchet,
U are saying that
INCLUDE COND=(558,02,CH,NE,C'PD,PF,X,G')
is equivalent to
(558,02,CH,NE,C'PD', AND
558,02,CH,NE,C'PF', AND
558,02,CH,NE,C' X', AND
558,02,CH,NE,C' G',) AND
Are u sure? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
I used INCLUDE COND=(1,3,SS,NE,C'350,375') for my test.
Gerry |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Because i am getting different output for
INCLUDE COND=(558,02,CH,NE,C'PD,PF,X,G')
RCD IN 914, OUT 413
and
(558,02,CH,NE,C'PD', AND
558,02,CH,NE,C'PF', AND
558,02,CH,NE,C' X', AND
558,02,CH,NE,C' G',) AND
RCD IN 914, OUT 312 |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
please note I used SS and not CH in my test.
Gerry |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
How about using substring?
Code: |
INCLUDE FORMAT=SS,COND=(558,02,CH,NE,C'PD,PF,X,G')
|
Regards,
Garry |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi gcicchet,
I corrected the mistake.
Also as Garry Carroll said whenever i include more than one condition like
INCLUDE COND=(558,02,CH,NE,C'PD,PF,X,G')
Then i have to use
INCLUDE FORMAT=SS,COND=(558,02,CH,NE,C'PD,PF,X,G')
[/quote] |
|
Back to top |
|
|
|
|