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

Difference between the two INCLUDE COND


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

New User


Joined: 28 Jul 2008
Posts: 34
Location: Ahmedabad

PostPosted: Tue Sep 30, 2008 3:59 pm
Reply with quote

Below are 2 sort conditions

INCLUDE COND=(100,5,CH,EQ,C'XXXXX'),

and

INCLUDE COND=(100,5,SS,EQ,C'XXXXX').

Actually CH would mean a character to be checked, so if we give a look to the first statement it looks to be incorrect as we need a string to be checked instead of a character,but we are giving CH in the condition statement, but could anyone tell me what do we mean by 'SS' in place of CH?
Is it the one to check for Strings??
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Sep 30, 2008 4:05 pm
Reply with quote

SS is a substring search where you can specify a search parameter which is shorter than the field length to be searched.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue Sep 30, 2008 4:23 pm
Reply with quote

Quote:

if we give a look to the first statement it looks to be incorrect as we need a string to be checked instead of a characte


five characters togather makes string which is to be compared with. So statement is correct.

Quote:
INCLUDE COND=(100,5,SS,EQ,C'XXXXX').

In this case it will behave same as giving CH as you are specifying 100,5 which is length 5 and c'xxxxx' also has lenght 5.

SS is used for substring e.g.

INCLUDE COND=(1,200,SS,EQ,C'XXXXX').
all the records in which XXXXX is appeared anywhere in col 1 to 200 will be included.
Back to top
View user's profile Send private message
Abhushan_s

New User


Joined: 28 Jul 2008
Posts: 34
Location: Ahmedabad

PostPosted: Tue Sep 30, 2008 4:34 pm
Reply with quote

Hey Thanks for the help
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Sep 30, 2008 8:52 pm
Reply with quote

For complete details on DFSORT's substring comparison function (SS format), see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/3.7.4?DT=20060615185603

All of the DFSORT books are available online at:

Use [URL] BBCode for External Links
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 Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts IEF142I and Cond. Code 12 All Other Mainframe Topics 3
Search our Forums:

Back to Top