IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

Substring be scanned via syncsort


 
IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jammy_27

New User


Joined: 06 Aug 2009
Posts: 17
Location: USA

PostPosted: Thu Sep 24, 2015 8:50 pm
Reply with quote

Can a range of substring be scanned via syncsort on every record?

My requirement is as below :-

I have a variable block input file
VB, LRECL = 25889
I am looking for texts anywhere from V200 thru V300 on every record in that file

I Could write the sort for one text - example V208 and it works fine. I used the PARM='VLTESTI=2'
SORT FIELDS=COPY
INCLUDE COND=(5,25885,SS,EQ,C'V208')


But the records can have multiple occurrences for any number between V200 to V300. If any of these texts appear , that record should be included.
I tried using the below but it doesnt work. let me know if i am missing anything.

SORT FIELDS=COPY
INCLUDE COND=(5,25885,SS,GE,C'V200',AND,
5,25885,SS,LE,C'V300')


SORT FIELDS=COPY
INCLUDE COND=(5,25885,SS,GE,C'V200',AND,
*
5,25885,SS,LE,C'V299')
WER813I INSTALLATION OPTIONS IN MFX LOAD LIBRARY WILL BE USED
WER251A INCLUDE/OMIT INVALID COND
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7312
Location: Inside the Matrix

PostPosted: Thu Sep 24, 2015 10:02 pm
Reply with quote

You need to look up the syntax of the INCLUDE where it relates to SS and discover exactly what to do in exactly that circumstance.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> SYNCSORT
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts SYNCSORT Error - CONTROL FIELD BEYOND... SYNCSORT 10
No new posts Populating Date and Sequence numer in... SYNCSORT 11
No new posts Insert System Runtime in HEADER In SY... SYNCSORT 9
No new posts SYNCSORT in Z/VSE SYNCSORT 24
No new posts Removing Hyphens and Dots using Syncsort SYNCSORT 8

Back to Top