Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference between the two INCLUDE COND

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Difference between the two INCLUDE COND
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: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 30, 2008 4:05 pm    Post subject:
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    Post subject:
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    Post subject:
Reply with quote

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

DFSORT Moderator


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

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

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

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

All of the DFSORT books are available online at:

www.ibm.com/systems/support/storage/software/sort/mvs/srtmpub.html
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us