Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
DFSORT - INCLUDE COND=(15,1,SS,EQ,C'ABC')

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
Author Message
ykishore

Active User


Joined: 12 Aug 2005
Posts: 53
Location: USA

PostPosted: Thu Sep 01, 2005 6:44 pm    Post subject: DFSORT - INCLUDE COND=(15,1,SS,EQ,C'ABC')
Reply with quote

Hii

can any body let me know how below statement works!!

INCLUDE COND=(15,1,SS,EQ,C'ABC')
Back to top
View user's profile Send private message
References
MGIndaco

Moderator


Joined: 10 Mar 2005
Posts: 478
Location: Milan, Italy

PostPosted: Thu Sep 01, 2005 6:50 pm    Post subject:
Reply with quote

This statement will not work or will work without the needed result.
To use the Substring Search you must define each include separately like this:
Code:
 INCLUDE COND=(15,1,SS,EQ,C'A,B,C')

SS = is the Substring Search.
Try to visit the manual at this link:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/ice1cg10/2.2.5?SHELF=ICE1SH10&DT=20050223112358#HDRSUBSRCH
Back to top
View user's profile Send private message
ykishore

Active User


Joined: 12 Aug 2005
Posts: 53
Location: USA

PostPosted: Thu Sep 01, 2005 8:25 pm    Post subject:
Reply with quote

Hi

Thanks alot!!
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Thu Sep 01, 2005 9:07 pm    Post subject:
Reply with quote

Quote:
This statement will not work or will work without the needed result.


That's NOT true. In this case, C'ABC' is MORE correct then C'A,B,C'.

Code:

  INCLUDE COND=(15,1,SS,EQ,C'ABC')


will check for 'A' in 15, then 'B' in 15, then 'C' in 15.

Code:

  INCLUDE COND=(15,1,SS,EQ,C'A,B,C')


will check for 'A' in 15, then ',' (comma) in 15, then 'B' in 15, then ',' in 15, then 'C' in 15. So if there's a comma in 15, the record will be included which is probably NOT what's wanted. Of course, in most cases, there isn't a comma in 15, so using the comma as a separator does not cause a problem. But for a 1-byte field with SS, it's best NOT to use a separator between the elements.

For larger fields with SS, you normally want the separator to indicate which contiguous characters you're searching for. For example:

Code:

  INCLUDE COND=(15,2,SS,EQ,C'ABCDEF')


will look for 'AB' in 15-16, then 'BC' in 15-16, then 'CD' in 15-16, then 'DE', then 'EF' in 15-16. If you only want a "hit" on 'AB' or 'CD' or 'EF' and not on 'BC' or 'DE', then you need to use:

Code:

  INCLUDE COND=(15,2,SS,EQ,C'AB,CD,EF')


which will look for 'AB' in 15-16, then 'B,' in 15-16, then ',C' in 15-16, then 'CD' in 15-16, then 'D,' in 15-16, then ',E' in 15-16, then 'EF' in 15-16. Be sure to use a separator that will NOT be found (e.g. if 15-16 could contain ',E' but can't contain '-E', use C'AB-CD-EF').
Back to top
View user's profile Send private message
MGIndaco

Moderator


Joined: 10 Mar 2005
Posts: 478
Location: Milan, Italy

PostPosted: Thu Sep 01, 2005 9:27 pm    Post subject:
Reply with quote

Ok, excuse me...
I don't tested it at the moment and I've only read the manual.
I must apologize to you.
Thank for your explanation.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Thu Sep 01, 2005 10:35 pm    Post subject:
Reply with quote

No apology necessary. Since the the separator character is generally needed, leaving it out for 1-byte fields is not actually covered in the doc, so I understand how you drew the conclusion you did. Of course, since I developed the code, I know how it actually works. icon_wink.gif
Back to top
View user's profile Send private message
ykishore

Active User


Joined: 12 Aug 2005
Posts: 53
Location: USA

PostPosted: Tue Sep 06, 2005 7:27 pm    Post subject: Re: DFSORT - INCLUDE COND=(15,1,SS,EQ,C'ABC')
Reply with quote

Hi

Thanks for ur information!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1