IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Query regards INCLUDE COND


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jun 20, 2008 11:10 am
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Jun 20, 2008 12:17 pm
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Jun 20, 2008 12:22 pm
Reply with quote

Hi,
my apologies, I read it as EQ and not NE


Gerry
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Jun 20, 2008 12:41 pm
Reply with quote

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
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jun 20, 2008 12:47 pm
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Jun 20, 2008 12:54 pm
Reply with quote

Hi,

I used INCLUDE COND=(1,3,SS,NE,C'350,375') for my test.



Gerry
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jun 20, 2008 12:55 pm
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Jun 20, 2008 1:09 pm
Reply with quote

Hi,
please note I used SS and not CH in my test.


Gerry
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Jun 20, 2008 1:11 pm
Reply with quote

How about using substring?

Code:

  INCLUDE FORMAT=SS,COND=(558,02,CH,NE,C'PD,PF,X,G')

Regards,
Garry
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jun 20, 2008 1:33 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
Search our Forums:

Back to Top